[Qt-creator] Unable to build on Solaris

Victor Sardina Victor.Sardina at noaa.gov
Fri Nov 19 04:27:17 CET 2010


Sean:

I have built Qt from source code twice in the past (last time the
Qt-4.5.1 branch, if I remember well). This on a Solaris 9 machine, and
it took about 16 whole hours to compile the whole thing. It felt as
though it would take forever...

I also compiled QtCreator, but with the specs of that machine I
compiled it on it turned into a hassle to do any development via
QtCreator due to the speed of the machine, already loaded with other
processes.

I would probably have to go through the same compilation hassle again in
order to bring the Qt running on that server up to the 4.7 release. I
compiled everything with gcc, not the SUN supplied C++ compiler. You
also need to make sure that you have the libstdc++ available in the
LD_LIBRARY_PATH or equivalent. Installing gcc and putting it in your
PATH should considerably ease the process.

You can find what you need to install gcc et al. at the
http://www.sunfreeware.com website.

Victor

On 11/16/10 7:13 AM, Murphy, Sean M. wrote:
> I'm giving that a shot now, although I think our admin's have
> something screwed up, while attempting to build qmake, it's having
> trouble finding libstdc++ libraries that match up.  I'm trying to
> build the solaris-g++-64 mkspec, but it's trying to link against a
> libstdc++ that appears to be built in 32 bit mode.
> 
> This is turning into a bit more effort than I was hoping for! Sean
> 
>> -----Original Message----- From: qt-creator-bounces at trolltech.com
>> [mailto:qt-creator- bounces at trolltech.com] On Behalf Of Coda
>> Highland Sent: Tuesday, November 16, 2010 10:12 AM To:
>> qt-creator at trolltech.com Subject: Re: [Qt-creator] Unable to build
>> on Solaris
>> 
>> As I recall, Solaris's C++ compiler has almost as many template
>> issues as MSVC6.
>> 
>> Is there a Solaris port of gcc? Might try that.
>> 
>> /s/ Adam
>> 
>> On Tue, Nov 16, 2010 at 8:34 AM, André Pönitz
>> <andre.poenitz at nokia.com> wrote:
>>> On Tuesday 16 November 2010 14:34:12 ext Murphy, Sean M. wrote:
>>>> I'm trying to build QtCreator on Solaris, and I'm hitting the
>> following snag:
>>>> 
>>>>> make
>>>> cd src/ && /data1/u/murphy/qt-4.7.1/bin/qmake
>>>> /data1/u/murphy/qt-
>> creator-2.1.0-beta1-src/src/src.pro -o Makefile
>>>> cd src/ && make -f Makefile cd libs/ &&
>>>> /data1/u/murphy/qt-4.7.1/bin/qmake /data1/u/murphy/qt-
>> creator-2.1.0-beta1-src/src/libs/libs.pro -o Makefile
>>>> cd libs/ && make -f Makefile cd qtconcurrent/ &&
>>>> /data1/u/murphy/qt-4.7.1/bin/qmake
>> /data1/u/murphy/qt-creator-2.1.0-beta1- 
>> src/src/libs/qtconcurrent/qtconcurrent.pro -o Makefile
>>>> cd qtconcurrent/ && make -f Makefile 
>>>> /data1/u/murphy/qt-4.7.1/bin/moc -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.
>> ../../../../qt-creator-2.1.0-beta1- 
>> src/src/libs/qtconcurrent/multitask.h -o .moc/release- 
>> shared/moc_multitask.cpp
>>>> 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.
>>> 
>>> Andre' _______________________________________________ Qt-creator
>>> mailing list Qt-creator at trolltech.com 
>>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>> 
>> 
>> _______________________________________________ Qt-creator mailing
>> list Qt-creator at trolltech.com 
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
> 
> _______________________________________________ Qt-creator mailing
> list Qt-creator at trolltech.com 
> http://lists.trolltech.com/mailman/listinfo/qt-creator
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: victor_sardina.vcf
Type: text/x-vcard
Size: 577 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20101118/07dc08f7/attachment.vcf 


More information about the Qt-creator-old mailing list