Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 4 and Version 5 of dev/WindowsMinGW/troubleshooting


Ignore:
Timestamp:
Sep 21, 2010, 11:32:50 PM (14 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • dev/WindowsMinGW/troubleshooting

    v4 v5  
    55A: You're using the wrong shortcut to open MSYS. See the note at the bottom of [wiki:WindowsMinGW/current#MSYS the "MSYS" section in the installation guide].
    66
    7 === Q: When I use the "cm" (or "cmake") command, I get an error ===
    8 
    9 There are multiple errors with multiple reasons. Sometimes this can be solved by closing (all instances of) MSYS and/or rebooting Windows. If this doesn't help, compare your error message to the examples below:
    10 
    11 ==== A1: "cm" alias is not defined: ====
     7=== Q: When I use "cm", I get "sh: cm: command not found" ===
    128{{{
     9$ cm
    1310sh: cm: command not found
    1411}}}
    15 If your error looks like this, you have to define the "cm" alias as explained here: [wiki:WindowsMinGW/current#BuildOrxonox].
    1612
    17 ==== A2: CMake is not installed / not in PATH ====
    18 {{{
    19 sh: cmake: command not found
    20 }}}
    21 If you get this error, 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.
     13A: If you get this error, you have to define the "cm" alias as explained here: [wiki:WindowsMinGW/current#BuildOrxonox].
    2214
    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 ===
    3316
    34 ...
    35 }}}
    36 If CMake prints an error like this (and about 30 more lines), the GCC compiler was not found. 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}}}).
     17There are multiple errors with multiple reasons. Sometimes this can be solved by closing (all instances of) MSYS and/or rebooting Windows.
    3718
    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 ====
    5619Note that if you're using a sane installation of MinGW and the other tools (as explained in [wiki:WindowsMinGW/current the guide]), you should be able to use {{{cmake}}}, {{{gcc}}}, and {{{g++}}}. You can check this in the MSYS console:
    5720{{{
     
    6528g++.exe (GCC) 4.5.0
    6629}}}
    67 The actual output may differ, but you shouldn't get any errors.
     30The 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
     32If 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
     37sh: cmake: command not found
     38}}}
     39
     40A: 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
     45sh: gcc: command not found
     46}}}
     47
     48A: 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
     53sh: g++: command not found
     54}}}
     55
     56A: 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.
    6857
    6958=== Q: CMake complains about a missing dependency directory ===