16
Technical Support / Re: build errors
« on: February 14, 2014, 04:00:08 am »
Here is the command I ran manually which succeeded:
/usr/bin/c++ -O2 -g -DNDEBUG CMakeFiles/bts_wallet.dir/main.cpp.o CMakeFiles/bts_wallet.dir/chain_connection.cpp.o -o bts_wallet -rdynamic ../libbshare.a -lrt -lreadline -ldl ../fc/libfc.a ../fc/vendor/easylzma/src/libeasylzma_static.a -Wl,-Bstatic -lboost_thread-mt -lboost_date_time-mt -lboost_system-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_signals-mt -lboost_serialization-mt -lboost_chrono-mt -lboost_unit_test_framework-mt -lboost_context-mt -lboost_coroutine -lssl -lcrypto ../vendor/miniupnp/miniupnpc/libminiupnpc.a ../vendor/leveldb-1.12.0/libleveldb.a -Wl,-Bdynamic -lpthread -ldb_cxx -lz -ldl
Note that there is an "-ldl" early in the command (presumably from the ${CMAKE_DL_LIBS} in CMakeLists.txt) and that I had to add "-ldl" again at the end.
Need to get this to happen using only CMakeLists.txt
/usr/bin/c++ -O2 -g -DNDEBUG CMakeFiles/bts_wallet.dir/main.cpp.o CMakeFiles/bts_wallet.dir/chain_connection.cpp.o -o bts_wallet -rdynamic ../libbshare.a -lrt -lreadline -ldl ../fc/libfc.a ../fc/vendor/easylzma/src/libeasylzma_static.a -Wl,-Bstatic -lboost_thread-mt -lboost_date_time-mt -lboost_system-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_signals-mt -lboost_serialization-mt -lboost_chrono-mt -lboost_unit_test_framework-mt -lboost_context-mt -lboost_coroutine -lssl -lcrypto ../vendor/miniupnp/miniupnpc/libminiupnpc.a ../vendor/leveldb-1.12.0/libleveldb.a -Wl,-Bdynamic -lpthread -ldb_cxx -lz -ldl
Note that there is an "-ldl" early in the command (presumably from the ${CMAKE_DL_LIBS} in CMakeLists.txt) and that I had to add "-ldl" again at the end.
Need to get this to happen using only CMakeLists.txt