EOSIO / eosio.cdt

EOSIO.CDT (Contract Development Toolkit) is a suite of tools used to build EOSIO contracts
http://eosio.github.io/eosio.cdt
MIT License
512 stars 288 forks source link

make building error #287

Closed tvrc4m closed 5 years ago

tvrc4m commented 5 years ago

eosio.cdt 1.4.1

my CMakeLists.txt

cmake_minimum_required(VERSION 3.5) project(gamebetbonus VERSION 1.0.0)

find_package(eosio.cdt)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) find_library(EOSIO_CONTRACT /github/eos/contracts/)

add_contract(gamebetbonus gamebetbonus ${CMAKE_CURRENT_SOURCE_DIR}/src/bonus.cpp)


and make, as the follows

make --debug

GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0 Reading makefiles... Updating goal targets.... File default_target' does not exist. Fileall' does not exist. File cmake_check_build_system' does not exist. Must remake targetcmake_check_build_system'. Successfully remade target file cmake_check_build_system'. Must remake targetall'. GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0 Reading makefiles... Updating goal targets.... File all' does not exist. FileCMakeFiles/gamebetbonus.wasm.dir/all' does not exist. Must remake target `CMakeFiles/gamebetbonus.wasm.dir/all'. GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0 Reading makefiles... Updating goal targets.... File CMakeFiles/gamebetbonus.wasm.dir/depend' does not exist. Must remake targetCMakeFiles/gamebetbonus.wasm.dir/depend'. Successfully remade target file `CMakeFiles/gamebetbonus.wasm.dir/depend'. GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0 Reading makefiles... Updating goal targets.... File CMakeFiles/gamebetbonus.wasm.dir/build' does not exist. FileCMakeFiles/gamebetbonus.wasm.dir/src/bonus.cpp.o' does not exist. Must remake target `CMakeFiles/gamebetbonus.wasm.dir/src/bonus.cpp.o'. [ 50%] Building CXX object CMakeFiles/gamebetbonus.wasm.dir/src/bonus.cpp.o make[2]: [CMakeFiles/gamebetbonus.wasm.dir/src/bonus.cpp.o] Error 255 make[1]: [CMakeFiles/gamebetbonus.wasm.dir/all] Error 2 make: *** [all] Error 2

tvrc4m commented 5 years ago

remove and install again. has ok.