Re: Various compilers/OS/architectures calitko tests

Hi Petr,

It’s great you run these tests! I think we can manage to compile calitko using all compilers.

Intel C/C++ compiler (ICC) 10.0

make -f Makefile.calitko-wrapper.tester
make[2]: Entering directory `/homes/eva/xz/xzemek02/Test/Calitko/calitko-dev'
icpc -x c++-header -c -wd858,1572 -g -g -D_REENTRANT -DUNIT_TEST -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../lib/Trolltech/Qt-4.2.3/mkspecs/linux-icc -I. -I../../../lib/Trolltech/Qt-4.2.3/include/QtCore -I../../../lib/Trolltech/Qt-4.2.3/include/QtCore -I../../../lib/Trolltech/Qt-4.2.3/include/QtNetwork -I../../../lib/Trolltech/Qt-4.2.3/include/QtNetwork -I../../../lib/Trolltech/Qt-4.2.3/include/QtGui -I../../../lib/Trolltech/Qt-4.2.3/include/QtGui -I../../../lib/Trolltech/Qt-4.2.3/include/QtXml -I../../../lib/Trolltech/Qt-4.2.3/include/QtXml -I../../../lib/Trolltech/Qt-4.2.3/include -I. -I3rdParty -I. -I. -I. Qt.h -o tester.gch/c++
icpc -c -include tester -wd858,1572 -g -g -D_REENTRANT -DUNIT_TEST -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../lib/Trolltech/Qt-4.2.3/mkspecs/linux-icc -I. -I../../../lib/Trolltech/Qt-4.2.3/include/QtCore -I../../../lib/Trolltech/Qt-4.2.3/include/QtCore -I../../../lib/Trolltech/Qt-4.2.3/include/QtNetwork -I../../../lib/Trolltech/Qt-4.2.3/include/QtNetwork -I../../../lib/Trolltech/Qt-4.2.3/include/QtGui -I../../../lib/Trolltech/Qt-4.2.3/include/QtGui -I../../../lib/Trolltech/Qt-4.2.3/include/QtXml -I../../../lib/Trolltech/Qt-4.2.3/include/QtXml -I../../../lib/Trolltech/Qt-4.2.3/include -I. -I3rdParty -I. -I. -I. -o main-tester.o main-tester.cpp
Catastrophic error: could not open source file "tester"

qmake has generated a broken Makefile. First the precompiled header is created, then the first source file should be compiled. The problem is that icpc does not recognise -include tester as the precompiled header. I found on the Internet that the precompiled headers switch is -use-pch , so maybe you could try to manually fix Makefile.calitko-wrapper.tester and Makefile.calitko-wrapper.tester by changing the lines:

.cpp.o:
$(CXX) -c -include tester $(CXXFLAGS) $(INCPATH) -o "$@" "$< "

into

.cpp.o:
$(CXX) -c -use-pch tester.gch $(CXXFLAGS) $(INCPATH) -o "$@" "$< "

I’m only hoping that would work. I’ve never used the Intel compiler but I think you could experiment a little bit too. If that does not work, then try commenting the lines:

CONFIG += precompile_header
PRECOMPILED_HEADER = Qt.h

in both calitko.pri and tester.pri. That would disable precompiled headers.

g++ (GCC) 3.4.6 [FreeBSD]

That’s exactly the problem Giles initially had. Since that seems like a common Qt configuration problem, I’ve fixed that (revno 128 of the official calitko branch) you could just apply the diff manually if that would be easier for you.

I’m looking forward to further progress!

Regards,

Peter

Would you like to post a relpy?


This post is a reply to:
Various compilers/OS/architectures calitko tests
Hi Peter, so I finished that calitko testing on various systems as I wrote few days ago. Here is the report. Everything was tested with Qt 4.2.3 and my calitko development branch (more...)

Follow-ups:
Re: Various compilers/OS/architectures calitko tests
Hi Peter, thanks for these hints! Finally, I've managed to compile calitko by using all compilers that I've available (excluding the one on Solaris, because I got Qt4 compilation problems there). (more...)