Собираем Litecoin бумажник/кошелек/wallet

Материал из IN-TON
Перейти к: навигация, поиск

Компиляция из исходников

  1.  
  2. git clone https://github.com/litecoin-project/litecoin.git
  3. cd litecoin
  4. qmake
  5. make
  6.  

И в конце получаем ошибку...

  1.  
  2. build/main.o: In function `boost::this_thread::sleep_for(boost::chrono::duration<long, boost::ratio<1l, 1000000000l> > const&)':
  3. main.cpp:(.text._ZN5boost11this_thread9sleep_forERKNS_6chrono8durationIlNS_5ratioILl1ELl1000000000EEEEE[_ZN5boost11this_thread9sleep_forERKNS_6chrono8durationIlNS_5ratioILl1ELl1000000000EEEEE]+0x5a): undefined reference to `boost::chrono::system_clock::now()'
  4. main.cpp:(.text._ZN5boost11this_thread9sleep_forERKNS_6chrono8durationIlNS_5ratioILl1ELl1000000000EEEEE[_ZN5boost11this_thread9sleep_forERKNS_6chrono8durationIlNS_5ratioILl1ELl1000000000EEEEE]+0x62): undefined reference to `boost::chrono::steady_clock::now()'
  5. main.cpp:(.text._ZN5boost11this_thread9sleep_forERKNS_6chrono8durationIlNS_5ratioILl1ELl1000000000EEEEE[_ZN5boost11this_thread9sleep_forERKNS_6chrono8durationIlNS_5ratioILl1ELl1000000000EEEEE]+0xa8): undefined reference to `boost::chrono::steady_clock::now()'
  6. build/init.o: In function `DetectShutdownThread(boost::thread_group*)':
  7. init.cpp:(.text+0x13ff): undefined reference to `boost::chrono::system_clock::now()'
  8. init.cpp:(.text+0x140c): undefined reference to `boost::chrono::steady_clock::now()'
  9. init.cpp:(.text+0x15d6): undefined reference to `boost::chrono::steady_clock::now()'
  10. build/db.o: In function `CDB::Rewrite(std::string const&, char const*)':
  11. db.cpp:(.text+0x29ee): undefined reference to `boost::chrono::system_clock::now()'
  12. db.cpp:(.text+0x29f6): undefined reference to `boost::chrono::steady_clock::now()'
  13. db.cpp:(.text+0x2bd8): undefined reference to `boost::chrono::steady_clock::now()'
  14. build/walletdb.o: In function `ThreadFlushWalletDB(std::string const&)':
  15. walletdb.cpp:(.text+0x1bed): undefined reference to `boost::chrono::system_clock::now()'
  16. walletdb.cpp:(.text+0x1bf5): undefined reference to `boost::chrono::steady_clock::now()'
  17. walletdb.cpp:(.text+0x1cfe): undefined reference to `boost::chrono::steady_clock::now()'
  18. collect2: ошибка: выполнение ld завершилось с кодом возврата 1
  19. make: *** [litecoin-qt] Ошибка 1
  20.  

Открываем файл bitcoin-qt.pro и ищем следующий участок

  1.  
  2. # -lgdi32 has to happen after -lcrypto (see #681)
  3. win32:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32
  4. LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX
  5. win32:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
  6. macx:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
  7.  

Добавляем в либы следующее -lboost_chrono$$BOOST_THREAD_LIB_SUFFIX -lboost_timer$$BOOST_THREAD_LIB_SUFFIX т.е. должно получиться вот так

  1.  
  2. # -lgdi32 has to happen after -lcrypto (see #681)
  3. win32:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32
  4. LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX -lboost_chrono$$BOOST_THREAD_LIB_SUFFIX -lboost_timer$$BOOST_THREAD_LIB_SUFFIX
  5. win32:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
  6. macx:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX
  7.  

теперь собираем и радуемся.

Благодарности

Благодарности можно присылать по следующим адресам:

  • BTC: 1DgpUS682yYA5rYmpFgRQWi5ugNQjux9ft
  • LTC: LhF4pTqxoz8NkWiJHHBsC3tWb11CsfQdcm
  • FTC: 6q8LCxrZ6WRLii1yQTomQ9Ei3t2wDkEoSK
  • NVC: 4bFWmGcQb3i3VZ6susgiBW5U3yotJeDMWB