I have been trying to learn how to use the Qt libraries on Mandrake 9, following the Trolltech 'qt3 designer' tutorials.
Once I found the qmake program in the /lib/qt3/bin directory and added that to my PATH, I was able to create the makefiles.
(Problem 1, /lib/qt3/bin is not part of the PATH once the qt3 package is installed)
Of course, qmake fails because required configuration environment variables are also not defined.
Once I define QTDIR and QMAKESPEC, it works.
(Problem 2, am I missing something or should these be defined in the /etc/profile.d directory as something like qt3.sh and qt3.csh files)
I tried to compile the program and it fails because it cannot find qt library (-lqt).
I have looked in the /lib/qt3/lib directory (it is mentioned in /etc/ld.so.conf) and there is no such beastie. There is a qt-mt which I assume is the multi threaded library.
(Problem 3, I gather that libqt is not multi-threaded, and by examining the source rpm of qt3 from mandrake, it appears that non-multi-threaded version does not appear to be built, thus making the default configuration not work)
I have subsequently found that by adding 'thread' to the project attributes fixes this but I would have hoped that designer would have worked 'out of the box'
Of course, I have tried building the newest version of Qt 3.0.6 but am having to install heaps of other stuff before I can build it (freetype-devel which I have to build because mandrake does not have a new enough version, and the build refuses to work under RPM because it does not properly support the non-root /var/tmp/.../usr/lib directory during the install process on the pre-1.4 bits, fontconfig because it is not in mandrake and wont build unless I have freetype-devel installed)
I am rapidly disappearing into the RPM black hole... Is there a better way? (rpmfind does not find these packages from mandrake, either at all or new enough versions). Or do I have to persevere, trying to create patches such that they do build? Assistance in this area would be greatly appreciated.
...Lyall
