Project

General

Profile

Actions

Support #199

closed

Постройка libtorrent

Added by Shchvova about 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Plugins: BitTorrent
Target version:
-
Start date:
11/25/2010
Due date:
% Done:

100%

Estimated time:

Description

БЛЯ Я СРУ КИРПИЧАМИ ОТ ТОГО КАК ЭТУ БАЙДУ СТРОИТЬ
На моем няшномаке она строится, но при линковке с личкрафтом.
Не может найти символы для некоторых функций. Ну общим, реквестирую детальные инструкции построения libtorrent-rasterbar-0.15.4

Actions #1

Updated by 0xd34df00d about 14 years ago

-lcrypto, в первую очередь.
И сообщения об ошибках, да.

Actions #2

Updated by Shchvova about 14 years ago

-lcrypto, в первую очередь.

Это кусок openssl?
Его приколупывак к личкрафтам? Я вот построил опенссл на свою платформу, там есть такой файлик. А как его к плагину торрентов приделать?

Actions #3

Updated by 0xd34df00d about 14 years ago

Да, кусок openssl.
Нуэ, укажи его как библиотеку, с которой линковаться. Как это делается — зависит от среды. Попробуй поковырять CMakeCache.txt еще.

Actions #4

Updated by Shchvova about 14 years ago

так ковырять в растерба-лторенте или в личкрафт-торенте?

Actions #5

Updated by 0xd34df00d about 14 years ago

В личкрафторренте. А ты растербар с openssl=pe собираешь?

Actions #6

Updated by Shchvova about 14 years ago

хм... А я ебу

Actions #7

Updated by Shchvova about 14 years ago

Linking CXX shared library libleechcraft_bittorrent.dylib
Undefined symbols:
"SHA1_Init(SHA_CTX*)", referenced from:
libtorrent::hasher::hasher(char const*, int)in torrentmaker.cpp.o
"SHA1_Final(unsigned char*, SHA_CTX*)", referenced from:
libtorrent::hasher::final() in torrentmaker.cpp.o
"boost::filesystem2::no_check(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
LeechCraft::Plugins::BitTorrent::TorrentMaker::Start(LeechCraft::Plugins::BitTorrent::NewTorrentParams)in torrentmaker.cpp.o
"SHA1_Update(SHA_CTX*, unsigned char const*, unsigned int)", referenced from:
libtorrent::hasher::hasher(char const*, int)in torrentmaker.cpp.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make2: * [plugins/bittorrent/libleechcraft_bittorrent.dylib] Error 1
make1:
[plugins/bittorrent/CMakeFiles/leechcraft_bittorrent.dir/all] Error 2
make: *
* [all] Error 2

Actions #8

Updated by 0xd34df00d about 14 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Ну сбилдилось же.

Actions #9

Updated by pvanek almost 14 years ago

Hi all,
can this be related? My knowledge of Cyrillic is very limited...

Linking CXX shared library libleechcraft_bittorrent.dylib
Undefined symbols:
  "boost::filesystem2::no_check(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      LeechCraft::Plugins::BitTorrent::TorrentMaker::Start(LeechCraft::Plugins::BitTorrent::NewTorrentParams)in torrentmaker.cpp.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [plugins/bittorrent/libleechcraft_bittorrent.dylib] Error 1
make[1]: *** [plugins/bittorrent/CMakeFiles/leechcraft_bittorrent.dir/all] Error 2
make: *** [all] Error 2

platform: macosx, boost, qt4 and all libs from macports (so all is pretty up-to-date)

VERBOSE=1 output

