Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cmake]

The tag has no usage guidance.

25
votes
2answers
25k views

Could not find a configuration file for package “ECM” that is compatible with requested version 1.5.0

I tried to download "ECMConfig.cmake" from repository, but terminal gives me an error: "question's title + The following configuration files were considered but not accepted: ECMConfig.cmake : version ...
12
votes
4answers
4k views

Emacs 24: Loading a package installed via ELPA

I have just installed the cmake-mode package in Emacs 24 using: M-x package-install cmake-mode I can see the package at: ~/.emacs.d/elpa/cmake-mode-20110824, and I can load it using the instruction ...
3
votes
1answer
2k views

cygcheck: track_down: could not find cygnettle-4.dll

I'm trying to use cmake in cygwin. When doing so I get the following: ~> cmake --version /usr/bin/cmake.exe: error while loading shared libraries: ?: cannot open shared object file: No such file ...
3
votes
0answers
450 views

Filtering `catch` tests by label when running with `ctest`

I am currently using ctest to run tests written with the Catch framework. I would like to be able to filter which tests I run based on the internal Catch tags; for instance, I would like to be easily ...
3
votes
0answers
331 views

How to create symbol versioned functions in an so file in Fedora?

Due to the following bug in Fedora: http://forums.fedoraforum.org/showthread.php?t=296524 I decided to compile my own versions of zlib and libpng. But after doing so, I realized that libcairo could ...
1
vote
1answer
432 views

Using cmake in linux

I don't like cmake. Now that that is said, here's the question; 1) How do I tweak the configuration using cmake? Using make all that is necessary is configure --help to get commands to setup ...
1
vote
1answer
3k views

BOOSTROOT for cmake on ubuntu

I installed boost through: sudo apt-get install libboost-all-dev Now I need to set BOOST_ROOT for cmake to be able to find Boost library. Where should this path be set to?
1
vote
1answer
453 views

How do I cross compile the avahi-client and avahi-common libraries?

I have developed a C application that uses the avahi-client and avahi-common libraries. I need to do a cross-compilation of these libraries, so I downloaded the project source in github, https://...
1
vote
1answer
819 views

Installing Software with Missing Library - libusb1.0

I'm installing software called bladeRF using cmake. The following error happens: $ cmake -DCMAKE_INSTALL_PREFIX=~/user/local ../ CMake Error at host/libraries/libbladeRF/CMakeLists.txt:104 (message):...
1
vote
1answer
835 views

Cmake installation is failing

I'm trying to install CMake in Linux (RHEL). When I run the bootstrap script it throws following error: --------------------------------------------- CMake 3.5.2, Copyright 2000-2016 Kitware, Inc. ...
1
vote
2answers
500 views

gtk_widget_set_realized was not declared in this scope

I'm trying to compile OpenCV 3.1.0 on RHEL 6.4 and getting the following error: [ 34%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_gtk.cpp.o /hpcf/libs/opencv/vendor/...
1
vote
1answer
423 views

Compiling Shrew on Linux

I'm trying to build Shrew VPN, version 2.2.1 on Debian 7.1; however, I've run into a problem that I can't get by. README.TXT says I need to use cmake to build the Shrew client... The following ...
1
vote
0answers
15 views

error: cannot convert ‘boost::shared_ptr<permlib::Permutation>’ to ‘bool’ in return return repr;

I am very new in linux and trying to install SymPol in linux. SymPol requires Boost in version 1.34.1 or higher GMP with both C and C++ bindings CMake in version 2.6 or higher I installed these 3 ...
1
vote
0answers
14 views

cmake error encountered when build clang-query

I encountered the following error when I was trying to build clang-query. parallels@ubuntu18:~/myllvm/llvm/tools/clang/tools/extra/clang-query$ cmake . -- The C compiler identification is GNU 7.3.0 --...
1
vote
0answers
45 views

Cmake asks me to set EmotivSDK_LIBRARIES but I don't know where they are [closed]

I am using Windows 10. While I was generating an LSL for emotiv it showed me this error: CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them ...
1
vote
1answer
94 views

How to fix undefined references to Qt5 lib with CMake in ubuntu-based docker?

I'm trying to run a Qt project with CMake in an ubuntu 18.04-based docker container. When I run the cmake and make commands for my project, I get the following errors. /usr/local/Qt-5.12.0/lib/...
1
vote
1answer
53 views

How to fail if a certain program is run?

I am using cmake-conan to call conan during my build (on Ubuntu 16.04). However now I want to test that certain builds do NOT call conan. cmake-conan calls conan in this fashion: execute_process(...
1
vote
1answer
139 views

gentoo - Disable parallel build for llvm

I have Gentoo installed on computer with relatively small amount of RAM (1 GB). When I install llvm (emerge -a llvm), the computer always goes out of memory. All 4 cc1plus processes are using about 25 ...
1
vote
0answers
516 views

Building using CMake within Conda environment

I have a resource constrained lab machine (thats not controlled by me), which basically only allows me to write to an external hdd. I need to compile my class project using boost and pcl. My ...
1
vote
0answers
77 views

Debian Packaging: Different configuration per subpackage

I have a CMake-based project with a static library (by default) where I need to provide deb-packages. I want to make it nice and provide a shared and a static library in different packages. Then: How ...
0
votes
2answers
300 views

How to make cmake find installed packages

I am trying to use cmake to compile a program and it needs to use lxc, I run the cmakelist with cmake .. and it returns -- checking for module 'lxc' -- package 'lxc' not found. However, if I run apt-...
0
votes
1answer
507 views

make install error when compiling a program with cuda

I am trying to compile THIS program for my ubuntu system using the master source. I have installed the AMDGPU-PRO drivers and the AMD 3.0 SDK drivers via the basic install instructions on AMDs website....
0
votes
1answer
4k views

What is the correct location of gcc is on my Ubuntu 16.04 computer?

I am trying to build the software package Trilinos, and I think it failed because it couldn't locate the C compiler directory correctly. Can anyone tell what the correct location of gcc is on my ...
0
votes
1answer
742 views

Visual Studio deletes my CMake.exe

I'm installing OpenCV from this [very out of date] tutorial. I made it through the configuration step and everything seemed fine, but then when I try to build the OpenCV.sln, I get a bunch of these ...
0
votes
1answer
17 views

Configure build process in CMake's ExternalProject_Add

I have a C++ project (Superproject) that depends on another project I have no control over (Subproject). To be able to build my project I need to build first the Subproject and then the Superproject, ...
0
votes
1answer
18 views

How to force `yum reinstall` to overwrite changed files in a `/var` sub-directory?

I have a software package[1] that is already being used by multiple users. Its RPM is created with Cmake. For historical reasons, the software package installs some files in a subdirectory of /...
0
votes
0answers
10 views

Having trouble building gcc (libiberty obstack.c won't compile)

I'm running openSUSE 11.4, which is kinda old, so I'm trying to build some updated dependencies for another thing I want to build. I've downloaded the source for gcc-6.4.0 (also tried the latest - ...
0
votes
0answers
15 views

OpenCV Compiled Without opencv_traincascade

I compiled OpenCV from source on MacOS. I am able to run the opencv_annotation program just fine. I am able to use OpenCV in a Python3 program just fine. However, I cannot use opencv_traincascade ...
0
votes
0answers
45 views

Caffe, Windows, could NOT find PythonLibs, Could NOT find NumPy

this is my first time posting a question! I am attempting to compile and run caffe on Windows, I had been able to compile on a different machine last year running Ubuntu and did not have any ...
0
votes
0answers
27 views

Why can't I find visual studio generators in cmake?

I am trying to install clang by creating a .sln file using cmake. To generate the file I used this command inside the build directory: cmake -DLLVM_ENABLE_PROJECTS=clang -G "Visual Studio 15 2017" -A ...
0
votes
0answers
30 views

Cmake on ARM (arm-none-eabi) - configuration

I use cmake to compile my project for arm cortex m3 (arm-none-eabi-). I would like to add the following options: 1.) the linker should generate a .map file of the binary. 2.) make (Unix Makefiles) ...
0
votes
0answers
14 views

Eclipse project to use a special version of cmake, clang, and clang++

I have a project that needs to use a special version of CMake, C Compiler, and C++ Compiler. I'm using 2018-09 of Eclipse. I can import the project as an "Existing Code as Makefile Project", but I ...
0
votes
1answer
202 views

Build failed at Cmake while building native module

I am building a cordova project which requires cmake for building the native modules for android. Everything was working well and the build was successful but after upgrading the cmake to 3.10.2 on ...
0
votes
0answers
9 views

Wireshark Build Location

I'm trying to build Wireshark from source. I was able to do so and run the run/wireshark command to launch the application, but after running make install in the build directory (which I had placed in ...
0
votes
0answers
14 views

Qtcreator doesn't show include folder with cmake

Qtcreator doesn't show include folder in "Projects" tab, but it doesn't complain, I can compile and debug my program, it doesn't underline includes yellow, nothing, just doesn't show ./include ...
0
votes
2answers
52 views

cmake environment error with clion

I downloaded MinGW/cygwin/mingw-w64 not one of them work. I can't find the issue, every time CMake - Bundled "!Does not work in this environment". I watched youtube for clion-setup more than one. I ...
0
votes
0answers
45 views

CMake Error 2 when trying to build an apk

When I try to build an APK with CMake on Ubuntu, it says that it failed to sign and gives me an Error 2. Im trying to build DualBootPatcher, if this is necessary. [ 9%] File signing target '...
0
votes
1answer
41 views

UIC doesn't output to a file

It just doesn't. I'm fairly certain this is an issue with my computer, possibly due to the path variables, because I get the same problem with qt 5.11 as well as qt 5.12. It also seems like I'm not ...
0
votes
0answers
57 views

CTest consider a timeout as a passed test

I would like to ensure that my GUI tool starts, runs and then asks run further input/clicks. This will, of course, must time out. Thus, I would like to tell CTest that it has to time out. I am ...
0
votes
1answer
1k views

CMake error when creating project in CLion

I recently uninstalled Cygwin and switched to using MinGW as my toolchain. I installed the required packages; I triple checked to make sure that mingw32-make, mingw32-gcc and mingw32-gcc-g++ are all ...
0
votes
2answers
642 views

cmake - required package missing. Which package?

Whenever I run the command: cmake .. I get the following error regarding a package missing but I cannot seem to be able to find which package. -- Checking for module 'glib-2.0>=2.40' -- CMake ...
0
votes
1answer
197 views

Can't download or build allegro

Please help me. I am trying to install allegro to my debian jessie 8.5 system. Okay so first I added the PPA of allegro sudo add-apt-repository ppa:allegro/5.2 Then I did sudo apt-get update which ...
0
votes
1answer
1k views

Trouble installing cmake on Ubuntu 12.04

For some reason I decided it would be a good idea to apt-get remove cmake from my ubuntu 12.04 distro and then put it back, but when I do sudo apt-get install cmake I get the following error: The ...