![]() |
|
Cmake of allegro 5.0.9 |
ToxicBlotch
Member #15,503
February 2014
|
Hi, new to Allegro & Cmake not new to coding and C++. I have followed the guide and instructions that are in the readme files for building this library on a Windows 7 Machine for MSVC. Unfortually all I get is a sea of red in the Cmake GUI, and a rather large Error log that I really don't understand. If someone could help me out I would be very very happy. Thank you all in-advance. Below is the error Log. CMake Error at C:/CMake/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process): execute_process given COMMAND argument with no value. Call Stack (most recent call first): C:/CMake/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR) C:/CMake/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:31 (project) The C compiler identification is unknown CMake Error at C:/CMake/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process): execute_process given COMMAND argument with no value. Call Stack (most recent call first): C:/CMake/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR) C:/CMake/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:31 (project) The CXX compiler identification is unknown Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) Check if the system is big endian Searching 16 bit integer Looking for sys/types.h CMake Error at C:/CMake/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): CMakeLists.txt:3 (PROJECT) CMake Error: Internal CMake error, TryCompile configure of cmake failed Looking for sys/types.h - not found Looking for stdint.h CMake Error at C:/CMake/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): CMakeLists.txt:3 (PROJECT) CMake Error: Internal CMake error, TryCompile configure of cmake failed Looking for stdint.h - not found Looking for stddef.h CMake Error at C:/CMake/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): CMakeLists.txt:3 (PROJECT) CMake Error: Internal CMake error, TryCompile configure of cmake failed Looking for stddef.h - not found Check size of unsigned short CMake Error at C:/CMake/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): CMakeLists.txt:3 (PROJECT) CMake Error: Internal CMake error, TryCompile configure of cmake failed Check size of unsigned short - failed Check size of unsigned int CMake Error at C:/CMake/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): CMakeLists.txt:3 (PROJECT) CMake Error: Internal CMake error, TryCompile configure of cmake failed Check size of unsigned int - failed Check size of unsigned long CMake Error at C:/CMake/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): CMakeLists.txt:3 (PROJECT) CMake Error: Internal CMake error, TryCompile configure of cmake failed Check size of unsigned long - failed CMake Error at C:/CMake/share/cmake-2.8/Modules/TestBigEndian.cmake:44 (message): no suitable type found Call Stack (most recent call first): CMakeLists.txt:415 (test_big_endian) Configuring incomplete, errors occurred! See also "C:/Game/allegro/Build/CMakeFiles/CMakeOutput.log". See also "C:/Game/allegro/Build/CMakeFiles/CMakeError.log".
|
torhu
Member #2,727
September 2002
![]() |
Did you set the paths for MSVC in the command line before running Cmake? MSVC usually installs a shortcut in the Start Menu for opening a correctly configured terminal. |
ToxicBlotch
Member #15,503
February 2014
|
I used the Visual Studio Developer Prompt. I didn't explicitly set any paths apart from making sure that the Cmake was added in. I can see that all the path's for Visual Studio are in the PATH but does that cover the MSVC ? Sorry (I am not used to leaving the realm of Visual Studio IDE) Well After some more reading and studying I have been able to reduce the errors by altering where I had my include files. now I have done that I still have these Errors Out standing. Does anyone have any ideas ? Thank you. CMake Error at C:/CMake/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process): execute_process given COMMAND argument with no value. Call Stack (most recent call first): C:/CMake/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR) C:/CMake/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:31 (project) The C compiler identification is unknown CMake Error at C:/CMake/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process): execute_process given COMMAND argument with no value. Call Stack (most recent call first): C:/CMake/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR) C:/CMake/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:31 (project) The CXX compiler identification is unknown Adding C:/Game/allegro/Build/deps to CMAKE_FIND_ROOT_PATH Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) Check if the system is big endian Searching 16 bit integer CMake Error at C:/CMake/share/cmake-2.8/Modules/TestBigEndian.cmake:44 (message): no suitable type found Call Stack (most recent call first): CMakeLists.txt:415 (test_big_endian) Configuring incomplete, errors occurred! See also "C:/Game/allegro/Build/CMakeFiles/CMakeOutput.log". See also "C:/Game/allegro/Build/CMakeFiles/CMakeError.log".
|
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
You have to tell cmake which generator to use, otherwise it won't be able to identify the compiler or it will use the default one whichever that is. Run 'cmake -h' from your prompt to see a list of generators. You will probably want 'Visual Studio 10' 11 or 12 depending on which version of MSVS you are running. If you're doing this from the cmake gui, make sure you set the correct generator when you press the configure button. That's my only guess as to what is wrong. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
torhu
Member #2,727
September 2002
![]() |
I usually start cmake-gui instead of just cmake, it's easier to use. But you still need to start it from a terminal with the correct paths set, etc. |
Aikei_c
Member #14,871
January 2013
![]() |
Why would you want to build the 5.0.9 version instead of 5.0.10 or 5.1.8? |
|