Results 1 to 9 of 9

Thread: The problem of compiling QT on solaris 10

  1. #1
    Join Date
    Feb 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default The problem of compiling QT on solaris 10

    i am compiling Qt4.8.0 on solaris 10,when i am compile Qt with g++,it can success,configure as follows:
    ./configure -debug -platform solaris-g++-64 -no-webkit -no-script
    gmake
    gmake install

    but,now i wanna compile Qt with CC ,but i get some errors ,the process is as follows:
    export CC=cc
    export CXX=CC
    export CXXFLAGS="-m64 -library=stlport4"
    export CFLAGS="-m64 -library=stlport4"
    export LDFLAGS="-m64 -library=stlport4"
    ./configure -debug -platform solaris-cc-64 -no-webkit -no-script

    this step is successful
    but when i gmake,i get these errors:

    Wrong IR type: 27

    gmake[1]: *** [.obj/debug-shared/qpaintbuffer.o] Error 2
    gmake[1]: Leaving directory `/export/home/tools/QT/install/qt-everywhere-opensource-src-4.8.0/src/gui'
    gmake: *** [sub-gui-make_default-ordered] Error 2

    i dont what the reason is ,so it is very kind of you to tell me how can i do to solve this problem and can compile Qt on solaris 10 successfully.
    thank you very much

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: The problem of compiling QT on solaris 10

    Did you clean out everything from the g++ build? Looks to me like it might be trying to link incompatible object files, so maybe there was something left over from the g++ compile.

  3. #3
    Join Date
    Feb 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The problem of compiling QT on solaris 10

    infact,i compile Qt with CC firstly,but unsuccessfully,so i turn to use g++.
    that is to say,before i use g++,these errors occur when i use CC firstly.

  4. #4
    Join Date
    Feb 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy Re: The problem of compiling QT on solaris 10

    could anyone help me?

  5. #5
    Join Date
    Feb 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The problem of compiling QT on solaris 10

    could anyone help me?

  6. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: The problem of compiling QT on solaris 10

    I guess not. If you have a working build with GCC why bother with the Solaris compiler?

  7. #7
    Join Date
    Feb 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The problem of compiling QT on solaris 10

    Quote Originally Posted by ChrisW67 View Post
    I guess not. If you have a working build with GCC why bother with the Solaris compiler?
    because my executable file is compiled by CC(because of limitation,i cant compile this executable file with GCC),if i invoke Qt lib using this executable file ,there is someting wrong.Maybe it is caused by mismatching between CC and GCC.so i have to compile Qt with CC.

  8. #8
    Join Date
    May 2012
    Location
    Italy
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: The problem of compiling QT on solaris 10

    Hi,

    I'm trying to compile and install Qt 4.8 and the last QtCreator (please forgive me but I don't remember the release). I've catched some error on Qt compilation and I've got to modify some files to let it compile (one or two implicit cast not accepted by Sun CC and a big issue about a enum declaration like "enum { <varname> = <boolean expression> }")

    I have big big problems on QtCreator, too much warnings and some errors with I'm trying to fight, but for now they still win.

    Does a solaris-cc patch exist for Qt / QtCreator ?

    Thanx,
    Giulio
    Last edited by julio77it; 23rd May 2012 at 01:25. Reason: grammar error

  9. #9
    Join Date
    May 2012
    Location
    Italy
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: The problem of compiling QT on solaris 10

    I've built again Qt 4.8.1 tracking all the changes I've done: I'm not sure of my choices, every advice will be welcome.


    System Info :
    SunOS 5.10 sun4u sparc SUNW,SPARC-Enterprise Solaris
    Sun Studio 12: C++ Compiler

    Package :
    qt-everywhere-opensource-src-4.8.1.tar.gz

    First I ran this configuration script

    ./configure -no-stl \
    -opensource \
    -no-qt3support \
    -no-multimedia \
    -no-phonon \
    -no-webkit \
    -no-svg \
    -no-javascript-jit \
    -no-declarative \
    -no-openvg \
    -no-gtkstyle \
    -xmlpatterns \
    -no-glib \
    -nomake examples \
    -nomake demos \
    -prefix <my install path> \
    -prefix-install

    Then I ran gmake

    1. "src/corelib/tools/qstringbuilder.h", line 396: Error: An integer constant expression is required here.

    original:
    src/corelib/tools/qstringbuilder.h:396 enum { ExactSize = QConcatenable<A>::ExactSize && QConcatenable<B>::ExactSize };

    changed in:
    #ifdef Q_OS_SOLARIS
    enum { ExactSize = false };
    #else
    enum { ExactSize = QConcatenable<A>::ExactSize && QConcatenable<B>::ExactSize };
    #endif
    (enum declaration requires constants)


    2. "src/network/ssl/qsslcertificate.cpp", line 433: Error: Using reinterpret_cast to convert from void(stack_st*) to void(*)(void*) not allowed.

    original:
    q_sk_pop_free((STACK*)altNames, reinterpret_cast<void(*)(void*)>(q_sk_free));

    changed in:
    #ifdef Q_OS_SOLARIS
    q_sk_pop_free((STACK*)altNames, (void(*)(void*))(q_sk_free));
    #else
    q_sk_pop_free((STACK*)altNames, reinterpret_cast<void(*)(void*)>(q_sk_free));
    #endif
    (old-style cast, sorry)

    3. "src/gui/kernel/qdnd_x11.cpp", line 1468: Error: ShapeInput is not defined.

    original:
    windowContainsMouse = windowInteractsWithPosition(pos, w, ShapeInput) && windowInteractsWithPosition(pos, w, ShapeBounding);
    changed in:
    #ifdef Q_OS_SOLARIS
    windowContainsMouse = windowInteractsWithPosition(pos, w, ShapeBounding);
    #else
    windowContainsMouse = windowInteractsWithPosition(pos, w, ShapeInput) && windowInteractsWithPosition(pos, w, ShapeBounding);
    #endif
    (I've searched unsuccessfully the definition of "ShapeInput" with shell commands)


    It seems to work ...

    Giulio

Similar Threads

  1. compiling Qt with Solaris Studio 12 (on Linux)?
    By akos.maroy in forum Installation and Deployment
    Replies: 0
    Last Post: 18th January 2012, 18:04
  2. Problem compiling Qt 4.6
    By dentharg in forum Installation and Deployment
    Replies: 0
    Last Post: 8th December 2009, 08:32
  3. Problems compiling QT4.3 on Solaris 10
    By Ash_80 in forum Installation and Deployment
    Replies: 0
    Last Post: 26th May 2009, 16:42
  4. Problem compiling on Solaris 10 with Sun Studio 11
    By marklle in forum Installation and Deployment
    Replies: 2
    Last Post: 30th August 2008, 07:56
  5. Replies: 3
    Last Post: 2nd July 2008, 04:00

Tags for this Thread

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.