I found out what the problem was, one needs to run this special
environment script from Intel first to get some variables and paths
right first.

Dominik

On Tue, Jul 10, 2012 at 2:48 PM, Dominik Szczerba <[email protected]> wrote:
> I am trying to compile my project with the Intel compiler on Windows
> 7, MSVC2010. I am doing:
>
>> set CC=C:/Intel/ComposerXE-2011/bin/intel64/icl.exe
>> set CXX=C:/Intel/ComposerXE-2011/bin/intel64/icl.exe
>> cmake -G "NMake Makefiles" -DCMAKE_C_COMPILER=C:/Intel/Co
> mposerXE-2011/bin/intel64/icl.exe 
> -DCMAKE_CXX_COMPILER=C:/Intel/ComposerXE-2011/
> bin/intel64/icl.exe .....
>
> to see the below cited errors. Can you please help me?
>
> -- Dominik
>
>
> loading initial cache file 
> C:/src/solvers/CMake/CMakeInitialCache-msvc2010-dsz.c
> make
> -- The C compiler identification is Intel
> -- The CXX compiler identification is Intel
> -- Check for working C compiler: C:/Intel/ComposerXE-2011/bin/intel64/icl.exe
> -- Check for working C compiler: C:/Intel/ComposerXE-2011/bin/intel64/icl.exe 
> --
>  broken
> CMake Error at C:/Program Files (x86)/CMake 
> 2.8/share/cmake-2.8/Modules/CMakeTes
> tCCompiler.cmake:52 (MESSAGE):
>   The C compiler "C:/Intel/ComposerXE-2011/bin/intel64/icl.exe" is not able
>   to compile a simple test program.
>
>   It fails with the following output:
>
>    Change Dir: C:/build/solvers-intel/CMakeFiles/CMakeTmp
>
>
>
>   Run Build Command:nmake /NOLOGO "cmTryCompileExec\fast"
>
>         "c:\Program Files (x86)\Microsoft Visual Studio
>   10.0\VC\BIN\amd64\nmake.exe" -f CMakeFiles\cmTryCompileExec.dir\build.make
>   /nologo -L CMakeFiles\cmTryCompileExec.dir\build
>
>         "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E 
> cmake_progress_repor
> t
>   C:\build\solvers-intel\CMakeFiles\CMakeTmp\CMakeFiles 1
>
>   Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj
>
>         C:\Intel\ComposerXE-2011\bin\intel64\icl.exe
>   @C:\Users\dsz\AppData\Local\Temp\nm3078.tmp
>
>   testCCompiler.c
>
>   Linking C executable cmTryCompileExec.exe
>
>         C:\Intel\ComposerXE-2011\bin\intel64\icl.exe /nologo
>   @C:\Users\dsz\AppData\Local\Temp\nm30C7.tmp
>
>   LINK : warning LNK4224: /INCREMENTAL:YES is no longer supported; ignored
>
>   LINK : warning LNK4224: /INCREMENTAL:YES is no longer supported; ignored
>
>   LINK : fatal error LNK1104: cannot open file 'libmmd.lib'
>
>   NMAKE : fatal error U1077: 'C:\Intel\ComposerXE-2011\bin\intel64\icl.exe' :
>   return code '0x450'
>
>   Stop.
>
>   NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio
>   10.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
>
>   Stop.
>
>
>
>
>
>   CMake will not be able to correctly generate this project.
> Call Stack (most recent call first):
>   CMakeLists.txt:1 (PROJECT)
>
>
> -- Configuring incomplete, errors occurred!
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to