Can't locate qt

  • ewilder

    ewilder - 2006-05-16

    Here's the error details from config.log:

    configure:31500: g++ -o conftest -g -O2 -D_REENTRANT -I/usr/lib/qt-3.3/include     -L/usr/lib/qt-3.3/lib  -lqt -lpng -lz -lm -ljpeg  -lSM -lICE -lXext -lX11 -lSM -lICE    >&5
    /usr/bin/ld: cannot find -lqt
    collect2: ld returned 1 exit status
    configure:31503: $? = 1
    configure: failed program was:
    #include "confdefs.h"
    #include <qglobal.h>
    #include <qapplication.h>
    #include <qevent.h>
    #include <qstring.h>
    /* #include <qstyle.h> */

    int main() {
      QString::fromLatin1("Elvis is alive");
      return 0;
    configure:31543: error: Qt () (library qt) not found.
          Please check your installation! For more details about this problem,
          look at the end of config.log.

    Here's my script to run configure.  It's got everything that I could find on the forum that was relevant.  Maybe it has something that is causing the problem.  Did I include too much?
    export LD_LIBRARY_PATH=$QTDIR/lib
    export MANPATH=$QTDIR/man
    export CPLUS_INCLUDE_PATH=$QTDIR/include
    export LIB_QT=/usr/lib/qt-3.3/lib
    export QT_INCLUDES=/usr/lib/qt-3.3/include
    export qt_libraries=/usr/lib/qt-3.3/lib
    export qt_includes=/usr/lib/qt-3.3/include
    export QTDIR=/usr/lib/qt-3.3
    export PATH=$PATH:/usr/lib/qt-3.3/bin
    ./configure --with-qt-libraries=/usr/lib/qt-3.3/lib --with-qt-includes=/usr/lib/qt-3.3/include --with-qt-libs=/usr/lib/qt-3.3/lib  --with-qt-dir=/usr/lib/qt-3.3 --with-libdir=/usr/lib/qt-3.3/lib --with-xinerama --without-kde --without-rpath --with-oci-version=10g --with-oracle=/home/oracle/OraHome1 --disable-new-check --disable-threading --with-instant-client --with-qscintilla-includes=/usr/lib/qt-3.3/include --with-static-oracle

    Qt is installed:

    yum list | grep qt
    qt.i386                                  1:3.3.5-13             installed
    qt-designer.i386                         1:3.3.5-13             installed
    qt-devel.i386                            1:3.3.5-13             installed

    There must be some detail of the configure  process that I just don't know.  Searching the message boards and googling has turned up nothing.  Can anyone spot what's going wrong?

    • ewilder

      ewilder - 2006-05-18

      The trick was to --disable-threading.  I think it was finding qt rather than qt-mt.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks