Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS build issue - Sonic Pi.app/Contents/Info.plist: Permission denied #3257

Open
dariusf opened this issue Jan 9, 2023 · 1 comment · May be fixed by #3258
Open

macOS build issue - Sonic Pi.app/Contents/Info.plist: Permission denied #3257

dariusf opened this issue Jan 9, 2023 · 1 comment · May be fixed by #3258

Comments

@dariusf
Copy link

dariusf commented Jan 9, 2023

I'm following the macOS build instructions and have installed all the dependencies. qt 6.4.2, cmake 3.25.1, elixir 1.14.2. macOS 12.5.1, Intel.

When building both dev and stable branches, ./mac-build-gui.sh fails with these errors when linking the final executable:

[ 84%] Linking CXX executable "Sonic Pi.app/Contents/MacOS/Sonic Pi"
ld: warning: object file (../../api/libsonic-pi-api.a(sonicpi_api.cpp.o)) was built for newer macOS version (12.5) than being linked (10.15)
...
ERROR: Cannot resolve rpath "@rpath/QtGui.framework/Versions/A/QtGui"
ERROR:  using QList("/Users/darius/sonicpi/sonic-pi/app/build/gui/qt/lib")
...
Sonic Pi.app/Contents/Info.plist: Permission denied
gmake[2]: *** [gui/qt/CMakeFiles/sonic-pi.dir/build.make:3994: gui/qt/Sonic Pi.app/Contents/MacOS/Sonic Pi] Error 1
gmake[2]: *** Deleting file 'gui/qt/Sonic Pi.app/Contents/MacOS/Sonic Pi'
gmake[1]: *** [CMakeFiles/Makefile2:419: gui/qt/CMakeFiles/sonic-pi.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

Would appreciate any tips!

Edit: the ERRORs were a red herring. Updated title.

@dariusf dariusf changed the title macOS build issue - ERROR: Cannot resolve rpath "@rpath/QtGui.framework/Versions/A/QtGui" macOS build issue - Sonic Pi.app/Contents/Info.plist: Permission denied Jan 9, 2023
@dariusf dariusf linked a pull request Jan 9, 2023 that will close this issue
@samaaron
Copy link
Collaborator

Weird - I haven't built on macOS in a while (I've been primarily developing on Windows), so I'll look into this next time I do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants