Message: previous - next
Month: April 2012

Re: [trinity-devel] Can't build tqca on 64-bit

From: Darrell Anderson <humanreadable@...>
Date: Wed, 25 Apr 2012 13:29:46 -0700 (PDT)
> did you try to set variable QTLIB before running qmake ?
> export QTLIB=$PREFIX/lib64

QTLIB probably the same as what I define as QT_LIB_DIR.

Nonetheless, I tried using QTLIB anyway. No difference.

Here is my build information:

PREFIX: /opt/trinity
SYSCONFDIR: /etc/trinity
LIBDIR: /opt/trinity/lib64
MANDIR: /opt/trinity/man

PKG_CONFIG_PATH: /opt/trinity/lib64/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/opt/trinity/lib/pkgconfig
QTDIR: /opt/trinity
QT_INCLUDE_DIR: /opt/trinity/include
QT_LIB_DIR: /opt/trinity/lib64
LD_LIBRARY_PATH: /opt/trinity/lib64:/opt/trinity/lib64/trinity
PATH: /usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/opt/trinity/bin:/usr/bin:/bin:/usr/games:/usr/lib64/java/bin:/usr/lib64/java/jre/bin:/usr/lib64/java/bin:/usr/share/texmf/bin

My configure options:

export QC_DEBUG=Y
./configure \
  --prefix=${PREFIX} \

The build output:

Verifying TQt 3.x Multithreaded (MT) build environment ... fail

There was an error compiling 'conf'.  Be sure you have a proper
TQt 3.x Multithreaded (MT) build environment set up.

One possible reason is that you don't have installed in /opt/trinity/lib/.

make: *** No targets specified and no makefile found.  Stop.
There was an error trying to build tqca.

Here is the config.log:

g++ -c -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -O2 -D_REENTRANT  -DX11_INC='"/usr/X11R6/include"' -DX11_LIBDIR
='"/usr/X11R6/lib"' -DX11_LIB='"-lXext -lX11 -lm"' -DCC='"gcc"' -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/opt/trinity/mkspecs/default -I. -I'
/usr/include/tqt' -I/opt/trinity/include -I/usr/include -o conf.o conf.cpp
g++ -Wl,-rpath,/opt/trinity/lib -o conf conf.o    -L/opt/trinity/lib -L/usr/X11R6/lib -ltqt-mt -lXext -lX11 -lm -lpthread
/usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../x86_64-slackware-linux/bin/ld: cannot find -ltqt-mt
collect2: ld returned 1 exit status
make: *** [conf] Error 1

The config.log shows the process halts because -L is set to /opt/trinity/lib rather than /opt/trinity/lib64.

I tried patching both and qcextra (lib -> lib64) but that does not help.

Here is the contents of tqt-mt.pc:

qt_config=qt warn_on release incremental link_prl thread nocrosscompiler dlopen_opengl minimal-config small-config medium-config large-config full-config styles tools kernel widgets dialogs iconview workspace inputmethod network canvas table xml opengl sql opengl release dll thread largefile stl ipv6 system-mng system-jpeg jpeg system-png png gif system-zlib nis cups bigcodecs x11sm xshape xinerama xcursor xrandr xrender xftfreetype tablet xkb inputmethod dylib create_prl link_prl qt warn_on depend_includepath qmake_cache x11 x11inc create_libtool create_pc moc x11lib

Name: TQt
Description: Library
Version: 3.3.8
Libs: -L${libdir} -ltqt-mt -L/usr/lib64 -L/usr/X11R6/lib -lfontconfig -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread

The configuration process does not seem to be using tqt-mt.pc because the information is correct.