348 questions
0
votes
0
answers
18
views
Issue with fixup_bundle() removing RPATH in CMake Build
I’m encountering a problem with fixup_bundle() in my CMake-based build process. My executable, app, links to a shared library bibliA, which itself depends on another shared library, bibliPrivate.
When ...
0
votes
0
answers
17
views
Launching app from postinst installing .rpm(making by cpack)
I want to start my new installed from .rpm app after installing my rpm-package.
I have a script that works in console -
login with root and run it - it launches my app by active user and I can close ...
0
votes
0
answers
72
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
131
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
42
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
87
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
42
views
Allow downgrades from MSI versions from CPack and Wix within CMake
I am creating my own piece of software that aims to automatically upgrade and downgrade Windows software via MSI files.
Being at the testing part of my app I needed something to generate dumb msi ...
2
votes
1
answer
41
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
40
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
39
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
44
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
51
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 ...
1
vote
0
answers
53
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
0
answers
33
views
Is it possible to prevent CMake from installing the cpack files in the installation subdirectory?
I want to have a set of files installed to a specific subdirectory, build/my_project, when I run cmake --install . and the same files included in two RPMs when I run cpack .. Unfortunately, cmake is ...
0
votes
0
answers
56
views
create an uninstaller for CPack package on MacOS
My requirement is to create an installer for MacOS that includes an uninstaller. I am aware that a bundle generator can install apps into the Application folder and include an uninstaller, but I need ...
0
votes
0
answers
23
views
Remove extra files added after installation when uninstall with a Wix package generated by cpack
I made an installer with CPack and Wix for my software, but I got a problem. My software will download some extra font files to the install directory, after installation. Now I want to remove them ...
0
votes
0
answers
79
views
How can I allow my Wix package generated by CPack to upgrade the installed software which is an older version?
I'm trying to generate a Wix package with CPack in order to make it easier for others to install the software I made. Here is my CMakeLists:
cmake_minimum_required(VERSION 3.10)
project(figlet4win ...
0
votes
1
answer
450
views
How to define the target (apt install -t") of a built package to distinguish when with the same name
I am working on a cmake project where we create a .deb package with cpack containing a C++ library. The goal is to have a pipeline running at the main branch which generates the package and places it ...
0
votes
0
answers
87
views
MariaDB 10.9.* for Fedora 39 - CPack Error
I have updated my linux-server to Fedora 39 and my MariaDB doesn't work now, because old files have been generated for MariaDB 10.9, but after update it auto-install MariaDB 10.5.
What I can do in ...
0
votes
0
answers
36
views
How to set environment before running custom action?
I'm using WIX toolset to build up Windows installer package. The package includes a main software, a tool executable and some 3rd party dependencies.
For some reason I wish to run the tool executable ...
0
votes
0
answers
24
views
Run executable during setup process with 3rd party dependencies
I'm using WIX toolset to build up Windows installer package. The package includes a main software, a tool executable and some 3rd party dependencies.
For some reason I wish to run this tool executable ...
0
votes
2
answers
627
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
169
views
Using a NuGet Package Created with CPack in Visual Studio
I am creating a NuGet package of a C++ CMake project using CPack.
cmake -S . -B build
cmake --build build --config Release
cd build
cpack -G NuGet -C 'Release'
I have defined several cpack variables, ...
0
votes
1
answer
158
views
cpack -B build/ fails in parent directory
I want to make a Debian package using cpack.
I want to stay in base_folder/. It contains a source folder src/ and a build/ folder with temporary build files and build artifacts:
base_folder$ ls
build ...
0
votes
0
answers
89
views
How to enable language selection display using cpack, cmake and NSIS?
I am using cpack, cmake and NSIS to create an installer for my application. The result does not display the language selection options as default and there is no cpack nsis flag to enable it (https://...
0
votes
1
answer
117
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 ?
1
vote
0
answers
279
views
Install 3rd party macOS installer package
I am using CPack module in CMake to generate the product installer on macOS. I am trying to install a 3rd party macOS installer package as a prerequisite to our product installer. I tried -
...
2
votes
1
answer
360
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
1
answer
225
views
Cpack + NSIS - Not using custom NSIS configuration template
I'm CPack to build a package for a Software and I'd like to use a custom template (a NSIS.template.in to replace CPack's default). Still Cpack is not using my template. I'm Using Clion bundled cmake (...
0
votes
0
answers
173
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(...
0
votes
1
answer
263
views
cmake - cpack component install deb is empty
I want to get deb packages of specific components. When I'm using specific toolchain file IMX6 or IMX8 variables are set. Output when using IMX6:
Run CPack packaging tool...
CPack: Create package ...
2
votes
0
answers
522
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 ...
0
votes
1
answer
255
views
Is it possible to use the CPack DEB generator on Windows to create deb packages?
The documentation for CPack DEB generator says it's Unix only. At the same time there's "Building Debian packages on Windows" paragraph.
I use Windows on my development machine and cross-...
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 ...
2
votes
1
answer
422
views
Packaging exe with a dll not linked in CMake
I'm still inexperienced with CMake/CPack so hopefully I can make this make sense.
In my CMake project I'm loading a .dll file using LoadLibrary in the C++. I have no control over the .dll and it doesn'...
0
votes
0
answers
148
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-...
0
votes
1
answer
279
views
Can CMake be used to edit the PATH environment variable as part of project installations?
Is there some way to get CMake to edit the user's PATH environment variable to include the built binary(s) when doing an install
And how about for CPack outputs?
2
votes
1
answer
303
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 ...
-1
votes
1
answer
201
views
CPack to create Nuget package
CPack: Create package
CPack Verbose: Package files to: /home/testsystem/<path to build>/build/_CPack_Packages/Linux/NuGet/MyModule.Linux.x86_64.nupkg
Attempting to build package from 'CPack....
0
votes
0
answers
55
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,
...
1
vote
1
answer
412
views
How to get current user environment variable while installing a cMake + WIX installer
I'm using cMake + Wix to generate my installer. My program must be installed in C:\Users\UserName\MyProgram of any computer.
The problem is that when I generate an installer with cPack, I am setting ...
2
votes
0
answers
184
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 ...
0
votes
0
answers
144
views
Cmake how to manage two package include same sub-project
I wrote an shared library project. The CMakeLists.txt in this project:
install(TARGETS ${library_name}
LIBRARY DESTINATION "lib"
)
install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/lib/libxxx....
-1
votes
1
answer
166
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
1
answer
517
views
using cmake to install files to /usr/sbin
I'm having some issues installing a script into /usr/sbin from a cmake script. In my packaging.cmake I have
install(FILES "${CMAKE_SOURCE_DIR}/kpcmdctrl" DESTINATION /usr/sbin COMPONENT ...
0
votes
0
answers
274
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 "...
1
vote
1
answer
488
views
CPack CPACK_RPM_PACKAGE_RELEASE cannot be set to 0
I need to create a RPM of my software expecting the following output: <my_sw_name>-<version>-<release>.rpm.
The default for <release> shall be 0.
In my CMakeLists.txt I am ...
0
votes
0
answers
54
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
902
views
Include project's target libraries in CPack DEB package
I'm trying to use CPack to create a deb package from my c++ project.
I managed to generate and install the package, however, under /opt/my_project/lib, I cannot see the libraries my project depends on ...
0
votes
1
answer
324
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 ...