Results 1 to 5 of 5

Thread: QT 4.2.3 Compilation error on solaris10 (sparc)

  1. #1
    Join Date
    Mar 2007
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QT 4.2.3 Compilation error on solaris10 (sparc)

    Hello, I need to compile QT 4.2.3 on solaris 10 (sparc).
    But, when I make the project, there's an error on src/corelib as follows

    ____________
    g++ -c -O2 -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DGNU_LIBICONV -DQT_NO_DEBUG -I../../mkspecs/solaris-g++ -I. -I../../include -I../../include/QtCore -Iglobal -I.moc/release-shared -I.uic/release-shared -I/usr/sfw/include -o .obj/release-shared/qatomic32.o arch/sparc/qatomic32.s
    g++ -c -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DGNU_LIBICONV -DQT_NO_DEBUG -I../../mkspecs/solaris-g++ -I. -I../../include -I../../include/QtCore -Iglobal -I.moc/release-shared -I.uic/release-shared -I/usr/sfw/include -o .obj/release-shared/qglobal.o global/qglobal.cpp
    cc1plus: error: invalid option 't'
    __________________

    I cannot figure out what the option 't' means. Any suggestion?

    thanks in advance.

    Intaek.

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.2.3 Compilation error on solaris10 (sparc)

    An option "t" is given to the compiler, and this option is not recognized.
    I remember getting this error when compiling Qt 3.x on Solaris x86 with Sun Studio, some time ago. I solved the problem by switching to gcc. If you have this possibility, maybe you should consider doing it.

    Regards

  3. #3
    Join Date
    Mar 2007
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.2.3 Compilation error on solaris10 (sparc)

    Quote Originally Posted by marcel View Post
    An option "t" is given to the compiler, and this option is not recognized.
    I remember getting this error when compiling Qt 3.x on Solaris x86 with Sun Studio, some time ago. I solved the problem by switching to gcc. If you have this possibility, maybe you should consider doing it.

    Regards
    Yeah, I know that... but,, the same error occurs even though using gcc instead of g++.

    -------------------
    make[2]: Entering directory `/export/home/ksicrd/qt-x11-opensource-src-4.2.3/src/corelib'
    gcc -c -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DGNU_LIBICONV -DQT_NO_DEBUG -I../../mkspecs/solaris-g++ -I. -I../../include -I../../include/QtCore -Iglobal -I.moc/release-shared -I.uic/release-shared -I/usr/sfw/include -o .obj/release-shared/qglobal.o global/qglobal.cpp
    cc1plus: error: invalid option 't'
    -----------------------

    Thanks anyway.

    Intaek.

  4. #4
    Join Date
    Mar 2007
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.2.3 Compilation error on solaris10 (sparc)

    ------------------
    g++ -c -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_CORE_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DGNU_LIBICONV -DQT_NO_DEBUG -I../../mkspecs/solaris-g++ -I. -I../../include -I../../include/QtCore -Iglobal -I.moc/release-shared -I.uic/release-shared -I/usr/sfw/include -o .obj/release-shared/qglobal.o global/qglobal.cpp
    cc1plus: error: invalid option 't'
    ------------------

    Now, I omitted the option '-mt' (CXXFLAGS in src/corelib/Makefile and src/gui/Makefile) and everything seed to be fine. But, I'm not sure really it is. What the option '-mt' means to gcc(or g++)?

  5. #5
    Join Date
    Jun 2006
    Posts
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QT 4.2.3 Compilation error on solaris10 (sparc)

    Multi-thread support.

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.