sonic-pi-net / sonic-pi

Code. Music. Live.
https://sonic-pi.net
Other
10.75k stars 918 forks source link

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

Open dariusf opened 1 year ago

dariusf commented 1 year ago

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.

samaaron commented 1 year ago

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.