Hello,
I am playing with Kubuntu to see if it will be a better fit for my laptop than my current FC5. First I want to know if I can run everything I need for my work, so I have created a virtual installation on another computer.
Some of my programs have to be compiled against QT libraries. For instance, one program has this line:
#include <qpainter.h>
On my Kubuntu installation I have this file on /usr/include/qt3/qpainter.h. I believe it is part of the libqt3-headers package.
However when I try to compile the code I get the error message "error: qpainter.h: No such file or directory".
On FC5 there are a couple of things that happen automatically that let me compile the code after installing the QT libraries:
- The location of the libraries is defined on /etc/ld.so.conf.d/qt-i386.conf. The only line in there is /usr/lib/qt-3.3/lib.
- The variable QTDIR is defined as /usr/lib/qt-3.3
So, after installing the QT libraries (qt-devel package) on FC5 I can compile my code without problems.
But on Kubuntu it seems that I need to configure some things manually. I have created the file /etc/ld.so.conf and added the line /usr/lib/qt3 and defined the variable QTDIR as /usr/lib/qt3 because that was the directory closest to what I expected. However I cannot compile the code.
I have 2 main questions:
- How do I set up Kubuntu so that I can compile code with references to QT libraries?
- How can I look into the contents of a package and also figure out which package a file belongs to? For instance, in FC5 the commands would be "rpm -ql qt-devel" and "rpm -qf /usr/lib/qt-3.3/include/qpainter.h".
Thank you very much for your help. Best regards,
Elias