Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: CMake errors when configuring sfml2  (Read 1257 times)

0 Members and 1 Guest are viewing this topic.

Pauliuw

  • Newbie
  • *
  • Posts: 2
    • View Profile
CMake errors when configuring sfml2
« on: April 20, 2011, 10:11:40 am »
Hi,

i have trouble configuring sfml2 in cmake. I get the following errors:
Quote

CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: Could not find cmake module file:F:/SFML2/Build/CMake/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Could not find cmake module file:F:/SFML2/Build/CMake/CMakeFiles/CMakeCXXCompiler.cmake


Does anyone knows what to do to fix them?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
CMake errors when configuring sfml2
« Reply #1 on: April 20, 2011, 10:16:49 am »
This error means that CMake cannot find the mingw32-make executable.

Two possible reasons to this:
- your MinGW installation doesn't contain it
- the path to the MinGW/bin folder is not in the PATH environment variable, thus CMake doesn't know where to find mingw32-make
Laurent Gomila - SFML developer

Pauliuw

  • Newbie
  • *
  • Posts: 2
    • View Profile
CMake errors when configuring sfml2
« Reply #2 on: April 20, 2011, 10:54:47 am »
Quote
your MinGW installation doesn't contain it

I checked the folder i found mingw32-make.exe.

Quote
the path to the MinGW/bin folder is not in the PATH environment variable, thus CMake doesn't know where to find mingw32-make


I have set it in 4 entries(the path to mingw's bin folder), CMAKE_C_COMPILER, CMAKE_C_COMPILER_ENV_VAR, CMAKE_CXX_COMPILER and CMAKE_CXX_COMPILER_ENV_VAR, all with types of "PATH", because CMake showed me errors that these entries are missing.

Do I have to create another entry to the mingw's bin folder? If so, how can i set the PATH environment variable?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
CMake errors when configuring sfml2
« Reply #3 on: April 20, 2011, 11:07:05 am »
The "PATH" thing is well explained in the tutorial:
http://www.sfml-dev.org/tutorials/2.0/compile-with-cmake.php
Laurent Gomila - SFML developer