![]() Registered Member ![]()
|
Having spent some time learning Qt, I am now just starting to learn about the KDE libraries, and I already came upon a problem.
I am using Kubuntu 9.04, and I just can't figure out which of the dev packages contains the ktcpsocket header. The KTcpSocket class is part of the KDE Core library, but the kdelibs5-dev package doesn't include the files for this class. Maybe it is a packaging problem, but I thought to try asking here first. Any help is appreciated. Wim |
![]() Administrator ![]()
|
kdelibs5-dev sounds like the correct package to contain ktcpsocket.h. Please report a bug at Launchpad, as this header has been correctly installed on my Trunk system. You can obtain a copy of ktcpsocket.h from KDE SVN.
http://websvn.kde.org/branches/KDE/4.3/kdelibs/
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
|
![]() Registered Member ![]()
|
Well, I posted a bug report at launchpad, but the reply I got was that "KTcpSocket was only released with KDE 4.3 or higher."
Since Kubuntu 9.04 uses KDE 4.1, that class is not part of kdelibs. So then my question becomes: how can I know if the code for a class that is listed in the API docs has not been enabled in the release version? |
![]() Administrator ![]()
|
You need to access the version appropriate API docs for your release. These are available from api.kde.org, although KDE 4.1 is getting old now.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
I understand that. Here is the link with the KTcpSocket documentation for KDE 4.1.
http://api.kde.org/4.1-api/kdelibs-apid ... ocket.html There is also KTcpSocket class documentation in 4.0 and 4.2. You can check by yourself. The API docs show that KTcpSocket is part of KDE 4.0, 4.1, and 4.2. However, kdelibs5-dev package of Kubuntu 9.04 for KDE 4.2 (not 4.1, my mistake), does not include the class files because KTcpSocket was not part of the release version. I am confused. |
![]() Administrator ![]()
|
This appears to be a bug in the API documentation generation. It is correct that ktcpsocket.h was not installed until KDE 4.3. As the symbols are already being exported, you can simply copy the ktcpsocket.h file into your source tree.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Thanks for the clarification.
Should I file a bug report somewhere? Is it possible that other classes are affected? |
![]() Administrator ![]()
|
Yes, it is possible that other classes are affected. Please report a bug to bugs.kde.org.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Kubuntu 9.04 by default uses KDE 4.2.2 Resent versions are accessible from backports repository btw.
kubuntu 10.04 AMD64 - KDE 4.4
AMD - radeonHD - M-Audio revolution 5.1 |
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]