Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, June 2007
Profile : Compiler change


Message 1 in thread

Hi to all,

I want to chance the compiler from gcc to an intel compiler icc. Can anyone tell me how I can specify this in the profile ? Or do I have to change it in the qmake.conf ? If yes, where can I find it ?

Thanks in advance

-- A l e x
-- 
 [ signature omitted ] 

Message 2 in thread

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Are you asking if you can build Qt with the Intel compiler?&nbsp; If so, I
know there is a qmake.conf for under mkspecs
mkspecs/linux-icc/qmake.conf.&nbsp; So I think you can pass "-platform
linux-icc" to configure.<br>
<font face="Times New Roman"><br>
In my last job we built Qt3 with the Intel compiler and this is the
flag we passed to configure to do that.<br>
<br>
HTH,<br>
Susan<br>
<br>
</font>Alexander Car&ocirc;t wrote:
<blockquote cite="mid:20070621172652.321020@xxxxxxx"; type="cite">
  <pre wrap="">Hi to all,

I want to chance the compiler from gcc to an intel compiler icc. Can anyone tell me how I can specify this in the profile ? Or do I have to change it in the qmake.conf ? If yes, where can I find it ?

Thanks in advance

-- A l e x
  </pre>
</blockquote>
</body>
</html>

--
 [ signature omitted ] 

Message 3 in thread

On Thursday 21 June 2007 19:26:52 Alexander Carôt wrote:
> I want to chance the compiler from gcc to an intel compiler icc. Can anyone
> tell me how I can specify this in the profile ? Or do I have to change it
> in the qmake.conf ? If yes, where can I find it ?

If you just want to compile your code with icc, then you just have to 
run "qmake -spec linux-icc", alternatively with "export QMAKESPEC=linux-icc" 
in your .bashrc or similar.

As already mentioned, you can compile Qt w/ icc as well by configuring 
with -platform linux-icc (this is what I do). Doing so will make qmake use 
linux-icc by default as well (so the step above won't be necessary).

-- 
 [ signature omitted ] 

Message 4 in thread

Hi -

just tried to configure Qt with ICC but I got this :

configure -platform linux-icc

Creating qmake. Please wait...
icpc -c -o project.o -wd654,858,1572 -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -I/root/Desktop/qt-x11-opensource-src-4.4.0-snapshot-20070620/src/corelib/arch/generic -I/root/Desktop/qt-x11-opensource-src-4.4.0-snapshot-20070620/include -I/root/Desktop/qt-x11-opensource-src-4.4.0-snapshot-20070620/include/QtCore -I/root/Desktop/qt-x11-opensource-src-4.4.0-snapshot-20070620/include -I/root/Desktop/qt-x11-opensource-src-4.4.0-snapshot-20070620/include/QtCore -I/root/Desktop/qt-x11-opensource-src-4.4.0-snapshot-20070620/src/corelib/global -I/root/Desktop/qt-x11-opensource-src-4.4.0-snapshot-20070620/src/script -DQT_NO_PCRE -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_BUILD_QMAKE -DQT_NO_COMPRESS -I/root/Desktop/qt-x11-opensource-src-4.4.0-snapshot-20070620/mkspecs/linux-icc -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT  project.cpp
gmake: icpc: Command not found

The same happens when compiling my app this way :

[root@alex 6_6_07]# qmake -spec linux-icc soundjack.pro 
[root@alex 6_6_07]# make
icpc -c -wd858,1572 -g -w2 -wd171,193,279,304,310,383,424,444,488,810,967,981,1418,1419,1476,1477 -D_REENTRANT  -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.1.1-snapshot-20060106/mkspecs/linux-icc -I. -I/usr/local/Trolltech/Qt-4.1.1-snapshot-20060106/include/QtCore -I/usr/local/Trolltech/Qt-4.1.1-snapshot-20060106/include/QtNetwork -I/usr/local/Trolltech/Qt-4.1.1-snapshot-20060106/include/QtGui -I/usr/local/Trolltech/Qt-4.1.1-snapshot-20060106/include -I. -Iusl -I. -I. -o main.o main.cpp
make: icpc: Command not found
make: *** [main.o] Error 127

What's wrong now ?

Thanks in advance

-- A l e x




-------- Original-Nachricht --------
Datum: Fri, 22 Jun 2007 07:18:05 +0200
Von: Bradley T Hughes <bhughes@xxxxxxxxxxxxx>
An: qt-interest@xxxxxxxxxxxxx
CC: "Alexander Carôt" <alexander_carot@xxxxxxx>
Betreff: Re: Profile : Compiler change

> On Thursday 21 June 2007 19:26:52 Alexander Carôt wrote:
> > I want to chance the compiler from gcc to an intel compiler icc. Can
> anyone
> > tell me how I can specify this in the profile ? Or do I have to change
> it
> > in the qmake.conf ? If yes, where can I find it ?
> 
> If you just want to compile your code with icc, then you just have to 
> run "qmake -spec linux-icc", alternatively with "export
> QMAKESPEC=linux-icc" 
> in your .bashrc or similar.
> 
> As already mentioned, you can compile Qt w/ icc as well by configuring 
> with -platform linux-icc (this is what I do). Doing so will make qmake use
> linux-icc by default as well (so the step above won't be necessary).
> 
> -- 
> Bradley T. Hughes - bhughes at trolltech.com
> Trolltech ASA - Sandakervn. 116, P.O. Box 4332 Nydalen, 0402 Oslo, Norway
> 
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/

-- 
 [ signature omitted ] 

Message 5 in thread

... of course icpc wasn't in the PATH :-) exported it - all fine. Thanks

-- A l e x


-------- Original-Nachricht --------
Datum: Fri, 22 Jun 2007 07:18:05 +0200
Von: Bradley T Hughes <bhughes@xxxxxxxxxxxxx>
An: qt-interest@xxxxxxxxxxxxx
CC: "Alexander Carôt" <alexander_carot@xxxxxxx>
Betreff: Re: Profile : Compiler change

> On Thursday 21 June 2007 19:26:52 Alexander Carôt wrote:
> > I want to chance the compiler from gcc to an intel compiler icc. Can
> anyone
> > tell me how I can specify this in the profile ? Or do I have to change
> it
> > in the qmake.conf ? If yes, where can I find it ?
> 
> If you just want to compile your code with icc, then you just have to 
> run "qmake -spec linux-icc", alternatively with "export
> QMAKESPEC=linux-icc" 
> in your .bashrc or similar.
> 
> As already mentioned, you can compile Qt w/ icc as well by configuring 
> with -platform linux-icc (this is what I do). Doing so will make qmake use
> linux-icc by default as well (so the step above won't be necessary).
> 
> -- 
> Bradley T. Hughes - bhughes at trolltech.com
> Trolltech ASA - Sandakervn. 116, P.O. Box 4332 Nydalen, 0402 Oslo, Norway
> 
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/

-- 
 [ signature omitted ]