347 questions
0
votes
0
answers
34
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 ...
1
vote
0
answers
64
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
vote
0
answers
134
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 ...
0
votes
0
answers
103
views
Using CPACK and WIX, package a installer which creates start menu shortcut and desktop shortcut, and require admin privilige
I'm complete new to windows development, what Im trying to do is to create a installer for windows users that require admin privilige and create shortcuts.
The program is developed by python and ...
0
votes
0
answers
23
views
How to pack empty directories in CPack 2.8.12.2
When using CPack to create a .tar.gz file, I couldn't find a way to include some empty directories into the tar file.
Though the directory is created in the temporary Cpack installation path.
../build/...
0
votes
1
answer
354
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
170
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 ...
0
votes
0
answers
59
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
1
answer
84
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 '\\\"\\\$...
1
vote
0
answers
97
views
Dereference symlinks in CMake source distribution tarballs
Some Background
I'm using CMake V3.29.0 on Ubuntu 22.04 to build a project. The product is only for use on a server within my company. In order to deploy the product I would like to generate a .tar.gz ...
0
votes
2
answers
1k
views
How to use WIX V4 within CMAKE to build an installation package for Windows
I've tried to build an installation package with CMAKE + WIX. The latest version of WIX is v4.
Unfortunately, CPack fails as it is looking for a tool candle.exe which was dropped in WIX v4, as opposed ...
0
votes
1
answer
299
views
cpack -B build/ fails in parent directory
I want to make a Debian package using cpack.
I want to stay in the base_folder/. It contains a source folder, src/, and a build/ folder with temporary build files and build artifacts:
cd base_folder
...
0
votes
1
answer
273
views
CMake : how to have CPack put all component files into a single directory?
I'm making an NSIS installer for Windows. I want the DLLs to be in the same directory as the executable, so that Windows can find the DLLs.
Any clean solution ?
2
votes
1
answer
500
views
How to set directory permission bits in an RPM file built by CMake?
I'm creating an RPM file using CMake's RPM support. I have found that the permissions of directories created on installation of the RPM depend on the umask of the user who created the RPM. I have ...
0
votes
0
answers
224
views
cmake - cpack get different packages versions
I have project that contains subprojects.
The package directory contains CMakeLists.txt. Looks like this:
set(CPACK_GENERATOR "DEB")
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
set(...
2
votes
0
answers
769
views
Build only necessary targets for CPack
I have a C++ project with multiple targets. I redistribute the project via .deb packages which we build with CPack. Some of my CMakeLists.txt has include(CPack) line. It adds convenient package target ...
2
votes
1
answer
1k
views
CMake/CPack DEB - How to add a postinstall script to a single subdirectory?
I have a single project with several subdirectories. Each subdirectory must generate a deb package.
One of these packages must contain a post-installation script.
I just can't manage to find a way to ...
0
votes
0
answers
175
views
How to tell cmake to do not assume that a file is config when building deb packages?
When a file is installed in the /etc directory, cmake is automatically assuming that this file is a config one, but my package have scripts installed in /etc (e.g. a script installed in /etc/molly-...
3
votes
1
answer
439
views
How can I obtain CPack's default/fallback install prefix?
I am using CMake to build my project and now I want to use CPack to create Linux packages (starting with a DEB package). I have things set up such that I can generated a DEB package now, but there is ...
0
votes
0
answers
63
views
Installer Has Qt Deploy Files But Archive Does Not
I have a Qt application that runs the deploy command during installation and packaging. This works
correctly when generating a Wix installer. However, when trying to create an archive, e.g. 7z,
...
2
votes
0
answers
256
views
How to introduce a code patch into Wix directories.wxs file using cMake
I am using cMake with Wix to generate my installer executable. I have my executable ready, but I am unable to get a shortcut on the desktop and include my program in the Windows Start menu.
To achieve ...
-1
votes
1
answer
206
views
How do I change the formatting of the license agreement in a dmg file using CPack?
I am using CPack to create a dmg file for installation on MacOS. Because I have provided CPACK_RESOURCE_FILE_LICENSE the license file is included in the dmg file and a window is opened when trying to ...
0
votes
0
answers
335
views
cpack include folder for libraries
By using otool I can find and add all the library files to a "lib" folder for my project. I am having trouble making my unix file (c++) reference the folder.
Even though the file "...
0
votes
0
answers
60
views
CMake include shared library in compilation
I can compile my c++ application, but it depends on a shared library which can be installed through the packet manager. My problem is that the target device has no internet access. Therefore it can't ...
0
votes
1
answer
428
views
dpkg: why does instdir need admindir parameter on Mint 21
We create a Debian package of our application using CPack which can be installed on Linux Mint 19 like this:
$ sudo dpkg -i --instdir=/opt myapp.deb
With Linux Mint 21 the (installed) dependencies are ...