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 Apple silicon build tips #2

Open
WayneKeenan opened this issue Nov 29, 2023 · 0 comments
Open

macOS Apple silicon build tips #2

WayneKeenan opened this issue Nov 29, 2023 · 0 comments

Comments

@WayneKeenan
Copy link

WayneKeenan commented Nov 29, 2023

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.

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

No branches or pull requests

1 participant