Skip to content

Instantly share code, notes, and snippets.

@drussel
Created October 16, 2012 03:59
Show Gist options
  • Save drussel/3897173 to your computer and use it in GitHub Desktop.
Save drussel/3897173 to your computer and use it in GitHub Desktop.
cmake output when trying to cross compiler from linux to windows
-- The C compiler identification is MSVC 16.0.30319.1
-- The CXX compiler identification is MSVC 16.0.30319.1
-- Check for CL compiler version
CMakeTestNMakeCLVersion.cersion - 1600
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - no
-- Check for working C compiler: /usr/bin/cl
-- Check for working C compiler: /usr/bin/cl -- broken
CMake Error at /synth1/home/drussel/cmake-2.8.9-Linux-i386/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "/usr/bin/cl" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /synth1/home/drussel/rmf-build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec3161846472/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec3161846472.dir/build.make
CMakeFiles/cmTryCompileExec3161846472.dir/build
gmake[1]: Entering directory
`/synth1/home/drussel/rmf-build/CMakeFiles/CMakeTmp'
/synth1/home/drussel/cmake-2.8.9-Linux-i386/bin/cmake -E
cmake_progress_report
/synth1/home/drussel/rmf-build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object
CMakeFiles/cmTryCompileExec3161846472.dir/testCCompiler.c.obj
/usr/bin/cl /nologo /DWIN32 /D_WINDOWS /W3 /Zm1000 /D_DEBUG /MDd /Zi /Ob0
/Od /RTC1 /FoCMakeFiles/cmTryCompileExec3161846472.dir/testCCompiler.c.obj
/Fd/synth1/home/drussel/rmf-build/CMakeFiles/CMakeTmp/cmTryCompileExec3161846472.pdb
-c /synth1/home/drussel/rmf-build/CMakeFiles/CMakeTmp/testCCompiler.c
cl : Command line warning D9002 : ignoring unknown option
'/synth1/home/drussel/rmf-build/CMakeFiles/CMakeTmp/testCCompiler.c'
cl : Command line error D8003 : missing source filename
gmake[1]: Leaving directory
`/synth1/home/drussel/rmf-build/CMakeFiles/CMakeTmp'
gmake[1]: ***
[CMakeFiles/cmTryCompileExec3161846472.dir/testCCompiler.c.obj] Error 2
gmake: *** [cmTryCompileExec3161846472/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment