| No libs? May 11 2002 on content TeaX 0.2.1 | I would imagine you need to paste in your config.log file for anyone to help.. it should show where qt needs to be. I solved most of my QT problems by the following:
1) Specifying qt location using the --with-qt-dir= switch (see configure file) OR:
2) using environment variables (export QTDIR=...)
3) using symbolic links
one for qt, qt2 pointing to the directory qt-xxxxxx
Try those things, but first: post your config.log when you ask for help. |
| ![.](/img/trans.gif) | | revisions May 11 2002 on content TeaX 0.2.1 | Ok - here's a little more info:
I have qt2 in /usr/lib/qt-2.3.2 with symlinks /usr/lib/qt and /usr/lib/qt2 pointing to it.
Then, I have /opt/qt-gcc3-2.3.2 for using gcc3. So when I set
export QTDIR=/opt/qt-gcc3-2.3.2
export PATH=$QTDIR/bin:$PATH
export MANPATH=$QTDIR/doc/man:$MANPATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export CXX=g++3
export CC=gcc3
Then everything configures ok, but bombs on make with this:
g++ -O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -o libkcm_teaxtrans.la.closure .libs/libkcm_teaxtrans_la_closure.o .libs/main.o .libs/teaxtrans.o .libs/libkcm_teaxtrans_la_meta_unload.o -L/usr/X11R6/lib -L/opt/qt-gcc3-2.3.2/lib -L/usr/lib /usr/lib/libkdeui.so /usr/lib/libkdecore.so -L/usr/lib/qt2/lib -ldl /usr/lib/libDCOP.so -lqt -lpng -lz /usr/lib/libjpeg.so -lXext -lX11 -lSM -lICE -L/usr/lib/gcc-lib/i386-redhat-linux/2.96 -L/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../.. -lresolv -lstdc++ -lm -lc -lgcc
.libs/main.o: In function `create_teaxtrans':
.libs/main.o(.text+0x2c): undefined reference to `KGlobal::locale()'
.libs/main.o(.text+0x34): undefined reference to `KLocale::insertCatalogue(QString const&)'
.libs/teaxtrans.o: In function `TeaXTransConfig::load()':
.libs/teaxtrans.o(.text+0x16): undefined reference to `KGlobal::config()'
.libs/teaxtrans.o(.text+0x2b): undefined reference to `KConfigBase::setGroup(char const*)'
.libs/teaxtrans.o(.text+0x3f): undefined reference to `KConfigBase::readNumEntry(char const*, int) const'
. My guess is that I can't use gcc3 at all... But since I have other stuff that needs gcc3.. anyway, that is my sad tale. |
| ![.](/img/trans.gif) | | Red Hat 7.2 & qt lib May 10 2002 on content TeaX 0.2.1 | QT libs have been a pain for me, but maybe I'm still green...
RH7.2
KDE 2.2.2-1
gcc3
qt 2.3.2-1
qt-gcc3 2.3.2-1
qt-devel 2.3.2-1
qt-gcc3-devel 2.3.2-1
and I get this on ./configure:
configure:5437: checking for Qt
configure: 5499: /usr/lib/qt2/include/qstyle.h
taking that
tried NO
configure:5598: rm -rf SunWS_cache; g++ -o conftest -O2 -fno-exceptions -fno-check-new -I/usr/lib/qt2/include -I. -L/usr/lib/qt2/lib -L/usr/X11R6/lib conftest.C -lqt -lpng -lz -lm -ljpeg -lXext -lX11 -lSM -lICE -lresolv 1>&5
/tmp/cce1Kb6Q.o: In function `main':
/tmp/cce1Kb6Q.o(.text+0x3e): undefined reference to `QString::shared_null'
/tmp/cce1Kb6Q.o(.text+0x71): undefined reference to `QIconView::QIconView(QWidget*, char const*, unsigned)'
/tmp/cce1Kb6Q.o(.text+0x7b): undefined reference to `QIconView::setWordWrapIconText(bool)'
/tmp/cce1Kb6Q.o(.text+0x80): undefined reference to `QString::shared_null'
/tmp/cce1Kb6Q.o(.text+0xa3): undefined reference to `QString::setLatin1(char const*, int)'
/tmp/cce1Kb6Q.o(.text+0xb8): undefined reference to `QString::shared_null'
/tmp/cce1Kb6Q.o(.text+0xc3): undefined reference to `QStringData::deleteSelf()'
/tmp/cce1Kb6Q.o(.text+0xd5): undefined reference to `QIconView::~QIconView()'
/tmp/cce1Kb6Q.o(.text+0xea): undefined reference to `QString::shared_null'
/tmp/cce1Kb6Q.o(.text+0xf5): undefined reference to `QString::makeSharedNull()'
/tmp/cce1Kb6Q.o(.text+0xfd): undefined reference to `QString::makeSharedNull()'
collect2: ld returned 1 exit status
configure: failed program was:
#include "confdefs.h"
#include
#include
#include
#include
#include
#include
#if ! (QT_VERSION >= 222)
....
Any ideas, or do I need to give more info? |
| ![.](/img/trans.gif) |
Search people Current visitors New users Birthdays Most active users Back
|
|