我只在中遇到了这个问题,系统cmake可以正常工作。
/opt/Android/Sdk/cmake/3.6.3155560/bin/cmake: /usr/lib/libcrypto.so.1.0.0: no version information available (required by /opt/Android/Sdk/cmake/3.6.3155560/bin/cmake)
/opt/Android/Sdk/cmake/3.6.3155560/bin/cmake: /usr/lib/libssl.so.1.0.0: no version information available (
我正在寻找一种方法来设置用生成的项目的目标平台版本。我在CMake问题跟踪器中找到了以下已关闭的CMake问题跟踪器。我是最新的3.9.1版的CMake。但这里描述的解决方案似乎行不通。我试过了
set (CMAKE_SYSTEM_VERSION 8.1)
在我的CMakeLists.txt里。
如何在使用CMake时设置Terget平台版本?
后缀:
现在,我检查了在生成解决方案时从命令行设置CMAKE_SYSTEM_VERSION是否有效,但如果可能的话,我希望能够从CMakeLists.txt文件中设置此设置。
cmake -G "Visual Studio 14 2015 Wi
我的CMake已经到了极限;它有很大的潜力,但我似乎无法使它找到基本的系统工具(即make)来发挥作用。
病征
CMake和CMake图形用户界面产生以下结果(在删除CMakeCache.txt文件之后):
Processing top-level CMakelists.txt for project swb
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".
CMAKE_MAKE_PROGRAM is not set. You probably n
在中运行cmake -DCMAKE_BUILD_TYPE=Release ..时,用CMake安装cmake -DCMAKE_BUILD_TYPE=Release ..时遇到了一个问题
-- Could NOT find ZSTD (missing: ZSTD_LIBRARY ZSTD_INCLUDE_DIR)
CMake Error at 3rdparty/libbacktrace/CMakeLists.txt:160 (message):
Could not find dwarf.h, try installing the dwarf or elfutils development
我想使用cmake -i交互模式创建一个CMake项目,但是遇到了错误:cmake: error while loading shared libraries: libidn2.so.0: cannot open shared object file: No such file or directory 我一直在学习教程https://learnopengl.com/,但是使用的是Manjaro Linux而不是Windows,所以我想使用https://cmake.org/runningcmake/中解释的命令行 在研究中,大多数例子都建议增加LD_LIBRARY_PATH。我尝试这样做,
我最近更新到了cmake Big Sur,现在使用macOS编译C++代码库时遇到了问题。 我已经解决了一些与Xcode配置相关的问题(请参阅我的问题Compilation errors with M1 MacBook Pro and cmake)。 我的新问题如下:当我运行make时,我得到以下输出: CMake Error at /usr/local/Cellar/cmake/3.19.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:218 (message):
Could NOT find ZLIB (missin
我在Ubuntu12.04上安装了OGRE1.8.1(源包),一切正常(我设法在Ogre3D界面上运行了一些示例)。然而,当我编译一个需要OpenCV、ArUco和Ogre库的外部项目()时,我遇到了一个问题。当我运行项目的CMake时,我收到以下信息:
CMake Error at CMakeLists.txt:46 (find_package):
By not providing "FindOGRE.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration
我想用CMake在windows上编译一个源代码,它使用wxWigets库。我从以下页面下载了wxWigets:
在Visual构建之后,我得到了库/lib文件。我已经为wxWidgets_LIBRARIES和wxWidgets_INCLUDE_DIRS设置了路径。但下列错误无法解决。
CMake Error at C:/Program Files/CMake/share/cmake-3.11/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find wxWidgets (missing: w
我正在尝试配置一个无头构建服务器,以构建一个使用Cmake构建C++部件的Android项目。
现在我有个问题:
* What went wrong:
A problem occurred configuring project ':app'.
> Failed to find CMake.
Install from Android Studio under File/Settings/Appearance & Behavior/System Settings/Android SDK/SDK Tools/CMake.
Expected CMake exec
我正在尝试在我的OS X 10.10.5上编译库。
我用:ccmake ../vrpn设置了。当我尝试配置项目时,我得到了以下错误:
CMake Error at /usr/local/Cellar/cmake/3.4.0/share/cmake/Modules/Platform/Darwin.cmake:76 (message):
CMAKE_OSX_DEPLOYMENT_TARGET is '10.10' but CMAKE_OSX_SYSROOT:
""
is not set to a MacOSX SDK with a recogni
我使用QT和CMake来构建windows应用程序。当我运行我的CMakeLists.txt文件时,我会收到以下警告:
CMake Warning at c:/Program Files/CMake 3.4/share/cmake-3.4/Modules/InstallRequiredSystemLibraries.cmake:343 (message):
system runtime library file does not exist:
'MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/msvcp100.dll'
我一直遵循这个,直到我必须执行以下指令时,一切都没有问题:cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a"
我得到的错误如下:
By not providing "FindInferenceEngine.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"InferenceEngine"
我试图在Ubuntu22.04上编译,遇到了一个CMake找不到glew组件的问题。
我已经指出了GLEW_LIBRARY和GLEW_INCLUDE,但是我无法找到GLEW_LIBRARIES的路径。我想知道这里是否有人知道这条路径是什么,这样我就可以将它包含在CMakeLists.txt文件中。
这是CMake的输出:
-- Checking for module 'glew'
-- No package 'glew' found
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleS
我正在尝试在我的pc上安装hiphop,但我的cmake遇到了问题,我收到了这个错误:
CMake Error at CMake/HPHPFindLibs.cmake:65 (message):
Custom libevent is required with HipHop patches
你知道怎么解决这个问题吗?
我试图在Windows上使用cmake构建C++项目。但我发现一个错误:
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.3/Modules/FindPackageH
andleStandardArgs.cmake:148 (message):
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES) (found suitable
version "3.4.1", minimum required is "3.4")
Call Stac
我试图将OpenMP添加到正在使用CMake构建的项目中。在Linux上使用标准的CMake/OpenMP添加构建它没有问题:
find_package(OpenMP)
if (OPENMP_FOUND)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINK
我使用cmake + qt在开发mac os x 10.12平台,但是当我使用set (CMAKE_OSX_DEPLOYMENT_TARGET " 10.11 ")编译器生成app时,这个app复制到mac os x 10.11上的电脑应用程序,提示app需要os X 10.12,但是如果不把app拷贝到应用程序中,拷贝到其他目录就不会提示需要os x 10.12了,很奇怪的问题,我的app还依赖于很多其他dylib,请帮我分析一下这个问题。下面是cmake代码:
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11)
#set(CMAKE_OSX_DEP
我正在尝试从编译openlase库,并且一直遇到CMake的问题。CMake正在返回一个错误,声明它找不到诅咒,经过了大量的查找,我仍然困惑于问题是什么。我已经检查了是否安装了各种ncurses包,但是错误仍然存在。我对CMake不是很熟悉,但我能够解决之前出现的其他依赖问题。以下是终端中的输出。
tom@SILVER:~/dev/openlase$ cmake ./
-- Found JACK
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:70 (MESSAGE):
Cou
我有VisualStudio2019,CMake 3.18.4,Ninja1.10.1,Qt5.15.0,QtCreator 4.13.2,我正在尝试用QtCreator打开一个Qt/CMake项目。
我从CMake获得了这个输出:
2020-12-02T17:04:23 Clang Code Model: Error: The clangbackend process has finished unexpectedly and was restarted.
Running C:\Dev\Libs\Qt-5.15\Tools\CMake_64\bin\cmake.exe -S C:/Dev/t
我刚刚安装了CLion,我需要编译器。我安装了Cygwin。但是有一个错误:
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
CMake Error: Error executing cmake::LoadCache(). Aborting.
Error code: 1
所以,CMake被“捆绑”了,我试着从网站上安装它。但还有下一个错误:
Selected CMake might be
我正在尝试使用cmake为c++构建Box2D库。当我运行cmake gui时,我得到以下错误:
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMake was unable to find a build program corresponding
我正在尝试构建一个依赖于OpenCV的项目。我使用macports安装了Opencv,当我尝试构建项目时,cmake给出了以下输出:
CMake Error at CMakeLists.txt:47 (FIND_PACKAGE):
By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCV", but
CMake did not
我正在运行命令"sudo make install",相关的cmake_install.cmake文件在底部。我收到的确切错误消息是:
CMake Error at cmake_install.cmake:36 (file):
file INSTALL destination:
~/Desktop/Geant/geant4.10.04-install/share/Geant4-10.4.0/geant4make is not
a directory.
Makefile:104: recipe for target 'install' failed
我正在使用CMAKE构建开源项目(就像在GitHub上提供的那样)。我还安装了Visual Studio 2019。有一个问题,CMAKE无法在我的系统中找到Fortran编译器,而我已经在Fortran编译器中安装了MinGW。错误是:
**The Fortran compiler identification is unknown**
**No CMAKE_Fortran_COMPILER could be found.**
如何解决这个问题并使CMAKE了解Fortran编译器?
注意:我尝试了其他不需要Fortran编译器的项目,这些项目都是成功构建的。
已安装的软件:
CMAKE
我正在尝试安装,但在执行make ops时遇到问题。
首先,我得到错误Caffe2Config.cmake not found,但按照此处的说明操作后,Caffe2Config.cmake最终位于build目录下。
如果将路径添加到build文件夹,则会出现以下错误:
CMake Error at /home/erikbylow/Code/LocalLibs/pytorch/build/Caffe2Config.cmake:14 (include):
include could not find load file:
/home/erikbylow/Code/LocalLib
这是CMake输出:
-- The C compiler identification is MSVC 16.0.30319.1
-- The CXX compiler identification is MSVC 16.0.30319.1
-- Eclipse version is set to 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong.
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio
10.0/VC/b
我和CMake有个问题,他们没有检测到CMake编译器的正确版本。
我的CMake使用命令行,但不在CLion中。
在这里,CMake工具在CLion中的输出日志:
CMake Error at build/conanbuildinfo.cmake:1344 (message): Detected a mismatch for the compiler version between your conan profile settings and CMake: Compiler version specified in your conan profile: 9 Compiler versio