Ei ole kovin suoraviivaista tuo CMAKE:n käyttö. Asensin sellaisen Windows-koneelle ja yritin "buildata".
CMAKE ..
Se valittamaan että ympäristömuuttujista ei löydy polkua C-kääntäjän ajettaviin.
Tein siis Batin:
set INCLUDE=C:\Program Files\Dev-Cpp\include
set LIB=C:\Program Files\Dev-Cpp\lib
set LIBPATH=C:\Program Files\Dev-Cpp\lib
set CMAKE_C_COMPILER=C:\Program Files\Dev-Cpp\bin\gcc.exe
set CMAKE_CXX_COMPILER=C:\Program Files\Dev-Cpp\bin\g .exe
set CMAKE_RC_COMPILER=
Viimeiseen asetukseen en keksinyt mitään, koska C-kääntäjän bin-hakemistossa ei ole mitään RC.EXEÄ. Muista muuttujista CMAKE on lopettanut valittamasta.
Huomioin muuten että C-kääntäjän bin-hakemisto ei ole PATHissa, eli G .EXE ja kavereita ei voi kutsua kuin kys. bin-hakemistossa, mutta haittaako tuo??
CMAKE
4
641
Vastaukset
- Make C.
Virheilmo:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error: your RC compiler: "CMAKE_RC_COMPILER-NOTFOUND" was not found. Ple
ase set CMAKE_RC_COMPILER to a valid compiler path or name.
-- Check for CL compiler version
-- Check for CL compiler version - failed
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - yes
-- Check CL platform
-- Check CL platform - 64 bit
-- Using FREE VC TOOLS, NO DEBUG available
-- Check for working C compiler: cl
CMake Error at C:/Documents and Settings/xxxxxxx/Omat tiedostot/CMake 2.
8/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):
C:/Documents and Settings/xxxxxxxxxxxx/Omat tiedostot/CMake 2.8/share/cmake
-2.8/Modules/Platform/Windows-cl.cmake:32 (ENABLE_LANGUAGE)
C:/Documents and Settings/xxxxxxxxxxxx/Omat tiedostot/CMake 2.8/share/cmake
-2.8/Modules/CMakeCInformation.cmake:58 (INCLUDE)
CMakeLists.txt:2 (PROJECT)
CMake Error: CMAKE_RC_COMPILER not set, after EnableLanguage
CMake Error: your C compiler: "cl" was not found. Please set CMAKE_C_COMPILER
to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working C compiler: cl -- broken
CMake Error at C:/Documents and Settings/xxxxxxxxxxxx/Omat tiedostot/CMake 2.
8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:50 (MESSAGE):
The C compiler "cl" is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)
CMake Error: your C compiler: "cl" was not found. Please set CMAKE_C_COMPILER
to a valid compiler path or name.
CMake Error: your CXX compiler: "cl" was not found. Please set CMAKE_CXX_COMPI
LER to a valid compiler path or name.
-- Configuring incomplete, errors- Tuollaista se vaan
on open sourcen kanssa. Virheitä virheiden jälkeen.
- kaalepp1
Tuollaista se vaan kirjoitti:
on open sourcen kanssa. Virheitä virheiden jälkeen.
sama viesti on ohjelmointiputkassa
- Make C.
kaalepp1 kirjoitti:
sama viesti on ohjelmointiputkassa
http://www.ohjelmointiputka.net/keskustelu/aihe.php?id=20500
Ketjusta on poistettu 0 sääntöjenvastaista viestiä.
Luetuimmat keskustelut
- 1077763
Siekkilässä ajettu ihmisten yli- mitä tapahtui? Länsi-Savo ei ole uutisoinut asiata
Manneja, vaiko matuja?1126026- 835177
- 1394546
Alavuden sairaala
Säästääkö Alavuden sairaala sähkössä. Kävin Sunnuntaina vast. otolla. Odotushuone ja käytävä jolla lääkäri otti vastaan113220- 592997
- 582938
Törkeää toimintaa
Todella törkeitä kaheleita niitä on Ylivieskassakin. https://www.ess.fi/uutissuomalainen/8570818102454- 612437
Hei........
Pelkkä sun näkeminen saa mut hymyilemään pitkin iltaa. Oot niin 🤩😘 Edellinen poistettiin.562066