Open dariusf opened 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:
./mac-build-gui.sh
[ 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.
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.
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:Would appreciate any tips!
Edit: the ERRORs were a red herring. Updated title.