![]() Registered Member ![]()
|
Hi guys,
First-time poster here. I am trying to install ktorrent on Slackware. (I'm also new to Slackware; was using Lubuntu before, in case that's relevant). So I downloaded the ktorrent-4.3.1.tar.bz2 and libktorrent-1.3.1.tar.bz2 from http://ktorrent.pwsp.net/?q=downloads. I installed libktorrent-1.3.1.tar.bz2 first by following the directions, and I didn't get any error, so I am assuming it all went OK. Then I tried installing ktorrent-4.3.1.tar.bz2. However, on the 'make' step I get the following error: /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: CMakeFiles/ipblocklisttest.dir/__/ipblocklist.o: undefined reference to symbol '_ZNK12QHostAddress8protocolEv' /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld: note: '_ZNK12QHostAddress8protocolEv' is defined in DSO /usr/lib64/qt/lib/libQtNetwork.so.4 so try adding it to the linker command line /usr/lib64/qt/lib/libQtNetwork.so.4: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[2]: *** [plugins/ipfilter/tests/ipblocklisttest] Error 1 make[1]: *** [plugins/ipfilter/tests/CMakeFiles/ipblocklisttest.dir/all] Error 2 make: *** [all] Error 2 Can anyone help me out with this error? I do not know what DSO or the linker command line is. Any help would be appreciated. Thanks! |
![]() Administrator ![]()
|
Please run "VERBOSE=1 make", post the output in a pastebin, and post the link to that here.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Hi bcooksley - thanks for offering to help.
I ran the command you asked, and since I didn't know how to write it to a file, I googled it and it looks like, in order to write both the stdout stream and the stderr stream, I had to use command > file 2>&1. I hope this is what you were looking for, but if not I will try again. Here is the output: http://paste.ubuntu.com/6786672/ |
![]() Administrator ![]()
|
What arguments did you use to configure KTorrent for building using CMake? It seems you have tests enabled, and the linker flags it is passing are not sufficient enough for the strict linking your system is using. Interestingly enough, KDE's CI system uses a similar setup and it was able to compile this test without problems.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
I used the instructions located here: http://ktorrent.pwsp.net/?q=downloads The arguments I am using with cmake are: cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` That same URL has the following directions: You will need to install cmake and all the necessary development packages (Qt,KDE,libgmp,QCA2), to get it compiled properly. In a previous step for the install, it says that all external packages were found, so I do not think I am missing any packages / dependencies, but what do I know. Let me know what are the next steps you think I should take. -Steven |
![]() Administrator ![]()
|
Your system isn't missing any packages - the compiler is merely being very strict, and KTorrent's CMake code isn't up to that standard - although the version being built by KDE's CI system does appear to be.
Can you please paste the contents of plugins/ipfilter/tests/CMakeLists.txt from the sources you downloaded?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Hi bcooksley. I the root directory, I ran the following command: find . -iname '*CMakeLists*' It only found these files: ./usr/share/cmake-2.8/Modules/IntelVSImplicitPath/CMakeLists.txt ./usr/share/cmake-2.8/Modules/FortranCInterface/CMakeLists.txt ./usr/share/cmake-2.8/Modules/FortranCInterface/Verify/CMakeLists.txt Are any of these the files you are looking for? |
![]() Registered Member ![]()
|
I re-ran find / -type d -iname '*CMakeLists*' as root and was able to find the file you are referring.
(I am not sure why this didn't work last time - I added sudo to the command....) Anyway, here is the file: http://paste.ubuntu.com/6799497/ Thank you! |
![]() Administrator ![]()
|
Please change the contents of that file to the following, then attempt to compile KTorrent again.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Thanks bcooksley. That took care of the original error, but now when I run sudo make install I get the following error:
http://paste.ubuntu.com/6805886/ I am trying to anticipate the next step, so here is what I find in the file /home/steven/tmp/ktorrent-4.3.1/plugins/stats/CMakeLists.txt: http://paste.ubuntu.com/6805923/ |
![]() Administrator ![]()
|
Does "make" still succeed? That error message is highly unusual - as to have reached the make install stage it needed to pass make first, and the qconfig.h header is rather crucial - so it's absence would indicate your Qt installation is broken.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Make does indeed succeed.
I will (re?)install Qt and try again later today. Will post back with the results. Thanks again for all the help. |
![]() Registered Member ![]()
|
bcooksley,
I am trying to install Qt5. Unfortunately, I am having issues installing that, so I am asking in the LinuxQuestions forum for help (so as not to overwhelm you). Once I get that set-up, I will be back. Hopefully it won't take more than a day to get Qt installed. P.S. I looked at the Slackware packages (http://slackblog.com/slackware/slackwar ... CKAGES.TXT) and it seems like it doesn't include any version of Qt. Since I haven't installed one, it must be missing..... |
![]() Registered Member ![]()
|
@bcooksley
It is fixed. I found this post on this very forum. Ugh. I wish I would have found it earlier, but it is all a learning experience. Thank you so much for your patience. viewtopic.php?f=235&t=106463&p=300912#p300912 |
![]() Administrator ![]()
|
Not a problem. Please note that KTorrent is currently only intended to work with Qt 4, and will likely fail to compile with Qt 5.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell