在过去的三个小时里我都快疯了。我只想安装CMake,然后安装OpenCV 3.1,但是我得到了一个Unsupported protocol错误(请参见下面)。
我安装了CMake 3.4.3。就像这样:
wget https://cmake.org/files/v3.4/cmake-3.4.3.tar.gz
tar xf cmake-3.4.3.tar.gz
cd cmake-3.4.3
./configure
make
sudo make install
然后运行这个:
./bootstrap --prefix=/usr
make
sudo make install
当我在OpenCV的安装
我无法让CMake找到带有Linaro ARM工具链的线程(我已经尝试过几个不同的线程)。以下是我所做的:
下载并解压缩到/opt。
下载了相应的sysroot并解压缩到~/sysroot
我创建了一个工具链-Linaro-arm.cmake文件,如下所示:
set (CMAKE_SYSTEM_NAME Linux)
include (CMakeForceCompiler)
我已经在我的Ubuntu14.10(64位)上安装了CMake (1.11版),在bii setup:cpp的同时,我下载并安装了bii 3.0.2。现在,当我想从控制台使用CMake时,我得到了一个分段错误:
$ cmake --version
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/home/lars/.biicode_env/cmake-3.0.2-Linux-64/bin
[
我用命令"apt install libsfml-dev“安装了SFML。
我可以把它链接到cmake描述中,就像这篇文章中的"“一样,一切都很好。
但是,如果我将set(SFML_STATIC_LIBRARIES TRUE)添加到cmake文件以链接sfml静态,则会得到以下错误:
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/SFML/SFMLConfig.cmake:139 (message):
Requested SFML configuration (Static) was not found
Call Stack
我对CMake的OpenCV是个新手,我是第一次在Windows上使用它,并且面临着一些我在下面提到的问题。
CMake Error at CMakeLists.txt:10 (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 find one.
我正在尝试升级我的linux计算机上的cmake。下面是我使用的命令。 删除旧的cmake: sudo apt purge --auto-remove cmake 从https://cmake.org/download/下载并解压cmake-3.13.3.tar.gz 然后在解压缩的cmake文件夹中: ./bootstrap
make
sudo make install 当我执行cmake --version时,它返回 bash: /usr/bin/cmake: No such file or directory 这表明在/usr/bin中不存在cmake可执行文件。但是,当我运行wh
我刚刚安装了cmake,但是编译器没有找到错误。
在尝试在新的Kubuntu安装上构建https://gitlab.com/interception/linux/tools时,在tools/build目录中运行cmake ..将返回以下错误:
CMake Error at CMakeLists.txt:3 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX&
我正在尝试在linux机器上构建pybind11测试。我下载了源代码并执行了以下操作-
cd pybind11-master cd tests mkdir build cd build cmake ..
我得到了错误-`找不到由"pybind11“提供的具有以下任何名称的包配置文件:
pybind11Config.cmake pybind11-config.cmake
将安装前缀"pybind11“添加到CMAKE_PREFIX_PATH,或将"pybind11_DIR”设置为包含上述文件之一的目录。如果pybind11提供了单独的开发包或SGK,请确保已安装`
我正在使用qt5和ubuntu13.04
我克隆了git存储库(git克隆git://github.com/ntadej/vlc-qt.git),然后按照自述文件中编写的步骤,这是输出:
tdsxv@tdsxv-M52S-S3P:~/VLCLibrary$ mkdir build
tdsxv@tdsxv-M52S-S3P:~/VLCLibrary$ cd build/
tdsxv@tdsxv-M52S-S3P:~/VLCLibrary/build$ cmake .. -DCMAKE_INSTALL_PREFIX=prefix
-- The C compiler identification i
我正在尝试安装工具bam-窗口,但我得到了cmake错误。我在linux中下载了bam-window-master.zip . the。该工具的链接托管在git 中。我下载并遵循以下命令。
unzip bam-window-master.zip
cd bam-window-master
mkdir build
cd build
cmake ..
在做cmake ..。编译一段时间后,我得到了一个错误
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- C
我正在用linaro-aarch64-2018.05在windows10 x64上进行交叉编译,以便在生成文件时使用c++11 cmake version3.1.6。
set GENMAKE_DIR=genmake-cv22-win-Linaro-aarch64
set VERSION=cv22-win-Linaro-aarch64
set CROSSMAKETOOL=cs-make-2013.11-33.exe
..\genmake-tools-win32\genMakefiles-win32.bat
和工具链文件
##--- target system
set(CMAKE_SYSTEM_