[Qt-creator] Unable to build on Solaris

Peter Pearson peter at thefoundry.co.uk
Tue Nov 16 16:25:44 CET 2010


On 16/11/10 15:14, Murphy, Sean M. wrote:
>>> CC -c -m64 -library=stlport4 -O -xldscope=hidden -mt -KPIC -
>> DBUILD_QTCONCURRENT -DIDE_LIBRARY_BASENAME=\"lib\" -
>> DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS -
>> DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -
>> DQT_SHARED -I../../../../qt-4.7.1/mkspecs/solaris-cc-64-stlport -
>> I../../../../qt-creator-2.1.0-beta1-src/src/libs/qtconcurrent -
>> I../../../../qt-4.7.1/include/QtCore -I../../../../qt-
>> 4.7.1/include/QtGui -I../../../../qt-4.7.1/include -I../../../../qt-
>> creator-2.1.0-beta1-src/src/libs -I/data1/u/murphy/qt-creator-2.1.0-
>> beta1-src/tools -I.moc/release-shared -I/usr/sfw/include -I. -o
>> .obj/release-shared/moc_multitask.o .moc/release-
>> shared/moc_multitask.cpp
>>> ".moc/release-shared/../../../../../../qt-creator-2.1.0-beta1-
>> src/src/libs/qtconcurrent/runextensions.h", line 354: Error: Templates
>> can only declare classes or functions.
>>
>> That line does declare a function template and looks correct.
>
> Agreed, I didn't see anything wrong with it, but Sun's compiler doesn't seem to like it for some reason.
>
> I could try to recompile Qt using gcc on our machine, but I thought I tried previously and I couldn't get it to compile.  I'm starting that now, we'll see where I end up!

I don't know if this is relevant or helpful (I haven't looked at the 
code in question), but Sun's CC 11 didn't support template 
specialisation, which might be the issue if it hasn't been added in 12 
and Qt uses it...

Peter Pearson



More information about the Qt-creator-old mailing list