Announcement

Collapse
No announcement yet.

autoconf error: can't find qt

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    autoconf error: can't find qt

    Hi there,
    I'm doing a small project with qt 4.4 and put the following macro from
    autoconf macro archive http://autoconf-archive.cryp.to/bnv_have_qt.html
    into configure.ac
    now after the usual aclocal, autoconf, automake -a
    i run ./configure and the following comes out
    Code:
    sameh@sameh-desktop:~/dev/datastrqt/dateqt$ ./configure
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for g++... g++
    ...
    ...
    checking for shmat... yes
    checking for IceConnectionNumber in -lICE... yes
    checking for Qt... yes:
      QT_CXXFLAGS=-I/usr/include/qt3 -DQT_THREAD_SUPPORT
      QT_DIR=
      QT_LIBS=-L/usr/lib -lqt-mt -lSM -lICE -lX11 -lXext -lXmu -lXt -lXi
      QT_UIC=/usr/bin/uic
      QT_MOC=/usr/bin/moc
      QT_LRELEASE=/usr/bin/lrelease
      QT_LUPDATE=/usr/bin/lupdate
    checking correct functioning of Qt installation... success
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    ...
    ...
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for stdbool.h that conforms to C99... yes
    checking for _Bool... yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: executing depfiles commands
    you see the problem now, the configure script found qt3 not qt4
    and normally make won't work
    so i exported the directory of qt4 on PATH
    Code:
    sameh@sameh-desktop:~/dev/datastrqt/dateqt$ export PATH=/usr/share/qt4/bin:$PATH
    sameh@sameh-desktop:~/dev/datastrqt/dateqt$ ./configure --prefix=/usr --with-Qt-include-dir=/usr/include/qt4
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for g++... g++
    ...
    checking for shmat... yes
    checking for IceConnectionNumber in -lICE... yes
    checking for Qt... yes:
      QT_CXXFLAGS=-I/usr/include/qt4 -DQT_THREAD_SUPPORT
      QT_DIR=
      QT_LIBS=-L/usr/lib -lqt-mt -lSM -lICE -lX11 -lXext -lXmu -lXt -lXi
      QT_UIC=/usr/share/qt4/bin/uic
      QT_MOC=/usr/share/qt4/bin/moc
      QT_LRELEASE=/usr/share/qt4/bin/lrelease
      QT_LUPDATE=/usr/share/qt4/bin/lupdate
    checking correct functioning of Qt installation... failure
    configure: error: Failed to find matching components of a complete
             Qt installation. Try using more options,
             see ./configure --help.
    I'm new to all this, but i think it's because the libs are for qt3?
    help!

    #2
    Re: autoconf error: can't find qt

    do you actually have the qt4 development packages installed?
    <br />

    Comment


      #3
      Re: autoconf error: can't find qt

      if you mean
      qt4-dev-tools
      qt4-designer
      qt4-demos
      qt4-config
      libqt4-dev
      ....
      then yes

      also i have the qt3 dev files

      Comment


        #4
        Re: autoconf error: can't find qt

        Code:
        ...
        checking for Qt... yes:
          QT_CXXFLAGS=-I/usr/include/qt4 -DQT_THREAD_SUPPORT
          QT_DIR=
          QT_LIBS=-L/usr/lib -lqt-mt -lSM -lICE -lX11 -lXext -lXmu -lXt -lXi
          QT_UIC=/usr/share/qt4/bin/uic
          QT_MOC=/usr/share/qt4/bin/moc
        ...
        i think it is '-lqt-mt' library responsible for threads, it comes from qt3
        while the script sees binaries from qt4

        is there a qt4 version for the library?

        Comment

        Working...
        X