EDIT: I got past the errors below with a few changes:
mkdir build
cmake .
vi CMakeLists.txt
# under project(bitnote)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)
set( CMAKE_CXX_FLAGS " -pthread " )
this gave an alternate output dir for the builds as well as linked to the pthread library properly
--------- original message below ----------
any build instructions? am I missing something?
no compiled release?
ubuntu 16.04
/usr/bin/ld: cannot open output file performance_tests: Is a directory
/usr/bin/ld: CMakeFiles/simpleminer.dir/miner/simpleminer.cpp.o: undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
/usr/bin/ld: cannot open output file connectivity_tool: Is a directory
etc.
Scanning dependencies of target simplewallet
[ 65%] Building CXX object src/CMakeFiles/simplewallet.dir/simplewallet/password_container.cpp.o
[ 66%] Linking CXX executable performance_tests
/usr/bin/ld: cannot open output file performance_tests: Is a directory
collect2: error: ld returned 1 exit status
tests/CMakeFiles/performance_tests.dir/build.make:106: recipe for target 'tests/performance_tests' failed
make[2]: *** [tests/performance_tests] Error 1
CMakeFiles/Makefile2:835: recipe for target 'tests/CMakeFiles/performance_tests.dir/all' failed
make[1]: *** [tests/CMakeFiles/performance_tests.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 67%] Building CXX object src/CMakeFiles/simplewallet.dir/simplewallet/simplewallet.cpp.o
[ 68%] Building CXX object tests/CMakeFiles/coretests.dir/core_tests/block_validation.cpp.o
[ 69%] Building CXX object tests/CMakeFiles/unit_tests.dir/unit_tests/block_reward.cpp.o
[ 70%] Building CXX object tests/CMakeFiles/unit_tests.dir/unit_tests/chacha8.cpp.o
[ 71%] Linking CXX executable net_load_tests_srv
[ 72%] Building CXX object tests/CMakeFiles/unit_tests.dir/unit_tests/checkpoints.cpp.o
[ 72%] Built target net_load_tests_srv
[ 73%] Building CXX object tests/CMakeFiles/unit_tests.dir/unit_tests/decompose_amount_into_digits.cpp.o
[ 74%] Linking CXX executable simpleminer
/usr/bin/ld: CMakeFiles/simpleminer.dir/miner/simpleminer.cpp.o: undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
src/CMakeFiles/simpleminer.dir/build.make:106: recipe for target 'src/simpleminer' failed
make[2]: *** [src/simpleminer] Error 1
CMakeFiles/Makefile2:479: recipe for target 'src/CMakeFiles/simpleminer.dir/all' failed
make[1]: *** [src/CMakeFiles/simpleminer.dir/all] Error 2
[ 75%] Building CXX object tests/CMakeFiles/unit_tests.dir/unit_tests/epee_boosted_tcp_server.cpp.o
[ 76%] Linking CXX executable net_load_tests_clt
[ 76%] Building CXX object tests/CMakeFiles/unit_tests.dir/unit_tests/epee_levin_protocol_handler_async.cpp.o
[ 77%] Linking CXX executable connectivity_tool
/usr/bin/ld: cannot open output file connectivity_tool: Is a directory
collect2: error: ld returned 1 exit status
src/CMakeFiles/connectivity_tool.dir/build.make:106: recipe for target 'src/connectivity_tool' failed
make[2]: *** [src/connectivity_tool] Error 1
CMakeFiles/Makefile2:329: recipe for target 'src/CMakeFiles/connectivity_tool.dir/all' failed
make[1]: *** [src/CMakeFiles/connectivity_tool.dir/all] Error 2
[ 78%] Building CXX object tests/CMakeFiles/coretests.dir/core_tests/chain_split_1.cpp.o
[ 79%] Building CXX object tests/CMakeFiles/unit_tests.dir/unit_tests/get_xtype_from_string.cpp.o
[ 79%] Built target net_load_tests_clt
[ 80%] Building CXX object tests/CMakeFiles/coretests.dir/core_tests/chain_switch_1.cpp.o
[ 81%] Building CXX object tests/CMakeFiles/unit_tests.dir/unit_tests/main.cpp.o
[ 82%] Building CXX object tests/CMakeFiles/unit_tests.dir/unit_tests/mul_div.cpp.o
[ 83%] Building CXX object tests/CMakeFiles/unit_tests.dir/unit_tests/parse_amount.cpp.o
[ 84%] Building CXX object tests/CMakeFiles/unit_tests.dir/unit_tests/serialization.cpp.o
[ 84%] Building CXX object tests/CMakeFiles/unit_tests.dir/unit_tests/test_format_utils.cpp.o
[ 85%] Building CXX object tests/CMakeFiles/unit_tests.dir/unit_tests/test_peerlist.cpp.o
[ 86%] Building CXX object tests/CMakeFiles/unit_tests.dir/unit_tests/test_protocol_pack.cpp.o
[ 87%] Linking CXX executable core_proxy
/usr/bin/ld: cannot open output file core_proxy: Is a directory
collect2: error: ld returned 1 exit status
tests/CMakeFiles/core_proxy.dir/build.make:107: recipe for target 'tests/core_proxy' failed
make[2]: *** [tests/core_proxy] Error 1
CMakeFiles/Makefile2:1028: recipe for target 'tests/CMakeFiles/core_proxy.dir/all' failed
make[1]: *** [tests/CMakeFiles/core_proxy.dir/all] Error 2
[ 87%] Building CXX object tests/CMakeFiles/coretests.dir/core_tests/chaingen.cpp.o
[ 88%] Linking CXX executable simplewallet
/usr/bin/ld: cannot open output file simplewallet: Is a directory
collect2: error: ld returned 1 exit status
src/CMakeFiles/simplewallet.dir/build.make:135: recipe for target 'src/simplewallet' failed
make[2]: *** [src/simplewallet] Error 1
CMakeFiles/Makefile2:522: recipe for target 'src/CMakeFiles/simplewallet.dir/all' failed
make[1]: *** [src/CMakeFiles/simplewallet.dir/all] Error 2
[ 89%] Building CXX object tests/CMakeFiles/coretests.dir/core_tests/chaingen001.cpp.o
[ 90%] Building CXX object tests/CMakeFiles/coretests.dir/core_tests/chaingen_main.cpp.o
[ 91%] Building CXX object tests/CMakeFiles/coretests.dir/core_tests/double_spend.cpp.o
[ 92%] Building CXX object tests/CMakeFiles/coretests.dir/core_tests/integer_overflow.cpp.o
[ 93%] Building CXX object tests/CMakeFiles/coretests.dir/core_tests/ring_signature_1.cpp.o
[ 93%] Building CXX object tests/CMakeFiles/coretests.dir/core_tests/transaction_tests.cpp.o
[ 94%] Building CXX object tests/CMakeFiles/coretests.dir/core_tests/tx_validation.cpp.o
[ 95%] Linking CXX executable bitnoted
[ 96%] Linking CXX executable unit_tests
/usr/bin/ld: cannot open output file unit_tests: Is a directory
collect2: error: ld returned 1 exit status
tests/CMakeFiles/unit_tests.dir/build.make:472: recipe for target 'tests/unit_tests' failed
make[2]: *** [tests/unit_tests] Error 1
CMakeFiles/Makefile2:876: recipe for target 'tests/CMakeFiles/unit_tests.dir/all' failed
make[1]: *** [tests/CMakeFiles/unit_tests.dir/all] Error 2
/usr/bin/ld: CMakeFiles/daemon.dir/daemon/daemon.cpp.o: undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
src/CMakeFiles/daemon.dir/build.make:108: recipe for target 'src/bitnoted' failed
make[2]: *** [src/bitnoted] Error 1
CMakeFiles/Makefile2:216: recipe for target 'src/CMakeFiles/daemon.dir/all' failed
make[1]: *** [src/CMakeFiles/daemon.dir/all] Error 2
[ 97%] Linking CXX executable coretests
/usr/bin/ld: CMakeFiles/coretests.dir/core_tests/block_reward.cpp.o: undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
tests/CMakeFiles/coretests.dir/build.make:392: recipe for target 'tests/coretests' failed
make[2]: *** [tests/coretests] Error 1
CMakeFiles/Makefile2:988: recipe for target 'tests/CMakeFiles/coretests.dir/all' failed
make[1]: *** [tests/CMakeFiles/coretests.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2