Questions tagged [cmake]
CMake is a tool to manage building of source code, mainly used for the C and C++ languages.
73
questions
0
votes
0
answers
139
views
How can I configure Visual Studio as the default CMake generator?
I have configured Visual Studio to use CMakePresets.json for CMake settings, not CMakeSettings.json:
My CMakePresets.json does not explicitly specify any generator:
{
"version": 3,
&...
0
votes
0
answers
42
views
Does Visual Studio Code have an equivalent to CLion's CMake Profiles?
I'm following along this tutorial to learn CMake.
In the tutorial, the instructor demonstrates encapsulating the setting of a CMake variable (i.e. a -D command line argument) in the Settings > ...
0
votes
0
answers
116
views
Cross compiling ffmpeg: error while adding libopus: undefined reference to `__memcpy_chk'
I have set in the cmake file the following:
set(STACK_PROTECTOR_SUPPORTED 0)
set(FORTIFY_SOURCE_SUPPORTED 0)
However ffmpeg configure fails at this point: (from config log)
...
...
rnx/...
0
votes
0
answers
125
views
How to tell autoconf to run specific commands in with 'make install'
I am on OSX 12.6.8, and I succesfully generated a makefile by using autoconf by creating configure.ac and makefile.am as indicated in this tutorial
By running autoconf, then ./configure and make, my ...
0
votes
0
answers
55
views
How do I install libraries if I don't have the config file
How do I install the libraries if I don't have the config file, and in addition to not having the configure file, they come with an extension. I have followed the instructions, I have placed the ...
0
votes
0
answers
91
views
Building SlackLogViewer with Qt6 ; issues in QuaZip cmake (pop!_os 22.04)
I'm a recently converted linux user running Pop!_OS 22.04. I am trying to build SlackLogViewer which is a C++ program, using Qt6. In order to do this, I had to build one of the dependencies, QuaZIP, ...
-1
votes
1
answer
15k
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
939
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
329
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 ...
1
vote
2
answers
308
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
108
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
66
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 ...
1
vote
1
answer
2k
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
405
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
93
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
156
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
111
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
838
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
213
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
386
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
4k
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
2k
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
666
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 ...
1
vote
1
answer
200
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
765
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
1k
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
74
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
642
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
86
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
875
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
103
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
539
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
2k
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/...
28
votes
3
answers
12k
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 ...
6
votes
1
answer
11k
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
7k
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
3k
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
21k
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
517
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
3k
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) ...
2
votes
1
answer
565
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
928
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
153
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
79
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(...