| 23 | | ==== A3: MinGW not installed properly / MSYS not correctly configured ==== |
| 24 | | {{{ |
| 25 | | $ cm |
| 26 | | -- The C compiler identification is unknown |
| 27 | | -- The CXX compiler identification is unknown |
| 28 | | -- Check for working C compiler: /mingw/bin/gcc.exe |
| 29 | | -- Check for working C compiler: /mingw/bin/gcc.exe -- broken |
| 30 | | CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE): |
| 31 | | The C compiler "/mingw/bin/gcc.exe" is not able to compile a simple test |
| 32 | | program. |
| | 15 | === Q: When I use "cm", I get a different error === |
| 38 | | ==== A4: g++ is not installed ==== |
| 39 | | {{{ |
| 40 | | $ cm |
| 41 | | -- The C compiler identification is GNU |
| 42 | | -- The CXX compiler identification is unknown |
| 43 | | -- Check for working C compiler: C:/MinGW/bin/gcc.exe |
| 44 | | -- Check for working C compiler: C:/MinGW/bin/gcc.exe -- works |
| 45 | | -- Detecting C compiler ABI info |
| 46 | | -- Detecting C compiler ABI info - done |
| 47 | | -- Check for working CXX compiler: g++.exe |
| 48 | | CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/Platform/Windows-g++.cmake:1 (INCLUDE): |
| 49 | | include could not find load file: |
| 50 | | |
| 51 | | ... |
| 52 | | }}} |
| 53 | | If CMake prints an error like this (and about 20 more lines), you probably missed to install g++ with MinGW. Please refer to [wiki:WindowsMinGW/current#MinGW the installation guide] and ensure you selected "C++ Compiler" in the installation menu of MinGW. |
| 54 | | |
| 55 | | ==== Note ==== |
| 67 | | The actual output may differ, but you shouldn't get any errors. |
| | 30 | The actual output and versions may differ, but you shouldn't get any errors. If one of the three tools can't be found, refer to the according question ("xxx": command not found). |
| | 31 | |
| | 32 | If all three tools seem to work, but you still get an error using "cm", refer to the questions below ("CMake complains about xxx"). |
| | 33 | |
| | 34 | === Q: "cmake": command not found === |
| | 35 | {{{ |
| | 36 | $ cmake --version |
| | 37 | sh: cmake: command not found |
| | 38 | }}} |
| | 39 | |
| | 40 | A: CMake is not installed properly or it is not added to the environment variable PATH. Please refer to [wiki:WindowsMinGW/current#CMake the guide] for an explanation. |
| | 41 | |
| | 42 | === Q: "gcc": command not found === |
| | 43 | {{{ |
| | 44 | $ gcc --version |
| | 45 | sh: gcc: command not found |
| | 46 | }}} |
| | 47 | |
| | 48 | A: Make sure you installed MinGW and MSYS properly by following [wiki:WindowsMinGW/current the guide]. You can also open the file {{{c:\<msys-install-path>\etc\fstab}}} with a text-editor (WordPad, Notepad) and check if the path to MinGW is configured correctly (default is {{{c:/mingw /mingw}}}). |
| | 49 | |
| | 50 | === Q: "g++": command not found === |
| | 51 | {{{ |
| | 52 | $ g++ --version |
| | 53 | sh: g++: command not found |
| | 54 | }}} |
| | 55 | |
| | 56 | A: You probably missed to install g++ with MinGW. Please refer to [wiki:WindowsMinGW/current#MinGW the installation guide] and ensure you selected "C++ Compiler" in the installation menu of MinGW. |