Questions tagged [cmake]
CMake is a cross-platform, open-source make system.
348
questions
5
votes
1
answer
1k
views
A binary file exists but shell says no such file
I'm using the Ubuntu in UserLAnd on an android.
I just installed from the Android SDK Manager sdkmanager cmake 3.18.1.
Now, I can see the cmake executable from its directory cmake/3.18.1/bin byls, ...
1
vote
1
answer
103
views
Why am I getting a cmake error while installing latte-dock from git?
I am using kubuntu(wayland).
I started following the installation documentation on github to install latte-dock:
sudo add-apt-repository ppa:kubuntu-ppa/backports
sudo apt update
sudo apt dist-upgrade
...
1
vote
1
answer
263
views
Remove cmake from Ubuntu 22.04.3
I needed updating my cmake program on Ubuntu 22.04.3 version amd64, but wrongly downloaded the aarch64 version of cmake using this method (https://www.golinuxcloud.com/install-cmake-on-ubuntu/#Method-...
1
vote
0
answers
398
views
How to solve cmake "Could NOT find Threads" issue on Jenkins
I'm trying to create a Jenkins job that need to build a project with CMake, but keep getting an error
Could NOT find Threads (missing: Threads_FOUND)
I've installed both
libpthread-stubs0-dev
and
...
2
votes
1
answer
2k
views
How to install clang-15 or higher? (16 preferably)
I am currently trying to build a project using cmake, and the error that occurs reads:
CMake Error at cmake/tools.cmake:33 (message):
Compilation with Clang version 14.0.0 is unsupported, the ...
0
votes
0
answers
53
views
GNU RISC-V Make Trying to Access File in Directory it just Created
I'm trying to run xv6-riscv. I'm on Ubuntu 22.04.2 LTS, so I needed to build the gnu-riscv-toolchain. Following these instructions, I ran sudo make. Eventually, make produced the following output:
rm -...
0
votes
0
answers
252
views
Using Ubuntu 22.04 for ROS2 Humble, Ceres-Solver, PCL and Octomap
I am trying to use Ubuntu 22.04 for ROS2 Humble, Ceres-solver, PCL and Octomap. I keep on running issues with these programs. I downloaded ROS2 Humble as a debian and I think it works correctly but ...
1
vote
1
answer
174
views
Syntax error in object.h file from python3.10-dev package
I am writing a code to edit Sqlite database from c++ and then using PyBind11 to use the program with python. I installed PyBind11, built it till here no issue but when I am building the code it shows ...
0
votes
1
answer
213
views
Getting "Could not find curses error" while installing mariadb from mariadbserver in ubuntu
I am installing MariaDB in my ubuntu based on the following readme file.
My ubuntu version is 22.04 and I am using the MariaDB branch 11.0.
I have followed the starting the steps and they are running ...
0
votes
0
answers
74
views
problem with SUNDIALS v6.5.0
Following instructions found in INSTALL_GUIDE.pdf:
Download and unzip
Copy to the default directory /usr/local
Make directories INSTDIR and BUILDDIR
cmake
but the following error occurred:
CMake ...
0
votes
0
answers
94
views
How do I "Add the installation prefix of "Tolua++" to CMAKE_PREFIX_PATH"?
I'm trying to create a .deb for a game from its tarball.
(https://github.com/Wargus/stratagus)
I believe I've installed its dependencies, but one I'm suspicious of is tolua++, which is a sort of an ...
0
votes
1
answer
678
views
CMake: "ERROR: Package [...] build failed", error in m4 build() method
I am trying to install a custom piece of software for my job. I downloaded the source, went inside the folder and typed $ cmake ... After reading AskUbuntu answers, I deduced the problem comes from my ...
0
votes
1
answer
297
views
Compiling with make gives me the error: cc1plus: error: unrecognized argument to ‘-flto=’ option: ‘auto -ffat-lto-objects -flto=auto’
I'm trying to compile this code whith the procedure that apears in the site. I make a new "build" folder and i use the command "cmake .." after i enter the folder, but when i use ...
-1
votes
1
answer
411
views
How to check if a package is installed while installing with make
Lets say I want to install a package like kenlm. I have used this link to install it and it got installed without raising any error.
Now how can I check where in my machine it has been installed?
...
0
votes
1
answer
322
views
Best way of building a Ubuntu CMake app as cross platform on Visual Studio 2022 Community Ed. c++?
Questions:
Are there CMake differences between Ubuntu 22.04 and Visual Studio 2019 Comm Windows 10/11? Aside from CMake version minimum 3.20 for VS2019, I had been using 3.23 on Ubuntu. Qt required ...
0
votes
1
answer
4k
views
How to install the program gr-gsm?
I am trying to install a program named gr-gsm on my system. So, I followed the official guide from here but when I entered the command cmake .. (while following the installation guide) it returns this ...
0
votes
1
answer
65
views
cmake project involving UseLATEX.cmake builds but fails to create output PDF. What am I doing wrong?
In manual folder on Ubuntu 22.04 I have files manual.tex, A.tex, B.tex, C.tex, D.tex (the chapters), UseLATEX.cmake, and CMakeLists.txt.
CMakeLists.txt contains:
cmake_minimum_required(VERSION 3.22)
...
0
votes
1
answer
572
views
/usr/bin/ld: cannot find -lpython3.9d
I have this error on ubuntu 20.04 while running cmake then make
[100%] Linking CXX executable ./tmp/DearPyGuiDearSandbox/DearSandbox
/usr/bin/ld: cannot find -lpython3.9d
collect2: error: ld returned ...
0
votes
0
answers
138
views
cmake Error and libcurl version is not provided
I'm getting following error while running cmake command and also whenever it runs fine it give error libcurl version is not available
Getting this error
cmake -version
cmake: error while loading ...
0
votes
2
answers
143
views
Could NOT find Discount (missing: Discount_LIBRARIES)
I tried to compile Okular from source.
cmake complains that many things are missing. I manually search via Google for each error, or also via apt search and try to figure out the right Ubuntu package (...
1
vote
1
answer
83
views
How would I convert a cmake kde package to a deb source format
So I want to convert the package plank-player to Debian source
to be easily compiled, the package uses CMake.
Note I do not know what else to put in here so yay if your info ask
0
votes
1
answer
543
views
Revert a make install due to installing PCL before VTK
I'm following the steps of a repository and to sample some dataset, PCL and VTK are needed. I had a lot of issues before regarding broken packages and had to delete and install again Ubuntu (18.04), ...
1
vote
1
answer
751
views
How to git clone (done), Cmake build (almost done) and run a C++ Project in Ubuntu
This is my first day in Ubuntu (20.04.4 LTS) for C++ development. Previously I only used Windows, and find something new to work with. I would appreciate your support.
After cloning a github repo, I ...
0
votes
0
answers
400
views
Problem with cmake ../ gazebo in Ubuntu
I have used this instruction:
How to upgrade cmake in Ubuntu
And after providing last step when I write this in other terminal:
cmake --version
I have had this error:
bash: /usr/bin/cmake: No such ...
0
votes
0
answers
1k
views
Cmake cannot find boost_python and boost_numpy
I'm trying to install a software which requires Boost. So I downloaded boost by running this command
wget https://sourceforge.net/projects/boost/files/boost/1.65.1/boost_1_65_1.tar.gz
and then ...
2
votes
1
answer
953
views
Does readelf return RPATH as RUNPATH?
I have written a simple program/lib combo using cmake, named "PrintFive".
Running from the CLI:
readelf -d PrintFive
Dynamic section at offset 0x2d60 contains 30 entries:
Tag Type ...
0
votes
0
answers
50
views
Is there a package manager that offers recent boost/clang/cmake versions AND creates references and env. variables? (18.04)
I need at least clang 7+, boost 1.77+, cmake 3.11+ on Ubuntu 18.04 and I am too dumb to install them manually because I do not know where to install, what to link and which env. variables to set. ...
0
votes
0
answers
26
views
Cmake error when installing [duplicate]
I installed Ubuntu in VirtualBox for trying a software made only for Linux.
I'm getting this error when trying to install the software. Not sure if it's an error in the steps of the installation or a ...
2
votes
1
answer
872
views
CMake problem when building video driver for Intel AlderLake-S GT1
I am trying to get a video driver to support my CPU supported video output (specifically the Intel AlderLake-S GT1).
Here is the output from inxi
Graphics:
Device-1: Intel AlderLake-S GT1 driver: N/...
1
vote
1
answer
213
views
Different CMAKEs, unable to remove one of them
I have two cmake commands, one has a path /usr/local/bin/cmake, which I would like to uninstall. I tried running apt remove cmake but it gives Package 'cmake' is not installed, so not removed. The ...
1
vote
1
answer
180
views
cmake give me ECMFindQmlModule when complileing plasma-bigscreen
This is the output.
Note, I do have extra-cmake-modules installed.
ubuntu 21.10 rpi 4
CMake Error at CMakeLists.txt:16 (include):
include could not find load file:
ECMFindQmlModule
Installing ...
3
votes
1
answer
6k
views
Installing Avogadro 1.2.0 From Source Ubuntu 20.04
Package downloaded as avogadro-1.2.0.tar.gz and put in the home/src folder; extracted to the same folder. I got as far as step 2 from the INSTALL folder, here ...
Requirements
============
-- CMake ...
0
votes
1
answer
4k
views
how to install the cmake with specific version on WSL ubuntu 20.04
I am currently trying to link my CLion to WSL, but CLion only supported the Cmake of version 3.20.x, not the latest version, so I wonder how to downgrade my Cmake (version 3.21.3) to 3.20.x on Ubuntu
...
0
votes
0
answers
4k
views
Cmake can't find gcc compiler
I have Ubuntu 18.04.6 LTS and I am trying to install and run gcc v8 (a v7 version is the default).
I have done:
sudo apt-get install build-essential
sudo apt-get install gcc-8
To try to get the v8 to ...
2
votes
1
answer
158
views
wxLua caused collect2: error: ld returned 1 exit status
I try to get zerobrane studio running. Unfortunately, I missing wxLua. Therefore, I did the following steps:
$ sudo apt install libwxgtk3.0-dev cmake libwxgtk-media3.0-gtk3-dev libwxgtk-media3.0-dev ...
0
votes
0
answers
188
views
make install error when compiling from source
When I attempt to install dgraph from source I get the following error messages:
I have virtually no experience with C or make and I'm afraid to screw with this. I looked everything that looked like ...
0
votes
1
answer
2k
views
Is it possible to compile SDRPlusPlus on Ubuntu 18.04 LTS?
Currently new SDR related software named SDRPlusPlus is available as deb-packages only for Ubuntu 20.04 LTS and newer versions.
Is it possible to compile SDRPlusPlus on Ubuntu 18.04 LTS?
1
vote
1
answer
6k
views
What is build directory?
I'm trying to build Audacity following the instructions in https://github.com/audacity/audacity/blob/master/BUILDING.md
And the second last step:
$ cd <build directory>
what does this means? ...
0
votes
0
answers
348
views
Cmake fails to build an executable
Trying to build a program with Cmake Results in:
me@ubuntu-20-04:~/Downloads/UxPlay/build$ cmake ..
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:3 (project):
No ...
0
votes
0
answers
284
views
Cmake returning bash cmake-3.18.6-Linux-x86_64.sh --skip-license --prefix=/usr/local
I have installed cmake to /usr/local but when I use it, receive this:
bash cmake-3.18.6-Linux-x86_64.sh --skip-license --prefix=/usr/local
I run cmake --version, but:
bash: /usr/bin/cmake: No such ...
2
votes
2
answers
7k
views
bad cmake executable vscode
I've recently freshly installed Ubuntu 20.04, and VSCode, meant for c++. I added the C/C++, CMake and CMake Tools extensions. Then I cloned one of my old github repos for testing and tried to Cmake:...
0
votes
0
answers
420
views
Cmake Error: Problem with archive_write_finish_entry(): Write to restore size failed
I'm getting this error when running cmake ..;
... {more warnings, all unkown}
cmake -E tar: warning: unknown warning
cmake -E tar: warning: unknown warning
cmake -E tar: warning: unknown warning
CMake ...
0
votes
1
answer
282
views
Can't compile project in c++, regardless of IDEs
I have been having problems with running c++ programs on ubuntu 20.04. The problem is, that even I write legit code that the compiler can understand, the same error occurs saying that "Error: ...
1
vote
1
answer
3k
views
I am getting error about X11 library
when I run cmake build I get this error:
CMake Error at cmake/Macros.cmake:296 (message):
Missing item in X11_X11_LIB;X11_Xrandr_LIB
Call Stack (most recent call first):
src/SFML/Window/CMakeLists....
0
votes
1
answer
521
views
add_executable Error - CMake
I created a package and source file in my Ubuntu 20.04 computer. My goal is to visualize dummy sensors and objects in Rviz2. To do that I followed the How to visualize sensor data in ROS2 article. ...
0
votes
1
answer
2k
views
main.cpp:1:10: fatal error: Sort.h: No such file or directory
I want to write makefile to compile my C++ codes.
The tree of my files is this:
.
├── include
│ └── Sort.h
├── lib
│ └── Sort.cpp
└── src
├── main.cpp
├── makefile
└── obj
And this is ...
0
votes
1
answer
3k
views
Why cant I get libevdev-dev package on Ubuntu 20.04? [duplicate]
I'm new to Linux and I'm having a hard time with a package. I've been trying to run the ''cmake .'' and I can't because I don't have the libevdev package.
~/joycond$ cmake .
-- Checking for module '...
0
votes
0
answers
317
views
How to solve "make" issue while cross-compiling on the ubuntu
I am trying to cross-compile this (ultralytics/yolov5) project on my ubuntu machine. Since I am compiling it for my another machine "raspberry Pi" so I already installed the toolchain which ...
2
votes
2
answers
12k
views
Cannot find appropriate C compiler on this system
i got this error when using ./bootstrap command for installing cmake
---------------------------------------------
CMake 3.18.0, Copyright 2000-2020 Kitware, Inc. and Contributors
---------------------...
3
votes
1
answer
599
views
Creating a Debian package for a Qt application built using CMake
I would like to create a .deb installation package for a GUI based Qt5 application. Most of the links available for this problem are pretty old, so I'm curious if there are more up-to-date solutions ...