-
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
bugSomething isn't workingSomething isn't workingdoneThe issue has been fixed and all related changes have been committedThe issue has been fixed and all related changes have been committed
Milestone
Description
OF projects
I'm finally writing Chalet templates to build OF projects (in a fork) and most things are working great
I'm still using libopenframeworks.a generated by make as an intermediate step.
I'm having issues in
chalet bundlewhile trying to make a macOS app
this is one simple example without any addons or dependencies
https://github.com/dimitre/openFrameworks/blob/ofworks/examples/3d/3DPrimitivesExample/chalet.yaml
and the output of
chalet bundle
> Reading Build File [chalet.yaml] ... done (7ms)
/usr/bin/xcode-select -p
> Configuring build ... done (4ms)
> Objective-C++ Compiler: Apple Clang version 17.0.0
> Target Architecture: arm64-apple-darwin
> Strategy: Ninja
> Configuration: Release
▼ Build: 3DPrimitivesExample
/opt/homebrew/bin/ninja -v -j 8 -k 1 -f bin/build/build/.cache/874e6b90c8e93890/build.ninja -d keepdepfile build_148a25f6a400bab0
[1/3] "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" -MT bin/build/build/arm64-apple-darwin_Release/obj.3DPrimitivesExample/src/main.cpp.o -MMD -MP -MF "bin/build/build/arm64-apple-darwin_Release/obj.3DPrimitivesExample/src/main.cpp.d" -x objective-c++ -O2 -std=c++20 -Wall -finput-charset=UTF-8 -fexec-charset=UTF-8 -stdlib=libc++ -fobjc-arc -fdiagnostics-color=always -target arm64-apple-darwin -mmacosx-version-min=15.5 -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk" -D__MACOSX_CORE__ -I"../../../libs/openFrameworks/3d" -I"../../../libs/openFrameworks/video" -I"../../../libs/openFrameworks/types" -I"../../../libs/openFrameworks/app" -I"../../../libs/openFrameworks/utils" -I"../../../libs/openFrameworks/math" -I"../../../libs/openFrameworks/gl" -I"../../../libs/openFrameworks/gl/shaders" -I"../../../libs/openFrameworks/communication" -I"../../../libs/openFrameworks/events" -I"../../../libs/openFrameworks/graphics" -I"../../../libs/openFrameworks/sound" -I"../../../libs/openFrameworks/.cache" -I"../../../libs/openFrameworks/.cache/clangd" -I"../../../libs/openFrameworks/.cache/clangd/index" -I"../../../libs/macos/include" -I"../../../libs/openFrameworks" -I"src" -I"/usr/include" -o bin/build/build/arm64-apple-darwin_Release/obj.3DPrimitivesExample/src/main.cpp.o -c src/main.cpp
[2/3] "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" -MT bin/build/build/arm64-apple-darwin_Release/obj.3DPrimitivesExample/src/ofApp.cpp.o -MMD -MP -MF "bin/build/build/arm64-apple-darwin_Release/obj.3DPrimitivesExample/src/ofApp.cpp.d" -x objective-c++ -O2 -std=c++20 -Wall -finput-charset=UTF-8 -fexec-charset=UTF-8 -stdlib=libc++ -fobjc-arc -fdiagnostics-color=always -target arm64-apple-darwin -mmacosx-version-min=15.5 -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk" -D__MACOSX_CORE__ -I"../../../libs/openFrameworks/3d" -I"../../../libs/openFrameworks/video" -I"../../../libs/openFrameworks/types" -I"../../../libs/openFrameworks/app" -I"../../../libs/openFrameworks/utils" -I"../../../libs/openFrameworks/math" -I"../../../libs/openFrameworks/gl" -I"../../../libs/openFrameworks/gl/shaders" -I"../../../libs/openFrameworks/communication" -I"../../../libs/openFrameworks/events" -I"../../../libs/openFrameworks/graphics" -I"../../../libs/openFrameworks/sound" -I"../../../libs/openFrameworks/.cache" -I"../../../libs/openFrameworks/.cache/clangd" -I"../../../libs/openFrameworks/.cache/clangd/index" -I"../../../libs/macos/include" -I"../../../libs/openFrameworks" -I"src" -I"/usr/include" -o bin/build/build/arm64-apple-darwin_Release/obj.3DPrimitivesExample/src/ofApp.cpp.o -c src/ofApp.cpp
[3/3] "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk" -target arm64-apple-darwin -mmacosx-version-min=15.5 -F"/Library/Frameworks" -F"/System/Library/Frameworks" -framework Accelerate -framework AGL -framework ApplicationServices -framework AVFoundation -framework IOKit -framework Cocoa -framework CoreAudio -framework CoreMedia -framework OpenGL -framework QuartzCore -Wl,-install_name,@rpath/3DPrimitivesExample -Wl,-rpath,@executable_path/. -L"/usr/lib" -L"bin/build/build/arm64-apple-darwin_Release" -o bin/build/build/arm64-apple-darwin_Release/3DPrimitivesExample bin/build/build/arm64-apple-darwin_Release/obj.3DPrimitivesExample/src/main.cpp.o bin/build/build/arm64-apple-darwin_Release/obj.3DPrimitivesExample/src/ofApp.cpp.o "../../../libs/openFrameworksCompiled/lib/macos/libopenFrameworks.a" "../../../libs/macos/lib/libglew.a" "../../../libs/macos/lib/libglfw3.a" "../../../libs/macos/lib/libtess2.a" "../../../libs/macos/lib/libFreeImage.a" "../../../libs/macos/lib/libpng16.a" "../../../libs/macos/lib/libglm.a" "../../../libs/macos/lib/libfreetype.a" "../../../libs/macos/lib/libbrotlidec.a" "../../../libs/macos/lib/libbrotlicommon.a" "../../../libs/macos/lib/liburiparser.a" "../../../libs/macos/lib/libpugixml.a" "../../../libs/macos/lib/librtaudio.a"
3DPrimitivesExample: 1.485s
▼ Bundle: 3DPrimitivesExample.app
remove recursively: dist
make directory: dist
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool -L bin/build/build/arm64-apple-darwin_Release/3DPrimitivesExample
make directory: dist/3DPrimitivesExample.app/Contents
make directory: dist/3DPrimitivesExample.app/Contents/MacOS
make directory: dist/3DPrimitivesExample.app/Contents/Frameworks
make directory: dist/3DPrimitivesExample.app/Contents/Resources
executable search: /bin/data
copy to path: bin/build/build/arm64-apple-darwin_Release/3DPrimitivesExample -> dist/3DPrimitivesExample.app/Contents/MacOS
set executable permission: dist/3DPrimitivesExample.app/Contents/MacOS/3DPrimitivesExample
make directory: bin/build/build/arm64-apple-darwin_Release/dist.3DPrimitivesExample
copy to path: ../../../libs/openFrameworksCompiled/project/macos/of.icns -> dist/3DPrimitivesExample.app/Contents/Resources
/usr/bin/plutil -convert binary1 dist/3DPrimitivesExample.app/Contents/Info.plist.json -o dist/3DPrimitivesExample.app/Contents/Info.plist
remove path: dist/3DPrimitivesExample.app/Contents/Info.plist.json
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool -add_rpath @executable_path/../MacOS dist/3DPrimitivesExample.app/Contents/MacOS/3DPrimitivesExample
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool -add_rpath @executable_path/../Frameworks dist/3DPrimitivesExample.app/Contents/MacOS/3DPrimitivesExample
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool -add_rpath @executable_path/../Resources dist/3DPrimitivesExample.app/Contents/MacOS/3DPrimitivesExample
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: changing install names or rpaths can't be redone for: dist/3DPrimitivesExample.app/Contents/MacOS/3DPrimitivesExample (for architecture arm64) because larger updated load commands do not fit (the program must be relinked, and you may need to use -headerpad or -headerpad_max_install_names)
ERROR: The bundler ran into a problem on the distribution target: 3DPrimitivesExample
Originally posted by @dimitre in #414 (comment)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdoneThe issue has been fixed and all related changes have been committedThe issue has been fixed and all related changes have been committed
Type
Projects
Status
Done