Questions tagged [cmake]
The cmake tag has no usage guidance.
67
questions
-2
votes
1
answer
2k
views
What exactly cmake say: /usr/bin/ld: cannot find -ledit or /usr/bin/ld: cannot find -lcurses?
I am using ubuntu 20.04.
I am doing debugging of building with cmake.
What exactly cmake say: /usr/bin/ld: cannot find -ledit, i.e.what is ledit?
What is /usr/bin/ld: cannot find -lcurses exactly?
I ...
0
votes
1
answer
517
views
How to pass custom CMake option to a KDE debian package
I want to enable CMake option KIMAGEFORMATS_HEIF (from this MR) in the ubuntu 22.04 package kimageformat-plugins.
0
votes
2
answers
53
views
Where are Cygwin Packages Installed?
I've recently installed cygwin64 on my Windows 10 machine in an attempt to build a project using cmake (Through CLion).
The project has lz4 as a dependency and when running the cygwin setup, there's a ...
0
votes
1
answer
97
views
GpgmeppConfig.cmake not found
I am using Craft for building Linux applications in Windows, but the following error occurs when building a Linux application:
CMake Error at CMakeLists.txt:44 (find_package):
Could not find a ...
0
votes
1
answer
85
views
Could not install owa-epanet in python
I am new to python.
I need to install owa-epanet on my computer, so I used the code pip install owa-epanet.
But it returned the error shown below:
C:\Users\Ziyuan>pip install owa-epanet
Collecting ...
0
votes
1
answer
53
views
How can I get passed this zipHMMlib build error on Ubuntu?
I've installed the latest Ubuntu Server on an Oracle VirtualBox 64-bit machine instance, with host machine Windows 10 and 64-bit OS.
I installed a "slim" desktop environment using a random ...
0
votes
1
answer
467
views
How to install CMake from binary distribution on Linux
I've downloaded an already compiled binary distribution of CMake from this link. The package contains a bin, doc, man and share folders. I can unpack them and use them directly from a specific folder, ...
0
votes
1
answer
256
views
Trouble with imlib2 while installing Tint2
I'm trying to install Tint2 dock through its git repository on, Linux Mint. Following the instructions, i got to the cmake .. part, ran it, and received this output after a while:
-- Checking for ...
0
votes
0
answers
31
views
Proper way for cmake to look for installed third-party include files
Pardon my very newbie question - I want cmake to look in “standard” system locations for installed third-party headers - how to do that in a "modern" portable way? The variable ...
2
votes
0
answers
101
views
CMAKE_SYSTEM_INCLUDE_PATH - has just one path, for X11? [closed]
Running on Ubuntu 18.04, cmake version 3.18.0-rc2.
From documentation I expect CMAKE_SYSTEM_INCLUDE_PATH to hold a list of directories including /usr/include, /usr/local/include, etc. :
Semicolon-...
0
votes
1
answer
83
views
Trouble updating G++ to version >5 using apt-get in Windows Subsystem for Linux
Context: I'm trying to run CMake as described here (under Linux-installing dependencies > Building OpenVDB). I'm in WSL.
When I do so I get this error:
CMake Deprecation Warning at CMakeLists.txt:...
0
votes
1
answer
634
views
Cmake 3.17 can't run bootstrap because **fatal error: config.h: No such file or directory**
Please note: I'm using the WSL Ubuntu app on Win10.
I downloaded the CMake 3.17.1 Linux/Unix Source from CMake.org | Downloads and followed the instructions on CMake.org | Install. I ran the ./...
0
votes
0
answers
190
views
How to fix cmake error on payday 2 super blt source in debian buster
I have debian 10 running on a virtual machine inside windows 10.
I have installed build-essential, openssl, libssl-dev, libcurl4-openssl-dev, and cmake.
I am trying to have cmake generate a makefile ...
1
vote
0
answers
361
views
trying to configure cmake on windows 10
Please help me out with this error when am trying to configure CMake... am getting this error on Windows 10:
CMake Error at cmake/OpenCVFindLibsGUI.cmake:18 (find_package):
Could not find a package ...
0
votes
1
answer
3k
views
The C compiler "/usr/bin/clang" is not able to compile a simple test program
Why does my C compiler (Clang) fail to compile a simple test program when opening a CMake project in CLion?
I'm trying to setup CLion to run with CMake, Ninja, Clang and Clang++.
To test it I tried ...
0
votes
0
answers
1k
views
'CMake test failed with errors' in CLion
Every time I try to build a project in CLion, regardless the toolchain, this error appears:
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Check ...
0
votes
1
answer
538
views
Cmake could not find Eigen3 on HPC
I met the same error as (https://stackoverflow.com/questions/12249140/find-package-eigen3-for-cmake) when trying to install fenics-dolfin on the HPC clusters.
According to @Johannes S., simply using ...
0
votes
1
answer
133
views
gcc version is different when using sudo
I have two versions of gcc installed on my CentOS7 machine: 4.8.5 and 8.3. If I do:
$ gcc --version
I get 8.3
If I do:
$ sudo gcc --version
I get 4.8.5
How can I get sudo commands to also use 8.3 ...
1
vote
1
answer
563
views
Why is my yaml build failing test? yaml-cpp-0.6.0: handler_test.cpp:(.text+0x9f2): undefined reference to `testing::internal::GetWithoutMatchers()'
When I install the astronomy software purify.
It needs a latest version of yaml like yaml-cpp-0.6.0
I didn't encounter any errors, standard output is like
-- The C compiler identification is GNU 7.3....
1
vote
2
answers
874
views
Issue on compiling config.guess from llvm project source with cmake on cygwin
It seems like my compiler is not adapted to the syntax on the file config.guess and it keeps getting errors. The URL from which I downloaded the source is llvm project or more specifically problematic ...
0
votes
0
answers
69
views
Cmake using chinese single quotation marks
I'm using wsl with clion coding cpp program.
When a error occurred, cmake using chinese single quotation marks result in gibberish in messages of clion like below:
error: expected 鈥�;鈥� at end of ...
1
vote
2
answers
553
views
NDK r20 embedded toolchain fails on MacOS
I am trying to build libzmq for Android using CMake and the toolchain embedded in the NDK.
My system is MacOS 10.14.3
I freshly downloaded the latest NDK [r20] but the problem was here already with ...
0
votes
0
answers
43
views
Compatibility of code between 2 laptops & CMake
I am syncing my code between a desktop and a laptop, but when I try to build the program in my laptop I get the following error message:
CMake Error: The current CMakeCache.txt directory /home/...
1
vote
2
answers
5k
views
OpenCV Failed Compilation "Eigen/Core: No such file or directory" -- Cannot Change CMake Entry
I'm trying to install OpenCV but when I try to compile using CMake, I always get the error stated in the question, usually around 4% - 6%.
[ 6%] Building CXX object modules/core/CMakeFiles
/...
1
vote
0
answers
825
views
Building Caffe CMAKE errors
I'm trying to build and install caffe for DIGITS on ubuntu 18.04 , following these steps :
1- git clone https://github.com/NVIDIA/caffe.git
2- cd caffe/
3- mkdir build && cd build/
4- ...
0
votes
0
answers
3k
views
What is " DWARF error: could not find abbrev number 67"
I am trying to build library with cmake tool chain
but facing with "bin/ld: DWARF error: could not find abbrev number 67"
Could someone explain in which consequences this would occur
0
votes
1
answer
93
views
Can Alpine3D's code be compiled following their instructions?
I have been attempting to run Alpine3d for a personal project to model wind-drifted snow. This software uses 3 main libraries of code (each of which are open source projects of the SLF): MeteoIO, ...
1
vote
1
answer
379
views
Cmake unknown command
cmake version 3.7.2
CMake Error at CMakeLists.txt:1 (INCLUDE_SUBDIRECTORY):
Unknown CMake command "INCLUDE_SUBDIRECTORY".
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command ...
2
votes
1
answer
1k
views
tar on windows fails to extract symlink out of archive
While trying to install GTK with vcpkg it fails to extract libexpat-libexpat-R_2_2_6.tar.gz:
Building package expat[core]:x64-windows...
-- Downloading https://github.com/libexpat/libexpat/archive/...
26
votes
1
answer
9k
views
Can CMake stop at the first error?
When cmake encounters an error, sometimes it does not stop instantly but continues to process all CMake files. It is only at the end of the treatment that we learn that there is an error, so we have ...
5
votes
1
answer
9k
views
ERROR: Dependency "mount" not found, tried pkgconfig and cmake Linux while trying to install glib-2.60.0
Runing the following command from a terminal:
sudo python3 meson _build
:
**The Meson build system**
Version: 0.50.0
....
Checking for function "ngettext" : YES
Checking for function "...
3
votes
0
answers
5k
views
Conda gcc/g++ did not replace system (linux) gcc
I'm using a Linux system (in which I don't have sudo access) which already had gcc installed.
I have to run some software, which requires stuff like cmake, bison and flex, and I installed them with ...
1
vote
1
answer
2k
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, ...
3
votes
1
answer
18k
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 /...
3
votes
1
answer
401
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 - ...
1
vote
0
answers
1k
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 ...
1
vote
1
answer
2k
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) ...
1
vote
1
answer
458
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
--...
0
votes
1
answer
2k
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 ...
1
vote
1
answer
1k
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
2
answers
2k
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
0
answers
764
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
1
answer
129
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 ...
1
vote
1
answer
74
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(...
2
votes
1
answer
1k
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 ...
2
votes
0
answers
3k
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 ...
0
votes
1
answer
718
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
1
answer
2k
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 ...
1
vote
1
answer
1k
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 crosscompile these libraries, so I downloaded the source code to do that, but I am not able to find ...
0
votes
2
answers
1k
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-...