Results 1 to 3 of 3

Thread: Problem compiling on Solaris 10 with Sun Studio 11

  1. #1
    Join Date
    Aug 2008
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Problem compiling on Solaris 10 with Sun Studio 11

    Here is my configuration:

    #!/bin/sh
    if [ "$#" -gt 0 ]; then
    /sdg/oudvmt/src/pub/qt-x11-opensource-src-4.4.1/configure --prefix=/oudvmt/sparc_SunOS5.10/Qt-4.4.1 -no-qt3support -no-webkit -platform solaris-cc -qt-zlib -qt-libtiff -qt-libpng -qt-libjpeg -confirm-license "$@"
    else
    /sdg/oudvmt/src/pub/qt-x11-opensource-src-4.4.1/configure --prefix=/oudvmt/sparc_SunOS5.10/Qt-4.4.1 -no-qt3support -no-webkit -platform solaris-cc -qt-zlib -qt-libtiff -qt-libpng -qt-libjpeg -confirm-license
    fi

    Here is the error:

    gmake[5]: Entering directory `/sdg/oudvmt/src/pub/qt-x11-opensource-src-4.4.1/tools/designer/src/components/lib'
    CC -c -O2 -mt -KPIC -DQT_STATICPLUGIN -DQDESIGNER_COMPONENTS_LIBRARY -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../../mkspecs/solaris-cc -I. -I../../../../../include/QtDesigner -I../../../../../include/QtCore -I../../../../../include/QtCore -I../../../../../include/QtGui -I../../../../../include/QtGui -I../../../../../include/QtXml -I../../../../../include/QtXml -I../../../../../include/QtScript -I../../../../../include/QtScript -I../../../../../include -I../../../../../include/QtDesigner -I. -I.. -I../../lib/components -I../../lib/sdk -I../../lib/extension -I../../lib/uilib -I../../lib/shared -I../propertyeditor -I../../../../shared/qtpropertybrowser -I../../../../shared/qtgradienteditor -I../objectinspector -I../signalsloteditor -I../formeditor -I../widgetbox -I../buddyeditor -I../taskmenu -I../taskmenu -I../tabordereditor -I.moc/release-shared -I.uic/release-shared -I/usr/sfw/include -o .obj/release-shared/qtpropertymanager.o ../../../../shared/qtpropertybrowser/qtpropertymanager.cpp
    "../../../../shared/qtpropertybrowser/qtpropertymanager.cpp", line 206: Error: Could not find a match for getData needed in getValue<int, QtIntPropertyManagerPrivate::Data>(const QMap<const QtProperty*, QtIntPropertyManagerPrivate::Data>&, const QtProperty*, const int&).
    "../../../../shared/qtpropertybrowser/qtpropertymanager.cpp", line 716: Where: While instantiating "getValue<int, QtIntPropertyManagerPrivate::Data>(const QMap<const QtProperty*, QtIntPropertyManagerPrivate::Data>&, const QtProperty*, const int&)".
    "../../../../shared/qtpropertybrowser/qtpropertymanager.cpp", line 716: Where: Instantiated from non-template code.
    1 Error(s) detected.


    Any clues?
    Last edited by jacek; 30th August 2008 at 16:53. Reason: disabled smilies

  2. #2
    Join Date
    Aug 2008
    Posts
    39
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Problem compiling on Solaris 10 with Sun Studio 11

    Avid solaris user here, I can help ya!!

    Solaris 10, ok. Install solaris with OEM support.

    This will give you a folder in /usr/

    Add /usr/sfw/bin to your path. Don't use sun studio. Rejoice it now works.
    Last edited by killerwookie99; 15th August 2008 at 23:23.

  3. #3
    Join Date
    Aug 2008
    Location
    SF Bay Area, California
    Posts
    1

    Default Re: Problem compiling on Solaris 10 with Sun Studio 11

    Two corrections are needed.

    1. The default version of the C++ standard library, libCstd, is not fully standard-conforming, and will not allow all of QT to compile. Details are in the Sun C++ FAQ:
    http://docs.sun.com/source/820-4155/...q.html#LibComp
    To compile QT, use the optional STLport implementation: Add the option
    -library=stlport4
    to every CC command line, compiling and linking.

    2. The QT source code contains some conditional code for Sun C++ that is based on old compilers. It should be removed. Here are the diffs:
    $ diff .../src/corelib/kernel/qpointer.h/qpointer.h .../patches/default/src/corelib/kernel/qpointer.h
    86,87d85
    < #ifndef Q_CC_SUN // ambiguity between const T * and T *
    <
    96,107d93
    < #else
    <
    < template<class T>
    < inline bool operator==(const void *o, const QPointer<T> &p)
    < { return o == p.operator->(); }
    <
    < template<class T>
    < inline bool operator==(const QPointer<T> &p, const void *o)
    < { return p.operator->() == o; }
    <
    < #endif
    <
    121,122d106
    < #ifndef Q_CC_SUN // ambiguity between const T * and T *
    <
    131,142d114
    < #else
    <
    < template<class T>
    < inline bool operator!= (const void *o, const QPointer<T> &p)
    < { return o != p.operator->(); }
    <
    < template<class T>
    < inline bool operator!= (const QPointer<T> &p, const void *o)
    < { return p.operator->() != o; }
    <
    < #endif
    <

Similar Threads

  1. Problem with Visual Studio integration
    By jml in forum General Discussion
    Replies: 0
    Last Post: 4th July 2008, 00:44
  2. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 08:17
  3. Replies: 3
    Last Post: 18th April 2007, 15:31
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  5. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41

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.