OSX 15.5 build issue with fix-rpaths.py #753
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I got the itch to play the old BOE scenarios a few weeks ago and went about trying to build the game.
I am trying to build cboe on OS X 15.5 and getting a framework error with fix_rpaths.py. I have installed boost and sfml via home-brew. Can you look to see if there is something obvious I am doing wrong here? I had to reverse this a bit from the osx 13 CI configuration:
scons build command:
This fails when packaging the app together:
I've attached the full build output to this issue. I'm not certain if there is a flag missing or something else going on.
Here is the full build output:
/opt/homebrew/Cellar/sfml@2/2.6.2_1/lib/libsfml-system.2.6.2.dylib -> build/Blades of Exile/Blades of Exile.app/Contents/Frameworks/libsfml-system.2.6.2.dylib
/opt/homebrew/Cellar/sfml@2/2.6.2_1/lib/libsfml-window.2.6.2.dylib -> build/Blades of Exile/Blades of Exile.app/Contents/Frameworks/libsfml-window.2.6.2.dylib
/opt/homebrew/Cellar/freetype/2.13.3/lib/libfreetype.6.dylib -> build/Blades of Exile/Blades of Exile.app/Contents/Frameworks/libfreetype.6.dylib
/opt/homebrew/Cellar/libpng/1.6.48/lib/libpng16.16.dylib -> build/Blades of Exile/Blades of Exile.app/Contents/Frameworks/libpng16.16.dylib
/opt/homebrew/Cellar/boost@1.85/1.85.0_3/lib/libboost_filesystem.dylib -> build/Blades of Exile/Blades of Exile.app/Contents/Frameworks/libboost_filesystem.dylib
/opt/homebrew/Cellar/sfml@2/2.6.2_1/lib/libsfml-audio.2.6.2.dylib -> build/Blades of Exile/Blades of Exile.app/Contents/Frameworks/libsfml-audio.2.6.2.dylib
/opt/homebrew/Cellar/libvorbis/1.3.7/lib/libvorbisfile.3.dylib -> build/Blades of Exile/Blades of Exile.app/Contents/Frameworks/libvorbisfile.3.dylib
/opt/homebrew/Cellar/libvorbis/1.3.7/lib/libvorbis.0.dylib -> build/Blades of Exile/Blades of Exile.app/Contents/Frameworks/libvorbis.0.dylib
/opt/homebrew/Cellar/libogg/1.3.5/lib/libogg.0.8.5.dylib -> build/Blades of Exile/Blades of Exile.app/Contents/Frameworks/libogg.0.8.5.dylib
/opt/homebrew/Cellar/libvorbis/1.3.7/lib/libvorbisenc.2.dylib -> build/Blades of Exile/Blades of Exile.app/Contents/Frameworks/libvorbisenc.2.dylib
/opt/homebrew/Cellar/flac/1.5.0/lib/libFLAC.14.dylib -> build/Blades of Exile/Blades of Exile.app/Contents/Frameworks/libFLAC.14.dylib
/opt/homebrew/Cellar/boost@1.85/1.85.0_3/lib/libboost_system.dylib -> build/Blades of Exile/Blades of Exile.app/Contents/Frameworks/libboost_system.dylib
Install file: "pkg/mac/BoE-Info.plist" as "build/Blades of Exile/Blades of Exile.app/Contents/Info.plist"
echo 'APPLblx!' > "build/Blades of Exile/Blades of Exile.app/Contents/PkgInfo"
Install file: "rsrc/icons/mac/BoE.icns" as "build/Blades of Exile/Blades of Exile.app/Contents/Resources/BoE.icns"
Install file: "rsrc/icons/mac/boegraphics.icns" as "build/Blades of Exile/Blades of Exile.app/Contents/Resources/boegraphics.icns"
Install file: "rsrc/icons/mac/boeresources.icns" as "build/Blades of Exile/Blades of Exile.app/Contents/Resources/boeresources.icns"
Install file: "rsrc/icons/mac/boesave.icns" as "build/Blades of Exile/Blades of Exile.app/Contents/Resources/boesave.icns"
Install file: "rsrc/icons/mac/boesounds.icns" as "build/Blades of Exile/Blades of Exile.app/Contents/Resources/boesounds.icns"
ibtool --compile build/obj/menus/game.nib rsrc/menus/game.xib
xcode-select: error: tool 'ibtool' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
scons: *** [build/obj/menus/game.nib] Error 1
scons: building terminated because of errors.
Traceback (most recent call last):
File "/Users/williamgibb/Documents/projects/cboe/deps/fix-rpaths/fix-rpaths.py", line 23, in
binaries_unfiltered = [app_binary] + [join(app_frameworks, library) for library in os.listdir(app_frameworks)]
~~~~~~~~~~^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'build/Blades of Exile/BoE Scenario Editor.app/Contents/Frameworks'
Traceback (most recent call last):
File "/Users/williamgibb/Documents/projects/cboe/deps/fix-rpaths/fix-rpaths.py", line 23, in
binaries_unfiltered = [app_binary] + [join(app_frameworks, library) for library in os.listdir(app_frameworks)]
~~~~~~~~~~^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'build/Blades of Exile/BoE Scenario Editor.app/Contents/Frameworks'
Traceback (most recent call last):
File "/Users/williamgibb/Documents/projects/cboe/deps/fix-rpaths/fix-rpaths.py", line 23, in
binaries_unfiltered = [app_binary] + [join(app_frameworks, library) for library in os.listdir(app_frameworks)]
~~~~~~~~~~^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'build/Blades of Exile/BoE Scenario Editor.app/Contents/Frameworks'
build/Blades of Exile/BoE Scenario Editor.app
build/Blades of Exile/BoE Scenario Editor.app
build/Blades of Exile/BoE Scenario Editor.app
The title and the issue body mention different OSX versions. Which is correct? Please fix the inaccurate one.
Also, please surround your full build log with
<details>...</details>tags so it doesn't take up so much space. Thanks.Apologies for the version confusion. I've corrected the title, added the output of
sw_versto the original comment, and wrapped the build log in a<details>tag.@williamgibb I'm around to help troubleshoot this if you're available today.
fix-rpaths.py is throwing the error here, but I think the problem is happening earlier in the build, based on that output.
The build is failing, and fix-rpaths is running after the build process and not finding the binaries it expects the build would have produced.
I'm fixing things now so that fix-rpaths won't run if the app doesn't exist.
To fix the underlying problem and get your build working:
EDIT: One more thing. If you're wanting to compile BoE with all the features of the Itch Edition release, you'll want to do this:
Hi!
I do have a full installation of Xcode available.
I can try the Xcode-selection fix & itch-edition this evening.
Using
sudo xcode-select -switch /Applications/Xcode.appallowed the game to build without error :)I am closing this issue since that resolved the build problem I encountered.