Author Topic: how to integrate intel c++ compiler for linux with CB?  (Read 6806 times)

hongxing

  • Guest
how to integrate intel c++ compiler for linux with CB?
« on: April 23, 2007, 03:15:06 pm »
    I am now using Intel C++ Compiler (ICC) for Linux 9.1.0.45.  My Linux distribution is SuSE Linux Enterprise Server 10. ICC is installed in /opt/intel by default.
    My CB is generated from the  svn head source code. In CB, I set the ICC as the default compiler, but when compiling, it says that:
"test - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping...
Nothing to be done.

My question is :
1. how to config to use ICC in CB in Linux? (I only found document about using ICC in windows with CB)
2. After I install ICC and CB, when first CB is starting, the Compilers auto-detection dialog only detects and
   find the GNU GCC Compiler, but not Intel C/C++ Compiler, why?

thanks in advance!

hongxing

  • Guest
Re: how to integrate intel c++ compiler for linux with CB?
« Reply #1 on: April 24, 2007, 02:38:04 am »
can anyone help?

Or maybe it's impossible to integrate ICC with CB on Linux ?

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: how to integrate intel c++ compiler for linux with CB?
« Reply #2 on: April 24, 2007, 07:40:24 am »
Actually the default path is not correct. Go to Settings > Compilers and debuggers menu. Select Intel C/C++ compiler from the Selected compiler combo box.

Now select Toolchain executable option from the combo below Selected compiler combo.

Change the Compiler installation directory from /opt/intel/cc/9.0 to the actual path. In my PC, the actual path is /opt/intel/cc/9.1.045 and the last part of this installation path will vary upon installed compiler version and this makes auto-detection difficult. Set this path and your Intel compiler is ready.

Regards,

Biplab
Be a part of the solution, not a part of the problem.

hongxing

  • Guest
Re: how to integrate intel c++ compiler for linux with CB?
« Reply #3 on: April 24, 2007, 08:18:59 am »
thanks I will try it

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: how to integrate intel c++ compiler for linux with CB?
« Reply #4 on: April 24, 2007, 12:19:45 pm »
I've updated the Autodetection code. Now C::B should be able to detect it automatically in Linux. :)

Regards,

Biplab
Be a part of the solution, not a part of the problem.

Offline Charon

  • Multiple posting newcomer
  • *
  • Posts: 49
  • fnord
    • charon - where mental illness meets chronic nonsense
Re: how to integrate intel c++ compiler for linux with CB?
« Reply #5 on: April 24, 2007, 02:48:00 pm »
Shouldn't "Autodetection" better be renamed to "Look out for the Compiler in its default installation path"? ;-)

Now seriously. For beginners this might be confusing when they installed i.e. MINGW with its installer to c:\Program Files\MingW and CB won't find it.

I know real autodetection is hard, i just think the wording for this dialog should explain its inner workings a little bit better.

greets
Markus
hi, i am a signature virus. please copy me into your sig!
Wish list : no root-node for workspaces, open files and symbols; world domination

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: how to integrate intel c++ compiler for linux with CB?
« Reply #6 on: April 26, 2007, 09:19:19 am »
Shouldn't "Autodetection" better be renamed to "Look out for the Compiler in its default installation path"? ;-)

The name is too long for a button.. ;)

May be we can inform user to change the settings manually once Autodetection fails. :)
Be a part of the solution, not a part of the problem.