Message: previous - next
Month: December 2011

Re: [trinity-devel] Autotools package builds

From: Laurent Dard <f.couperin@...>
Date: Thu, 15 Dec 2011 21:29:14 +0100
Le 15/12/2011 01:06, Baho Utot a écrit :
> On Wednesday 14 December 2011 04:54:56 pm Laurent Dard wrote:
>> Le 14/12/2011 01:22, Baho Utot a écrit :
>>> I need some help with the autoconf packages.
>>> When building it finds qt3 and tqtinterface but it keeps failing on
>>> linking QString and QWidget.  So I think it is missing some library. 
>>> What is weird is that all the libraries are in /opt/trinity/lib and
>>> /usr/lib.
>>> has those paths.
>>> What library are these in.
>> They are in Qt3 library libqt-mt ( and headers
>> ($QTDIR/include/qstring.h and $QTDIR/include/qwidget.h).
> Here is from my build log when running configure

There must be something wrong in your commands.
How did you configure qt3?

> checking for Qt... libraries /opt/trinity/lib, headers /opt/trinity/include 
> using -mt
> checking for moc... /opt/trinity/bin/moc

That's very unusual.
Did you really configured qt3 itself with "-prefix=/opt/trinity"?
That's probably why the build fails.

Since you installed tqtinterface in /usr, I think qt3 should have been
installed in the same place:
  ./configure -prefix /usr -headerdir /usr/include/qt ...
For details, see:

(When installing qt3 in /opt, it is installed in his own directory.)

Your trinity installation should be working at this stage. Does it?
Can you run qt programs (designer...)?

> 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... yes
> checking for tmoc... /usr/bin/tmoc
> checking for dcopidl... /opt/trinity/bin/dcopidl
> checking for dcopidl2cpp... /opt/trinity/bin/dcopidl2cpp
> checking for mcopidl... /opt/trinity/bin/mcopidl
> checking if Qt needs -ljpeg... no
> checking for rpath... yes
> checking for KDE... libraries /opt/trinity/lib, headers /opt/trinity/include
> checking if UIC has KDE plugins available... yes
> checking for KDE paths... defaults
> You see from above that it finds the qt headers and libs

I'm not sure it found something else than references to the directories,
with pkg-config.
But I didn't look deep in the configure script.

What is the output of those commands?
  ls -l /opt/trinity/include/qwidget.h
  ls -l /opt/trinity/lib/libqt-mt.*
  cat /usr/lib/pkgconfig/tqt.pc
  cat /opt/trinity/lib/pkgconfig/qt-mt.pc

Can you compile a little program?
  cat << EOF | gcc --verbose -x c++ - -I/opt/trinity/include -L/opt/trinity/lib
#include <qapplication.h>
int main(int argc, char **argv) { QApplication app(argc, argv); return 0; }

>> Did you follow the Trinity Build HowTo?
> 	cd to package sub dir
> 	source /etc/profile.d/

What is its content?

> 	cp -f "/usr/share/aclocal/libtool.m4" "admin/"
> 	cp -f "/usr/share/libtool/config/" "admin/"
> 	make -f "admin/Makefile.common"
> 	./configure prefix=/opt/trinity

That's a bit too short, maybe...

(With qt3 in /usr: --with-qt-dir=/usr/share/qt ;
--with-qt-includes and --with-qt-libraries may be specified.)

Laurent Dard