08 March 2021, 01:43 | #1 |
Registered User
Join Date: Sep 2018
Location: California
Posts: 322
|
Compiling FS-UAE for Apple Silicon
Hi Frode,
I'm trying to compile FS-UAE following the instructions here. My architecture is Apple Silicon. After installing the dependencies with brew, I received errors because the SDL2 libs are in a different place. What I had to do to circumvent this was do the following for the `./configure` portion: Code:
SDL2_CFLAGS=/opt/homebrew/include/SDL2 SDL2_LIBS=/opt/homebrew/lib ./configure Code:
ld: can't map file, errno=22 file '/opt/homebrew/include/SDL2' for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [gen/genlinetoscr] Error 1 Last edited by FrodeSolheim; 08 March 2021 at 08:48. Reason: Changed title |
08 March 2021, 08:46 | #2 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
/opt/homebrew/include/SDL2is not a valid compiler argument (and neither is /opt/homebrew/liba valid link argument). If you want do it this way, you need to use SDL2_CFLAGS="-I/opt/homebrew/include/SDL2"(etc). However, this is not the best way to do that. Instead, you can probably do Code:
export PKG_CONFIG_PATH=/opt/homebrew/lib/pkgconfig (Perhaps also try referring to the Homebrew docs for other tips about how to use Homebrew libraries when compiling other software? I'm assuming that exists...) |
08 March 2021, 09:26 | #3 |
Registered User
Join Date: Sep 2018
Location: California
Posts: 322
|
There's something wonky with the Apple Silicon implementation of brew and clearly there need to be some kinks worked out. Eventually I did get it to build. I also did a brief test to see if it would launch and that was successful. I didn't do any real end to end tests or anything
I'm currently in the process of trying to get fs-uae-launcher to build - it's worth mentioning I can't get pyqt5 to install via pip3 and had to use brew to install it. Also, in spite of having installed pillow, I had to pip3 install image to get fs-uae-launcher to compile. Finally, I'm having problems launching fs-uae from fs-uae-launcher. I'm in ~/Development, and I have ~/Development/fs-uae/ as well as ~/Development/fs-uae-launcher/. When I'm in ~/Development and launch fs-uae-launcher by typing `fs-uae-launcher/fs-uae-launcher` it does launch, but then when I click "Start" to launch an instance of fs-uae, I get the following error: Task: RunnerTask Error: Exception Message: Could not install file 891E9A54.rom: Did not find file with SHA-1 checksum 891e9a547772fe0c6c19b610baf8bc4ea7fcb785 The log file may contain more details. I haven't had much of a chance to delve into log files, it's after midnight here and I need to be up in less than eight hours. But if you have any pointers, let me know |
08 March 2021, 20:16 | #4 | ||
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Quote:
Quote:
|
||
08 March 2021, 20:50 | #5 |
Registered User
Join Date: Mar 2021
Location: St. Augustine
Posts: 4
|
I managed to compile FS-UAE with the SDL workarounds, but when I compile FS-UAE Launcher I can't get past a "mach-o but wrong architecture" error. My installed Python is 3.8.5 despite installing 3.9.1, maybe that has something to do with it.
|
08 March 2021, 21:50 | #6 | |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Quote:
(You need to uninstall 3.8.5, or manipulate the PATH, or invoke 3.9.1 by absolute path, or something similar to ensure you're running the version you're interested in running...) |
|
09 March 2021, 20:09 | #7 | |
Registered User
Join Date: Sep 2018
Location: California
Posts: 322
|
Quote:
Where shall I put the kickstart to at least work around this quickly? I haven't had much time to iterate here sadly. One interesting point is that building the application package will be different; everything now needs to be signed by the publisher so there's no running homebrew applications or independently created applications via app icons unless you change security settings from the Apple equivalent of a BIOS menu :P For better or worse this is now the world we're in so I guess we'll have to figure out how to work with this. |
|
12 March 2021, 12:10 | #8 |
Registered User
Join Date: Apr 2013
Location: UK
Posts: 109
|
|
12 March 2021, 17:37 | #9 |
Registered User
Join Date: Sep 2018
Location: California
Posts: 322
|
I’m happy to do so Sunday evening (USA California time) as I’m currently on a little vacation and not near my computer
I can share fs-uae as well as fs-uae-launcher, however, I did not get the full app package to build so these will have to be launched from CLI. |
12 March 2021, 19:23 | #10 |
Registered User
Join Date: Apr 2013
Location: UK
Posts: 109
|
Brilliant!
|
15 March 2021, 16:57 | #11 |
Registered User
Join Date: Sep 2018
Location: California
Posts: 322
|
|
26 March 2021, 23:06 | #12 |
Registered User
Join Date: Sep 2018
Location: California
Posts: 322
|
@Jason_H - did you test this out?
|
27 March 2021, 18:03 | #13 |
Registered User
Join Date: Apr 2013
Location: UK
Posts: 109
|
|
15 April 2021, 20:37 | #14 |
Registered User
Join Date: Apr 2013
Location: UK
Posts: 109
|
|
16 April 2021, 17:44 | #15 |
Registered User
Join Date: Sep 2018
Location: California
Posts: 322
|
Oh, nice! I haven't touched it in a while. I'll mess with it more this weekend.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FS-UAE Joystick Support (Apple Silicon) | Jason H | support.FS-UAE | 10 | 18 May 2021 22:15 |
Silicon Dreams | Kodoichi | request.Old Rare Games | 8 | 12 March 2015 04:27 |
Silicon Dreams | Si-Pie | request.Old Rare Games | 3 | 11 September 2008 00:36 |
Silicon Dreams anywhere? | rockersuke | request.Old Rare Games | 0 | 18 February 2007 20:13 |
|
|