-
Notifications
You must be signed in to change notification settings - Fork 6
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
Apple M1 support #17
Comments
This issue is definitely related to the installation of pygame on Apple-designed processors. IA Launcher uses pygame's font module, which will throw this error if there is no binary compiled for your architecture. Until this module has been successfully ported to the new architecture, the only way to run IA Launcher is by using Rosetta. You can check whether your installation of pygame has a working font module with the following command:
|
A small update to this Apple M1 issue, after discovering at pygame that a particular version does indeed install on M1 Macs successfully. Now the font module seems to be working:
But
|
Hi there, and thanks for the update! Very interesting that you got pygame somewhat working using the particular version The pygame error is technically correct, all included files are PNG files and not BMP files. I found a pygame bug report which seems to address this particular issue: pygame/pygame#2458 Maybe you could try installing brew install libpng libjpeg
pip install pygame --no-binary pygame Someone in the comment thread of the issue I linked to above seemed to get a fork of pygame working on M1 with the following commands: brew install sdl2 sdl2_mixer sdl2_gfx sdl2_image sdl2_net sdl2_ttf
brew reinstall freetype pkg-config
# git clone https://github.com/pygame/pygame.git
git clone https://github.com/nelsonlove/pygame.git
cd pygame
python setup.py -config -auto -sdl2
python setup.py bdist_wheel
python setup.py install --record installed-files.txt Personally, I don't see why building the original pygame from source on an M1 wouldn't work, but then again I've never tried it. |
Finally, a little assurance: besides DOSBox, the only dependency of IA Launcher is pygame, so if you somehow get that to work on M1 than IA Launcher should work as well. Keep us updated! |
Can confirm I got
Using So for me the winning recipe was:
|
Awesome! You did a great job figuring all of this out! I'm leaving this issue open until Apple M1 supports regular pygame, but I'll make sure to direct any future inquiries to your solution. |
A little unsure if this is really ialauncher's fault or something else related to the fact that Homebrew appears to have installed a bit newer version 3.9 of
python3
under its folder in/opt/homebrew
.Previously I had
ialauncher
at~/Library/Python/3.8/bin/ialauncher
but after Homebrew installation as I tried to update it usingpip3 install --upgrade ialauncher
it went under /opt instead, and no longer starts due to some pygame/font.py issue below.Maybe also worth noting, previously (due to issues getting Apple Silicon version of pygame) I used ialauncher via Rosetta x86 emulation and the previous version still runs just fine using Rosetta from `~/Library/Python/3.8/bin/ialauncher' but I'm no longer able to update/remove it using pip3. Now trying to run native Apple Silicon version of everything.
The text was updated successfully, but these errors were encountered: