This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Qt Project passes GNU options to Solaris Studio | ||
---|---|---|---|
Product: | cnd | Reporter: | Leonid Lenyashin <lsl239> |
Component: | Project | Assignee: | igor_nikiforov <igor_nikiforov> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Leonid Lenyashin
2011-09-09 14:09:43 UTC
mkspecs/linux-g++ and CC - ? How there can correspond options? CC not linked Qt.so-files created gcc. It is news? The Qt support is implemented the following way: 1. IDE generates the .pro file with some Qt qmake options 2. IDE executes qmake with the generated Qt file as a parameter. qmake uses so-called "specs", to understand what compiler options should be used for different platform compilers in different situations. Here is the specs list from Ubuntu 8.04 system with Qt 4.3.4 installed (located in /usr/share/qt4/mkspecs) linux-ecc-64 linux-g++ linux-g++-32 linux-g++-64 linux-icc linux-icc-32 linux-icc-64 linux-kcc linux-lsb-g++ linux-pgcc As you can see this list don't contains spec for OSS on Linux. I've filed Suggestion on Qt to add this spec to the distribution: Here is the link: https://bugreports.qt.nokia.com/browse/QTBUG-21526 On Solaris 10 Qt 4.4.4 from blastwave.org supports the following specs: solaris-cc solaris-cc-64 solaris-g++ solaris-g++-64 "solaris-cc" or "solaris-cc-64" are OSS spec to be used. The minor problem with Qt support on Solaris is the following: 1. Add OSS to path and start IDE. 2. Create Qt sample. 3. Try to build it. The following error message will appear in output: QMAKESPEC has not been set, so configuration cannot be deduced. Error processing project file: nbproject/qt-Debug.pro To resolve that user should go to Project Properties->QT and set spec property to "solaris-cc" or "solaris-cc-64". After that both build and run work will work fine. So on Solaris if OSS toolchain is used and user haven't set spec Project Property the -spec should be passed to qmake with "solaris-cc" value. The described Solaris issue fix is here: http://hg.netbeans.org/cnd-main/rev/96daf0c83a78 Fix correct (for solaris+OSS) and safe. One note: It would be nice to set default qmakespec in all OSS tool collection flavors. verified in Build oss-platform-build-66-on-20110921 verified in patch2 (NetBeans IDE 7.0.1 (Build 201109261118)) |