/usr/bin/c++   -fvisibility=hidden -fno-strict-aliasing -DTORRENT_USE_OPENSSL -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DTORRENT_LINKING_SHARED -I/opt/local/include -I/opt/local/include/libtorrent -g -dynamiclib -Wl,-headerpad_max_install_names  -o libleechcraft_bittorrent.dylib -install_name /Users/pvanek/oss/drss/leechcraft/leechcraft/build/plugins/bittorrent/libleechcraft_bittorrent.dylib CMakeFiles/leechcraft_bittorrent.dir/torrentplugin.cpp.o CMakeFiles/leechcraft_bittorrent.dir/tabwidget.cpp.o CMakeFiles/leechcraft_bittorrent.dir/core.cpp.o CMakeFiles/leechcraft_bittorrent.dir/addtorrent.cpp.o CMakeFiles/leechcraft_bittorrent.dir/newtorrentwizard.cpp.o CMakeFiles/leechcraft_bittorrent.dir/intropage.cpp.o CMakeFiles/leechcraft_bittorrent.dir/firststep.cpp.o CMakeFiles/leechcraft_bittorrent.dir/secondstep.cpp.o CMakeFiles/leechcraft_bittorrent.dir/thirdstep.cpp.o CMakeFiles/leechcraft_bittorrent.dir/addmultipletorrents.cpp.o CMakeFiles/leechcraft_bittorrent.dir/pieceswidget.cpp.o CMakeFiles/leechcraft_bittorrent.dir/xmlsettingsmanager.cpp.o CMakeFiles/leechcraft_bittorrent.dir/piecesmodel.cpp.o CMakeFiles/leechcraft_bittorrent.dir/torrentfilesmodel.cpp.o CMakeFiles/leechcraft_bittorrent.dir/peersmodel.cpp.o CMakeFiles/leechcraft_bittorrent.dir/filesviewdelegate.cpp.o CMakeFiles/leechcraft_bittorrent.dir/movetorrentfiles.cpp.o CMakeFiles/leechcraft_bittorrent.dir/trackerschanger.cpp.o CMakeFiles/leechcraft_bittorrent.dir/exportdialog.cpp.o CMakeFiles/leechcraft_bittorrent.dir/peerstablinker.cpp.o CMakeFiles/leechcraft_bittorrent.dir/addpeerdialog.cpp.o CMakeFiles/leechcraft_bittorrent.dir/ipvalidators.cpp.o CMakeFiles/leechcraft_bittorrent.dir/addwebseeddialog.cpp.o CMakeFiles/leechcraft_bittorrent.dir/wizardgenerator.cpp.o CMakeFiles/leechcraft_bittorrent.dir/startupfirstpage.cpp.o CMakeFiles/leechcraft_bittorrent.dir/fastspeedcontrolwidget.cpp.o CMakeFiles/leechcraft_bittorrent.dir/banpeersdialog.cpp.o CMakeFiles/leechcraft_bittorrent.dir/ipfilterdialog.cpp.o CMakeFiles/leechcraft_bittorrent.dir/livestreammanager.cpp.o CMakeFiles/leechcraft_bittorrent.dir/livestreamdevice.cpp.o CMakeFiles/leechcraft_bittorrent.dir/speedselectoraction.cpp.o CMakeFiles/leechcraft_bittorrent.dir/torrentmaker.cpp.o CMakeFiles/leechcraft_bittorrent.dir/singletrackerchanger.cpp.o CMakeFiles/leechcraft_bittorrent.dir/moc_torrentplugin.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_tabwidget.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_core.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_addtorrent.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_newtorrentwizard.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_intropage.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_firststep.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_secondstep.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_thirdstep.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_addmultipletorrents.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_pieceswidget.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_xmlsettingsmanager.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_piecesmodel.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_torrentfilesmodel.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_peersmodel.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_filesviewdelegate.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_movetorrentfiles.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_trackerschanger.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_exportdialog.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_peerstablinker.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_addpeerdialog.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_ipvalidators.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_addwebseeddialog.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_wizardgenerator.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_startupfirstpage.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_fastspeedcontrolwidget.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_banpeersdialog.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_ipfilterdialog.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_livestreammanager.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_livestreamdevice.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_speedselectoraction.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_torrentmaker.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_singletrackerchanger.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_newtorrentparams.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_torrentinfo.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_fileinfo.cxx.o CMakeFiles/leechcraft_bittorrent.dir/moc_peerinfo.cxx.o CMakeFiles/leechcraft_bittorrent.dir/qrc_bittorrentresources.cxx.o /opt/local/lib/libboost_system-mt.dylib /opt/local/lib/libboost_thread-mt.dylib /opt/local/lib/libboost_date_time-mt.dylib /opt/local/lib/libboost_filesystem-mt.dylib /opt/local/lib/libQtGui.dylib /opt/local/lib/libQtXml.dylib /opt/local/lib/libQtCore.dylib /opt/local/lib/libtorrent-rasterbar.dylib ../../plugininterface/libplugininterface.0.3.0.dylib ../../xmlsettingsdialog/libxmlsettingsdialog.0.3.0.dylib -lcrypto /opt/local/lib/libQtScript.dylib /opt/local/lib/libQtGui.dylib /opt/local/lib/libQtXml.dylib /opt/local/lib/libQtSql.dylib /opt/local/lib/libQtNetwork.dylib /opt/local/lib/libQtCore.dylib

Actions #10

Updated by 0xd34df00d almost 14 years ago

First of all, try building with optimizations enabled (so that -O2, for example, is passed to the compiler). Selecting Release build mode will do.

Actions #11

Updated by pvanek almost 14 years ago

I see. CMAKE_BUILD_TYPE=Release fixed it.

Actions #12

Updated by 0xd34df00d almost 14 years ago

Nice. I'd add that to the Troubleshooting section of the build guide.
By the way, I'm just curious, what's your system/distro/compiler version? This error has only been encountered on FreeBSD, up until now, at least.

Actions #13

Updated by pvanek almost 14 years ago

as I wrote above: Mac OS X (10.6.x), gcc i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)
so it's very BSD related ;)

Actions

Also available in: Atom PDF