I am attempting to build Allegro 5 Library using TDM-GCC and CMake. As seen in the screenshot, I pointed to the correct folders using CMake, but the error I am getting is as follows:
CMake Error at CMakeLists.txt:7:
Parse error. Expected a command name, got unquoted argument with text
"<!DOCTYPE".
Configuring incomplete, errors occurred!
Related
I'm trying to build the Checked-C project which uses CMake, but when I go to generate the makefile CMake gives the following error.
~/checkedc/build$ cmake ../llvm
CMake Error at CMakeLists.txt:57 (project):
Generator
Unix Makefiles
does not support toolset specification, but toolset
host=x64
was specified.
-- Configuring incomplete, errors occurred!
I have CMake version 3.9.1 installed along with GNU Make 4.1, Clang 5, and GCC 7. Anyone able to tell me what this CMake error means?
That section of CMakeLists.txt looks like this:
57 project(LLVM
58 ${cmake_3_0_PROJ_VERSION}
59 ${cmake_3_0_LANGUAGES}
60 C CXX ASM)
I've tried setting C/CXX/ASM but get the same error:
~/checkedc/build$ cmake -DCMAKE_C_COMPILER="clang-5.0" -DCMAKE_CXX_COMPILER="clang-5.0" -DCMAKE_ASM_COMPILER="clang-5.0" ../llvm
CMake Error at CMakeLists.txt:57 (project):
Generator
Unix Makefiles
does not support toolset specification, but toolset
host=x64
was specified.
-- Configuring incomplete, errors occurred!
I'm on Kubuntu 17.10 64bit.
It means that somewhere CMake file the variable CMAKE_GENERATOR_TOOLSET is set to host=x64. This only makes sense for Visual Studio generator so CMake opts to throw an error in this case.
To fix it double check the setup for your OS and generator. If this doesn't help then you'll need to find where this variable is set and remove this line.
I have the same issue - how I fixed it in my case. Indeed, I had copied the setup for cmake from windows then ported to Linux. When you run the first time, it will create in the build directory a file called: CMakeCache.txt. This file keeps some variables set initially for Windows. I removed it, together with all the CMakeFiles directory and rerun the cmake command to generate the project. It was working perfectly, but I had to set the CMAKE_CXX_COMPILER and CMAKE_C_COMPILER variables to the cmake command: -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_C_COMPILER=/usr/bin/gcc
Hope it is working for you too.
I successfully built shogun without the examples (this question) but now when I am trying to do the same with meta examples, I am getting an error as follows:
$ cmake -DSWIG_EXECUTABLE=/usr/local/bin/swig -DINTERFACE_PYTHON=ON -DBUILD_META_EXAMPLES=ON ..
-- Could NOT find CCache (missing: CCACHE CCACHE_VERSION)
-- Using system's malloc
CMake Error at src/shogun/CMakeLists.txt:49 (MESSAGE):
Shogun can only be built with GPL codes if the source files are in
/Users/krishna/shogun/src/gpl. Please download or disable with
LICENSE_GPL_SHOGUN=OFF.
-- Configuring incomplete, errors occurred!
See also "/Users/krishna/shogun/build/CMakeFiles/CMakeOutput.log".
Thank you.
https://github.com/shogun-toolbox/shogun/issues/4179
Sorry I made a silly mistake as can be seen by the link.
I am trying to cmake curlpp using Cmake version 3.4.1 and I get an error in cmake saying: " Error in configuration process [...]". So all I did is in cmake-gui open the curlpp source (version 0.7.3), selected the destination folder and chose mingw. Here is the output in the gui http://pastebin.com/1gKyqd32.
It said Configuring incomplete, errors occurred!
See also "C:/c++/libraries/curlpp_built/CMakeFiles/CMakeOutput.log".
CMakeOutput.log
I setup CMake correctly and I could compile glfw library.
Quoting the relevant part of the output
CMake Error at src/utilspp/CMakeLists.txt:4 (add_subdirectory):
add_subdirectory given source "singleton" which is not an existing
directory.
The project's CMakeLists.txt in src/utilspp is broken.
The bug is already reported in curlpp's issue tracker:
https://github.com/jpbarrette/curlpp/issues/7
You can work around this bug by removing line 4 from src/utilspp/CMakeLists.txt it should contain something like add_subdirectory(singleton). If you are lucky, everything works; but other errors might pop up.
I'm trying to generate Visual Studio 2013 projects files for MathGL 2.3.3 with CMake.
For some reason cmake does not understand my PNG_PNG_INCLUDE_DIR statement.
cmake "-DZLIB_INCLUDE_DIR=c:\users\chenning\projects\zlib-1.2.8\" "-DZLIB_LIBRARY_DEBUG=c:\users\chenning\projects\zlib-1.2.8\zlib.lib" "-DZLIB_LIBRARY_Release=c:\users\chenning\projects\zlib-1.2.8\zlib.lib" "-DPNG_PNG_INCLUDE_DIR=C:\Users\chenning\projects\lpng1620\" "-DPNG_LIBRARY_DEBUG=C:\Users\chenning\projects\lpng1620\projects\vstudio\x64\Debug\libpng16.lib" "-DPNG_LIBRARY_Release=C:\Users\chenning\projects\lpng1620\projects\vstudio\x64\Release\libpng16.lib" .
The Path exists and the variable is really called PNG_PNG_INCLUDE_DIR with two PNG.
cmake is telling me:
-- Found ZLIB: c:\users\chenning\projects\zlib-1.2.8\zlib.lib
-- Could NOT find PNG (missing: PNG_PNG_INCLUDE_DIR)
CMake Error at CMakeLists.txt:341 (message):
Couldn't find PNG library.
-- Configuring incomplete, errors occurred!
See also "C:/Users/chenning/projects/mathgl-2.3.3/CMakeFiles/CMakeOutput.log".
See also "C:/Users/chenning/projects/mathgl-2.3.3/CMakeFiles/CMakeError.log".
When I set the paths with cmake-gui all works fine.
Any ideas what's wrong?
I get with CMake 2.8.9 the following error:
CMake Error: CMake was unable to find a build program corresponding to "Visual Studio 11 Win64". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Could not find cmake module file:H:/ogredeps/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Could not find cmake module file:H:/ogredeps/CMakeFiles/CMakeCXXCompiler.cmake
Configuring incomplete, errors occurred!
I am using Visual C++ 2012 Express on Windows 7 64.
What am I doing wrong?
I think you are facing this bug: http://www.cmake.org/Bug/view.php?id=13348
You might have a luck with CMake 2.8.10-RC1