344 questions
0
votes
0
answers
41
views
What does the strip command from binutils strip by default?
The strip command from binutils has lots of CLI options to enable/disable striping certain things, but I am interested in what it strips by default when no CLI options are given. This information ...
0
votes
0
answers
31
views
What is the best way to make CMake not install an included package/submodule? [duplicate]
I am trying to build and package an application with CMake, using Azure IoT C SDK. The projects instructs you to include it in your application by doing something like:
cmake_minimum_required (VERSION ...
1
vote
0
answers
102
views
Use CPACK_DEBIAN_PACKAGE_SHLIBDEPS between components without RPATH
I have dependencies between CMake components, and want to use dpkg-shlibdeps in the DEB packager. I set
set(CPACK_DEB_COMPONENT_INSTALL ON)
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(...
-1
votes
2
answers
162
views
How to get cmake + cpack to use nsis plugins
I am using cmake + cpack + nsis to create an installer for windows (10 and later). In the installer creation phase, I would like nsis to use one of its plugins (ZipDLL in my particular case).
How can ...
1
vote
0
answers
162
views
Create only the package tar.gz file without being able to install the binary and library files using CMake CPack
This is an extended post/question of my previous post CPack package doesn't include the executable file. From the solution of my previous post I was able to create the package with required binary ...
6
votes
1
answer
141
views
CPack package doesn't include the executable file
I am trying to create a binary software package using CPack utility. I am using TGZ CPack generator to generate tar.gz file which should contain both the executable and a static library, but when I ...
0
votes
0
answers
228
views
How to prevent cpack with productbuild from modifying and un-signing binaries?
I'm using the productbuild CPACK generator to build a .pkg installer from my binary (actually a bundle containing a shared lib). The binary bundle is built with cmake (Ninja generator) and is properly ...
0
votes
1
answer
403
views
How to use CMake / CPack to add a conffile to a deb package? With CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA?
I am developing a C/C++ package, built using CMake, and I want to package it for Debian. So I thought I'd use CPack to build a Debian package. I managed to do so, but my project should also contain ...
0
votes
0
answers
79
views
How to include OpenMP libraries in CPack package on macOS?
I am getting familiar with CMake and CPack, but I can't figure out how to solve the following issue when creating a macOS package.
I have some C++ code using OpenMP:
#include <iostream>
#include ...
0
votes
0
answers
182
views
How do I get past "Problem Removing toplevel directory
I am trying to package things using CPack and attacehd is my cpack file. I'm not sure what I'm supposed to be doing to get this pushed past this point. I have had it stuck on this even when using -D ...
2
votes
1
answer
71
views
packaging Open3D as debian
I'm using Ubuntu 20.04, CUDA 11.4, and I want to create a debian of Open3D 0.18.0, to do so I cloned the repo and tried:
mkdir build && cd build
cmake -DBUILD_CUDA_MODULE=ON -...
0
votes
0
answers
71
views
Local install vs install for CPack generator
If we rerun cmake after make install in our project, we get CMake warnings
Cannot generate a safe runtime search path for target ... because
files in some directories may conflict with libraries in ...
0
votes
0
answers
65
views
Copying all linked shared objects with cpack
I am using Qt framework and I am trying to build a deb and tar.gz file using cpack. Everything seems to be working fine but the copied shard objects have full version numbers instead of just the major ...
0
votes
1
answer
97
views
How to remove files in the post-installation phase of an NSIS installer generated by CPack
My project's main CMakeLists.txt contains instructions to generate an NSIS installer.
One of these instructions is
set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "
nsExec::Exec '\\\"\\\$...
0
votes
0
answers
81
views
Why do my linked dylibs not read from the lib folder using cpack in the built program?
Attached below is my cmakelists.txt, I don't know why, but when I use cpack to create the bundled folder, it is reading the dylibs from the original location. I know this because I delete the dylibs ...