lethal-guitar / RigelEngine

A modern re-implementation of the classic DOS game Duke Nukem II
GNU General Public License v2.0
911 stars 60 forks source link

Mac bundling on CI is broken #916

Open lethal-guitar opened 11 months ago

lethal-guitar commented 11 months ago

Code that used to work has stopped working with the following error (also see CI log):

CPack: Create package using DragNDrop
CPack: Install projects
CPack: - Run preinstall target for: RigelEngine
CPack: - Install project: RigelEngine []
CPack: -   Install component: bin
CMake Error at /usr/local/Cellar/cmake/3.27.3/share/cmake/Modules/BundleUtilities.cmake:4[5](https://github.com/lethal-guitar/RigelEngine/actions/runs/6042667380/job/16407652544#step:6:6)8 (message):
  otool -l failed: 1

  error:
  /Applications/Xcode_13.2.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool-classic:
  can't open file: @loader_path/../../../../opt/lame/lib/libmp3lame.0.dylib
  (No such file or directory)

Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.27.3/share/cmake/Modules/BundleUtilities.cmake:527 (get_item_rpaths)
  /usr/local/Cellar/cmake/3.27.3/share/cmake/Modules/BundleUtilities.cmake:[6](https://github.com/lethal-guitar/RigelEngine/actions/runs/6042667380/job/16407652544#step:6:7)49 (set_bundle_key_values)
  /usr/local/Cellar/cmake/3.2[7](https://github.com/lethal-guitar/RigelEngine/actions/runs/6042667380/job/16407652544#step:6:8).3/share/cmake/Modules/BundleUtilities.cmake:[9](https://github.com/lethal-guitar/RigelEngine/actions/runs/6042667380/job/16407652544#step:6:10)33 (get_bundle_keys)
  /Users/runner/work/RigelEngine/RigelEngine/build/src/cmake_install.cmake:47 (fixup_bundle)
  /Users/runner/work/RigelEngine/RigelEngine/build/cmake_install.cmake:43 (include)

CPack Error: Error when generating package: RigelEngine