You are not logged in.
Pages: 1
After last upgrading (pacman -Suy on 09/05/2013) I have problem on linking program with udp port.
This is the result:
/usr/bin/ld: CMakeFiles/readpremag.dir/readpremag.o: undefined reference to symbol '_ZN12QHostAddress10setAddressERK7QString'
/usr/bin/ld: note: '_ZN12QHostAddress10setAddressERK7QString' is defined in DSO /usr/lib/libQtNetwork.so.4 so try adding it to the linker command line
/usr/lib/libQtNetwork.so.4: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
Before the linking worked fine. I try to change some reference from qt4 to qt5 but nothing changed.
Can someone help me to understand the status for qt4 and qt5 in kdevelop ?
Thank
Offline
qt4 will be supported in KDevelop as the KDE devs use it.
qt5 will probably be supported.
From your problem it seems that you need to reinstall qt4.
If that fails, in your CMake.txt in your target_link_libaries add QtNetwork, so for a target named hello_world it would be:
target_link_libraries(hello_world QtNetwork)
If that doesn't work, in your CMake.txt add the following line (analogous to the above)
add_definitions("-lQtNetwork")
If that doesn't resolve the problem, then I don't know what will.
Edit: On a last note:
Qt support is not a necessary part of KDevelop, even if it didn't have any support for it you would still be able to use it (error free usage of) as KDevelop's build system is CMake, and that can be configured to use Qt, which is what KDevelop does for Qt projects.
Last edited by mthinkcpp (2013-05-27 17:48:44)
Offline
Pages: 1