Open Incrediblez7 opened 5 years ago
Hi, you need to remove the -static-libgcc flag this line of CMakeLists.txt : set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
Hi, you need to remove the -static-libgcc flag this line of CMakeLists.txt : set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
It still doesn't work...
-- Boost version: 1.68.0
-- Found the following Boost libraries:
-- system
-- date_time
-- thread
-- chrono
-- atomic
-- Using OpenSSL 1.0.2q
-- Using OpenCL 1.2
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/mac/desktop/opencl-miner
[ 12%] Linking CXX executable beam-opencl-miner
clang: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
ld: warning: -L path '/usr/local/opt/openssl/lib/libssl.a' is not a directory
ld: warning: -L path '/usr/local/opt/openssl/lib/libcrypto.a' is not a directory
ld: warning: text-based stub file /System/Library/Frameworks//OpenCL.framework/OpenCL.tbd and library file /System/Library/Frameworks//OpenCL.framework/OpenCL are out of sync. Falling back to library file for linking.
Undefined symbols for architecture x86_64:
"boost::system::system_category()", referenced from:
beamMiner::beamStratum::activateWrite() in beamStratum.cpp.o
beamMiner::beamStratum::connect() in beamStratum.cpp.o
boost::asio::ip::basic_resolver
It seems has even more errors... Maybe something else not working?
after I execute "cmake -DCMAKE_BUILD_TYPE=Release` . && make -j4", these pops up.
-- The C compiler identification is AppleClang 10.0.0.10001145 -- The CXX compiler identification is AppleClang 10.0.0.10001145 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - found -- Found Threads: TRUE
-- Boost version: 1.67.0 -- Found the following Boost libraries: -- system -- date_time -- thread -- chrono -- atomic -- Found OpenSSL: /usr/local/opt/openssl/lib/libcrypto.a (found version "1.0.2q")
-- Using OpenSSL 1.0.2q -- Looking for CL_VERSION_2_2 -- Looking for CL_VERSION_2_2 - not found -- Looking for CL_VERSION_2_1 -- Looking for CL_VERSION_2_1 - not found -- Looking for CL_VERSION_2_0 -- Looking for CL_VERSION_2_0 - not found -- Looking for CL_VERSION_1_2 -- Looking for CL_VERSION_1_2 - found -- Found OpenCL: /System/Library/Frameworks/OpenCL.framework (found version "1.2") -- Using OpenCL 1.2 -- Configuring done -- Generating done -- Build files have been written to: /Users/mac/desktop/opencl-miner Scanning dependencies of target beam-opencl-miner [ 25%] Building CXX object CMakeFiles/beam-opencl-miner.dir/beamStratum.cpp.o [ 25%] Building CXX object CMakeFiles/beam-opencl-miner.dir/clHost.cpp.o [ 37%] Building C object CMakeFiles/beam-opencl-miner.dir/crypto/sha256.c.o [ 50%] Building CXX object CMakeFiles/beam-opencl-miner.dir/main.cpp.o [ 62%] Building CXX object CMakeFiles/beam-opencl-miner.dir/beam/core/difficulty.cpp.o [ 75%] Building CXX object CMakeFiles/beam-opencl-miner.dir/beam/core/uintBig.cpp.o [ 87%] Building CXX object CMakeFiles/beam-opencl-miner.dir/beam/utility/common.cpp.o [100%] Linking CXX executable beam-opencl-miner clang: error: unsupported option '-static-libgcc' make[2]: [beam-opencl-miner] Error 1 make[1]: [CMakeFiles/beam-opencl-miner.dir/all] Error 2 make: *** [all] Error 2
cmake
seems working perfectly, but something went wrong inmake
.