Re: [Qt-creator] Unable to build on Solaris
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@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Unable to build on Solaris
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've heard from a co-worker, that Qt-4.5.x was the last version he was able to install easily on Solaris, but that may be more related to a mess we have here than Qt itself, see below. 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. Thanks for the tips, I was able to get Qt to build on Solaris using the gcc 4.2.1 that is installed on our system. Unfortunately, only some of the demos work, others crash with a segmentation fault/bus error. I'm not able to get QtCreator to build yet, it dies down in src/libs/3rdparty/botan with an error: error: braces around scalar initializer for type 'upad64_t' which seems to be related to this issue: http://gcc.gnu.org/ml/gcc-patches/2001-06/msg01703.html As I've been poking around on our system, it appears that our sysadmin has done a horrible job of keeping 32 bit stuff and 64 bit stuff separate, which I think is causing the bus errors on some of the demos, it's a mess trying to get all the paths set up correctly to get Qt to build and then launch correctly, and not have problems pulling in shared libraries from the wrong spot. I may have to give up on this for now though, I thought it was going to be a smooth process, like it usually is for me on Windows, Mac, and Linux, but right now I don't have too much time to spare to get it going. Sean ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Unable to build on Solaris
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-boun...@trolltech.com [mailto:qt-creator- boun...@trolltech.com] On Behalf Of Coda Highland Sent: Tuesday, November 16, 2010 10:12 AM To: qt-creator@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.poen...@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@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator attachment: victor_sardina.vcf___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Unable to build on Solaris
hi, On Tue, Nov 16, 2010 at 02:34:12PM +0100, ext Murphy, Sean M. wrote: .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. snip many more similar errors I'm using Qt 4.7.1, Solaris Studio 12. I've tried building both QtCreator 2.0.1, and 2.1.0 beta1, with the same results. solaris is not a nokia-supported platform for creator. please post a patch (or make a merge request on gitorious) if you come up with a solution. regards ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Unable to build on Solaris
On Nov 16, 2010, at 2:49 PM, ext Oswald Buddenhagen wrote: hi, On Tue, Nov 16, 2010 at 02:34:12PM +0100, ext Murphy, Sean M. wrote: .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. snip many more similar errors I'm using Qt 4.7.1, Solaris Studio 12. I've tried building both QtCreator 2.0.1, and 2.1.0 beta1, with the same results. solaris is not a nokia-supported platform for creator. please post a patch (or make a merge request on gitorious) if you come up with a solution. At the very least you need to use a compiler that is supported by Qt Concurrent, Qt Webkit, and CLucene: http://doc.qt.nokia.com/4.7/compiler-notes.html ++ Eike ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
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.poen...@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@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Unable to build on Solaris
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! Sean ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Unable to build on Solaris
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 ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Unable to build on Solaris
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-boun...@trolltech.com [mailto:qt-creator- boun...@trolltech.com] On Behalf Of Coda Highland Sent: Tuesday, November 16, 2010 10:12 AM To: qt-creator@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.poen...@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@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator