[CMake] mingw32 toolchain leads to "CMAKE_RC_COMPILER-NOTFOUND"

Eric Noulard eric.noulard at gmail.com
Fri Nov 4 13:26:34 EDT 2011


I'm trying to use a mingw32 toolchain on Linux (with cmake 2.8.6)
and I get:
-- The C compiler identification is GNU
CMake Error: your RC compiler: "CMAKE_RC_COMPILER-NOTFOUND" was not
found.   Please set CMAKE_RC_COMPILER to a valid compiler path or
name.
-- Check for working C compiler: /usr/bin/i586-mingw32msvc-gcc
CMake Error at /home/erk/CMake/cmake-Verk-HEAD/share/cmake-2.8/Modules/CMakeRCInformation.cmake:22
(GET_FILENAME_COMPONENT):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  /home/erk/CMake/cmake-Verk-HEAD/share/cmake-2.8/Modules/Platform/Windows-GNU.cmake:60
(enable_language)
  /home/erk/CMake/cmake-Verk-HEAD/share/cmake-2.8/Modules/Platform/Windows-GNU-C.cmake:1
(include)
  /home/erk/CMake/cmake-Verk-HEAD/share/cmake-2.8/Modules/CMakeCInformation.cmake:56
(INCLUDE)
  CMakeLists.txt:2 (PROJECT)


CMake Error: CMAKE_RC_COMPILER not set, after EnableLanguage
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working C compiler: /usr/bin/i586-mingw32msvc-gcc -- broken

Test project is attached?

My Toolchain looks much like:
http://www.cmake.org/Wiki/CmakeMingw

Why does cmake complains about RC compiler?
-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestProj.tgz
Type: application/x-gzip
Size: 638 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111104/d0c2501e/attachment.bin>


More information about the CMake mailing list