Skip to content

macOS Apple silicon build tips #2

Description

@WayneKeenan

Just a note to anyone who wants to build this on macOS on Apple Silicon.

Have Xcode installed and install at least these homebrew pre-requites (there might be more but I have a 'busy' homebrew env already)

brew install sdl2 python3

For building resid change the install location to where Apple Silicon homebrew installs lives:

./configure --enable-shared –prefix=/opt/homebrew 
# no need for sudo for make install 
# no need for ldconfig

Edit pysid/setup.py

-sdl_flags = os.popen('sdl-config --cflags').read().strip().split(' ')
-sdl_libs = os.popen('sdl-config --libs').read().strip().split(' ')
+sdl_flags = os.popen('sdl2-config --cflags').read().strip().split(' ')
+sdl_libs = os.popen('sdl2-config --libs').read().strip().split(' ')

No need for sudo when installing, i.e.

./setup.py install

hope that helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions