Results 1 to 3 of 3

Thread: Configure error building Qt 4.4.3 on Red Hat Enterprise Linux 4

  1. #1
    Join Date
    Oct 2007
    Location
    India
    Posts
    162
    Thanks
    20
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Configure error building Qt 4.4.3 on Red Hat Enterprise Linux 4

    I am trying to build Qt 4.4.3 on Red Hat Enterprise Linux AS release 4. When i run configure, i get the following error (I have removed similar errors to make the post readable):

    g++ -c -o qvariant.o -pipe -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3/include -I/home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3/include/QtCore -I/home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3/include -I/home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3/include/QtCore -I/home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3/src/corelib/global -I/home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3/src/script -DQT_NO_PCRE -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -I/home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT /home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3/src/corelib/kernel/qvariant.cpp
    /home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3/include/QtCore/private/../../../src/corelib/kernel/qvariant_p.h: In function `const class QString * v_cast<QString>(const QVariant::Private *, QString * = 0)':
    /home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3/src/corelib/kernel/qvariant.cpp:289: instantiated from here
    /home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3/include/QtCore/private/../../../src/corelib/kernel/qvariant_p.h:77: static_cast from `void *' to `const QString *'
    /home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3/include/QtCore/private/../../../src/corelib/kernel/qvariant_p.h: In function `const class QChar * v_cast<QChar>(const QVariant::Private *, QChar * = 0)':
    /home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3/src/corelib/kernel/qvariant.cpp:291: instantiated from here
    ---
    ---
    ---
    /home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3/src/corelib/kernel/qvariant.cpp:446: instantiated from here
    /home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3/src/corelib/kernel/qvariant.cpp:350: static_cast from `void *' to `const char *'
    /home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3/src/corelib/kernel/qvariant.cpp:350: static_cast from `void *' to `const char *'
    gmake: *** [qvariant.o] Error 1
    Now, i have the following g++ versions installed:

    GCC 2.95:
    [/home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3]>> g++ -v
    Reading specs from /usr/local/gcc295/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs
    gcc version 2.95.3 20010315 (release)
    GCC 3.4.4:
    [/home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3]>> g++.344 -v
    Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.4/specs
    Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
    Thread model: posix
    gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)
    GCC 3.2.3:
    [/home/singhr/Builds/Qt/qt-x11-opensource-src-4.4.3]>> g++32 -v
    Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
    Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --enable-languages=c,c++ --disable-libgcj --host=i386-redhat-linux
    Thread model: posix
    gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-47.3)
    I think by default Qt is picking up g++ i.e. g++ version 2.95.3. Could this be the source of the problem?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Configure error building Qt 4.4.3 on Red Hat Enterprise Linux 4

    Quote Originally Posted by montylee View Post
    I think by default Qt is picking up g++ i.e. g++ version 2.95.3. Could this be the source of the problem?
    Yes, it could. See Supported Platforms and Compilers.
    J-P Nurmi

  3. #3
    Join Date
    Oct 2007
    Location
    India
    Posts
    162
    Thanks
    20
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Configure error building Qt 4.4.3 on Red Hat Enterprise Linux 4

    i got it working. Qt was picking up gcc 2.95, so i renamed the gcc to gcc295 and renamed gcc344 to gcc.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.