Open realTobby opened 3 years ago
Folgendes Kommando habe ich ausgeführt: cmake .. -DCMAKE_INSTALL_PREFIX=./install
als ich in dem Clone/build/ drin war
Über den Befehl cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=./install
komme ich etwas weiter, jetzt sagt die CMD es findet die Sourcen nicht:
CMake Deprecation Warning at CMakeLists.txt:9 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Project Name: spaceinvaders
-- Found SFML 2.5.1 in C:/MinGW/include
-- Configuring done
CMake Error at CMakeLists.txt:81 (add_executable):
Cannot find source file:
C:[...]/src/spaceinvaders.rc
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .h .hh .h++
.hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc
CMake Error at CMakeLists.txt:81 (add_executable):
No SOURCES given to target: spaceinvaders
CMake Generate step failed. Build files cannot be regenerated correctly.
Nun habe ich in Zeile 81 des CMakeLists.txt:81 die Zeile von
add_executable(${PROJECT_NAME} ${SOURCES} ${WIN_RC})
auf
add_executable(${PROJECT_NAME} ${SOURCES})
angepasst, jetzt läuft cmake durch, kann aber trotzdem nicht make und make install ausführen
C:/[...]\build>cmake .. -DCMAKE_INSTALL_PREFIX=./install
CMake Deprecation Warning at CMakeLists.txt:9 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Project Name: spaceinvaders
-- Found SFML 2.5.1 in C:/MinGW/include
-- Configuring done
-- Generating done
-- Build files have been written to: C:/[...]/build
C:/[...]\build>make
Microsoft Windows [Version 10.0.17763.1217]
(c) 2018 Microsoft Corporation. Alle Rechte vorbehalten.
C:/[...]\build>make install
Microsoft Windows [Version 10.0.17763.1217]
(c) 2018 Microsoft Corporation. Alle Rechte vorbehalten.
@ThKattanek Hallo, habe das CMake in deinem Fork ausprobiert, er meckert irgendwie rum das er "cl" nicht finden kann. Hier mal der Error Output.