Skip to content

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

Open
@dariusf

Description

@dariusf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions