Rockbox General > Rockbox General Discussion

Rockbox simulator binaries for MacOS (ARM64)

<< < (3/5) > >>

rockbox_dev123:
Gerrit shows that only these changes remain unmerged or unresolved:

* 5278 Make simulator compile on MacOS
* 5279 Fix simulator crashing on MacOS
* 5287 SDL2: Fix deadlock when changing sample rate
I'll try and get round to merging these locally and attempting to compile my own simulator builds soon and report back with a how-to.

Dream1iner:
Any chance to update rockbox version?
Thanks in advance.

rockbox_dev123:
Now that all of these patches have been merged I would appreciate any advice you can offer me on building the simulator.

If I do ../tools/configure --target=200 --type=n then the build fails because objcopy is missing. If I then install binutils with brew and add /opt/homebrew/Cellar/binutils/2.43.1/bin to my $PATH then there are multiple linker fails along the lines of "archive member '/' not a mach-o file in '/rockbox/build/lib/libtlsf.a';".

If I do ../tools/configure --target=200 --type=s then I get errors that indicate I am missing the SDL development packages e.g. "error: 'SDL_BUTTON_WHEELDOWN' undeclared (first use in this function)" etc.

I'm using rockbox as a means to slowly teach myself more about C.

chris_s:
For the SDL app (target 200) you need llvm-objcopy on the Mac (using type=n), i.e. install llvm using brew, then symlink the installed llvm-objcopy to /usr/local/bin/objcopy.

After that it looks like you still have to comment out the debugf line in tree_voice_cb (apps/tree.c) - not sure right now what the deal is there, that seems... new. Disregard - my mistake

SDL_BUTTON_WHEELDOWN doesn't exist anymore in SDL2, so that may be a remnant that has been overlooked so far and still needs to be removed.... The SDL app, I don't think is supposed to be compiled as a simulator though (doesn't work on Linux either).

rockbox_dev123:
Thanks! It has been a very long time since I last compiled a simulator on Linux so I had forgotten how the simulators are intended to be used. There is a simulator for each real hardware target. With the latest master I was able to do ../tools/configure --target=ipod6g --type=s and compile successfully on macOS M1!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version