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

David Cole david.cole at kitware.com
Fri Nov 4 14:05:11 EDT 2011


Maybe because of this bug (or at least something similar to it):

  http://public.kitware.com/Bug/view.php?id=12480

Already on the roadmap for 2.8.7.


On Fri, Nov 4, 2011 at 1:26 PM, Eric Noulard <eric.noulard at gmail.com> wrote:
> 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
>
> --
>
> 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
>


More information about the CMake mailing list