eclipse-iceoryx / iceoryx

Eclipse iceoryx™ - true zero-copy inter-process-communication
https://iceoryx.io
Apache License 2.0
1.65k stars 384 forks source link

The issue with generating deb packages #2354

Closed Heyangq closed 5 days ago

Heyangq commented 6 days ago

Required information

Operating system: Ubuntu 20.04 LTS

Compiler version: GCC 9.4.0

Eclipse iceoryx version: main branch

Observed result or behaviour: Unable to modify the installation path of the deb package

Expected result or behaviour: I want to change the installation path of the deb package, but the deb package I generated has always been in"/usr", even though I set INSTALL-PREFIX

Heyangq commented 5 days ago

I found that CPack uses the default prefix, and using CMAKE-INSTALL-PREFIX does not work. We need to modify the default prefix of PACKING in package.cmake As follows:

cmake_minimum_required(VERSION 3.16) set(IOX_VERSION_STRING "2.95.2")

project(iceoryx_package VERSION ${IOX_VERSION_STRING})

set(CPACK_GENERATOR "DEB") set(CPACK_PACKAGE_NAME "iceoryx-${iceoryx_package_VERSION}") set(CPACK_PACKAGE_FILENAME "iceoryx${iceoryx_packageVERSION}${CMAKE_CXX_COMPILER_ID}-${CMAKE_CXX_COMPILER_VERSION}") set(CPACK_PACKAGE_CONTACT "iceoryx-oss-support@apex.ai") set(CPACK_DEBIAN_PACKAGE_DEPENDS "libacl1-dev,libncurses5-dev") set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "iceoryx inter-process-communication (IPC) middleware") set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/eclipse-iceoryx/iceoryx") set(CPACK_DEBIAN_PACKAGE_MAINTAINER "https://projects.eclipse.org/projects/technology.iceoryx/who") set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/../LICENSE") _set(CPACK_PACKAGING_INSTALLPREFIX "/usr/local") include(CPack)

Heyangq commented 5 days ago

I will close this issue. I am very sorry

elBoberido commented 5 days ago

@Heyangq no problem :)