[Qt-interest] Qt project file with option to compile with Linux Intel C++ Compiler (icc) ?
Ed Sutton
ESutton at fescorp.com
Tue Nov 9 15:33:39 CET 2010
Thank you very much Constantin !
On Nov 8, 2010, at 12:48 PM, Constantin Makshin wrote:
There are several "linux-icc*" mkspecs — use them ("QMAKESPEC" environment variable or "-spec" QMake option).
For others getting started with the Intel compiler who may also be relying on Qt Creator IDE too much, open a terminal and go to the command line:
#Set the Qt Version your project is frozen at:
export QTDIR=/opt/qtsdk-2010.01/qt/bin
# Create the Intel Makefile from the Qt project(s) file
$QTDIR/qmake *.pro -r -spec linux-icc
# Add path to the 30-day Intel Linux eval
export PATH=/opt/intel/Compiler/11.1/073/bin/ia32:$PATH
# Use provided iccvars script to set Intel Compiler Environment
/opt/intel/Compiler/11.1/073/bin/iccvars.sh ia32
make
I really appreciate all the new warnings and remarks. The Intel compiler may be worth it just for this reason. With gcc I had eliminated all warnings after setting a dozen or so additional warning flags as well as tuning the gcc warnings up to max. Unfortunately the Intel compiler aborted so I never got to test my results.
compilation aborted for src/videostreamer.
make: *** [obj/videostreamer.o] Error 2
Hopefully I will get this figured out. Then I hope to figure out how to make a new build setting in Qt Creator for the ICC. Thanks again for your help!
-Ed
On Monday 08 November 2010 21:30:48 Ed Sutton wrote:
Can anyone share a snippet of a Qt project file supporting the Intel C++ compiler ?
I am under 32-bit Red Hat Enterprise Linux 5.2. The Linux Intel C++ Compiler installs to:
/opt/intel/Compiler/11.1/073/bin/ia32/
I hope to learn if there are any performance benefits of the Intel versus gcc/g++ for my video decoding library.
Thanks in advance,
-Ed
<signature.asc>_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com<mailto:Qt-interest at trolltech.com>
http://lists.trolltech.com/mailman/listinfo/qt-interest
-Ed
More information about the Qt-interest-old
mailing list