Hmm...
I'm beginning to suspect that I have tqtinterface installed in the wrong place. I build tqtinterface with:
cmake ../ \ -DCMAKE_INSTALL_PREFIX=/usr \ -DWITH_QT3=ON \ -DCMAKE_SKIP_RPATH=ON || return 1
And I have built arts and kdelibs with:
cmake ../ \ -DCMAKE_INSTALL_PREFIX=/opt/trinity \ -DWITH_QT3=ON \ -DCMAKE_SKIP_RPATH=ON make
kdelibs built OK, but both kdebase and kdebindings (not needed I know) fail during ./configure with:
checking for uic-tqt... /usr/bin/uic-tqt checking whether uic supports -L ... yes checking whether uic supports -nounload ... yes checking if TQt is available... no configure: WARNING: You are attempting to compile Trinity without the Trinity Qt Interface installed. Please install libtqtinterface-dev and try again! checking if Qt needs -ljpeg... no checking for rpath... no checking for KDE... libraries /opt/trinity/lib, headers /opt/trinity/include checking if UIC has KDE plugins available... no configure: error: you need to install kdelibs first.
I do have kde4 on this box with qt 4.7.1-3 which installs to /usr, so I then tried the following configure options with kdebase:
--with-qt-dir=/usr/bin \ --with-qt-includes=/usr/include/tqt \ --with-qt-libraries=/usr/lib \
Which caused the following ./configure error:
checking for libjpeg... -ljpeg checking for perl... /usr/bin/perl checking for Qt... configure: error: Qt (>= Qt 3.3 and < 4.0) (library qt-mt) not found. Please check your installation! For more details about this problem, look at the end of config.log. Make sure that you have compiled Qt with thread support!
Hmm... again... Looking where qt-mt got installed, I find:
2:52 providence:~/arch/pkg/trinity/dependencies/tqtinterface> find /opt/qt/ -name "*qt-mt*" /opt/qt/lib/libqt-mt.so.3 /opt/qt/lib/pkgconfig/qt-mt.pc /opt/qt/lib/libqt-mt.so /opt/qt/lib/libqt-mt.so.3.3.8 /opt/qt/lib/libqt-mt.so.3.3 /opt/qt/lib/libqt-mt.prl
which are the new qt3-3.3.8c libraries.
I then rebuilt tqtinterface to go in /opt/qt. But then remaking arts failed not finding Qt again. Grrr....
I then rebuilt tqtinterface with PREFIX=/usr. But now when I'm back to square one and kdebase, ./configure fails...
So, what's the solution?
Should I remake tqtinterface with -DCMAKE_INSTALL_PREFIX=/opt/qt and then try adjusting the --with-qt... options for all remaining packages? Is there an environment variable trick I can try?
What say the experts?
On Wednesday 02 February 2011 21:00:01 David C. Rankin wrote: [...]
kdelibs built OK, but both kdebase and kdebindings (not needed I know) fail during ./configure with:
checking for uic-tqt... /usr/bin/uic-tqt checking whether uic supports -L ... yes checking whether uic supports -nounload ... yes checking if TQt is available... no configure: WARNING: You are attempting to compile Trinity without the Trinity Qt Interface installed. Please install libtqtinterface-dev and try again! checking if Qt needs -ljpeg... no checking for rpath... no checking for KDE... libraries /opt/trinity/lib, headers /opt/trinity/include checking if UIC has KDE plugins available... no configure: error: you need to install kdelibs first.
[...]
So, what's the solution?
The solution is to check config.log, to check what actually happens.
On 02/02/2011 01:10 PM, Serghei Amelian wrote:
The solution is to check config.log, to check what actually happens.
Oh you're good..... :p
I'll take a look and see what I can find. I just have a sneaking suspicion that if Qt3 get's installed to /opt/qt, then the tqtinterface should go there too... (maybe not -- I'm just learning, thus the questions :-)
Thanks, I'll report back what I find.
On 02/02/2011 02:01 PM, David C. Rankin wrote:
On 02/02/2011 01:10 PM, Serghei Amelian wrote:
The solution is to check config.log, to check what actually happens.
Oh you're good..... :p
I'll take a look and see what I can find. I just have a sneaking suspicion that if Qt3 get's installed to /opt/qt, then the tqtinterface should go there too... (maybe not -- I'm just learning, thus the questions :-)
Thanks, I'll report back what I find.
Ahah!
It was grabbing the wrong Qt from /usr even though it saw the /opt/qt install. So it looks like tqtinterface will have to go in /opt/qt and then have the --with-qt-.... options set for the remaining packages. (If I'm interpreting the error correctly) Here is the snippet:
configure:23548: checking whether uic supports -L configure:23559: /usr/bin/uic-tqt -L /nonexistent conftest.ui >/dev/null Qt User Interface Compiler version 4.7.1 Usage: uic [options] <uifile>
-h, -help display this help and exit -v, -version display version -d, -dependencies display the dependencies -o <file> place the output into <file> -tr <func> use func() for i18n -p, -no-protection disable header protection -n, -no-implicit-includes disable generation of #include-directives for forms generated by uic3 -g <name> change generator
configure:23562: $? = 0 configure:23574: result: yes configure:23586: checking whether uic supports -nounload configure:23597: /usr/bin/uic-tqt -nounload conftest.ui >/dev/null Qt User Interface Compiler version 4.7.1 Usage: uic [options] <uifile>
-h, -help display this help and exit -v, -version display version -d, -dependencies display the dependencies -o <file> place the output into <file> -tr <func> use func() for i18n -p, -no-protection disable header protection -n, -no-implicit-includes disable generation of #include-directives for forms generated by uic3 -g <name> change generator
configure:23600: $? = 0 configure:23612: result: yes configure:23737: checking if TQt is available configure:23771: rm -rf SunWS_cache; g++ -o conftest -march=x86-64 -mtune=generic -O2 -pipe -I/opt/qt/include - I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wl,--hash-style=gnu -Wl,--as-needed conftest.cpp -L/opt/qt/lib -L/o pt/trinity/lib -lqt-mt -lpng -lz -lm -ljpeg -ldl -lXext -lX11 -lSM -lICE -ltqt 1>&5 conftest.cpp:46:21: fatal error: tqtimer.h: No such file or directory compilation terminated. configure:23771: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME ""
Full config.log is here:
http://www.3111skyline.com/dl/dt/trinity/errors/kdebase-config.log
I'll start over -- putting tqtinterface in /opt/qt and go from there. Let me know if you have any other ideas. Thanks.