buserror / mii_emu

MII Apple //e Emulator for Linux
MIT License
135 stars 7 forks source link

NOTE: created an Arch Linux AUR package for mii_emu #18

Open ajacocks opened 4 months ago

ajacocks commented 4 months ago

I really enjoy this emulator, so I created a simple AUR package for Arch Linux for mii_emu:

If you have the time, please take a look at how I am building the package:

I specifically blocked the -flto=auto CFLAG. This is because it causes the package not to build, with the following error:

/tmp/ccg8rfRK.s: Assembler messages:
/tmp/ccg8rfRK.s:49: Error: file not found: roms/mii_rom_scc_3410065a.bin
/tmp/ccg8rfRK.s:68: Error: file not found: fonts/Charcoal_mui.ttf
/tmp/ccg8rfRK.s:87: Error: file not found: fonts/typicon.ttf
/tmp/ccg8rfRK.s:106: Error: file not found: fonts/Dingbat.ttf
/tmp/ccg8rfRK.s:125: Error: file not found: fonts/Geneva.ttf
make[1]: *** [/tmp/ccoLwk6e.mk:2: /tmp/ccyJ4d3L.ltrans0.ltrans.o] Error 1
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [Makefile:146: build-x86_64-pc-linux-gnu/bin/mii_emu_gl] Error 1

I blocked -fno-omit-frame-pointer because you disabled it in your Makefile. Not sure why, but I assumed that you had a reason.

Both of these are default CFLAGS for packages built on Arch Linux.

With these minor build changes, everything seems to work fine.

buserror commented 4 months ago

Thanks. I think the LTO problem is due to incbin.h which add linker sections with binary bits. Super handy, but this seem to be problematic -- so might convert all the binaries to .h files with xxd and use that for the next version...

no-omit-frame-pointer helps for debugging and profiling. Otherwise you sometimes have no meaningful stack trace. We don't need frame pointers for normal builds, but I sometimes do! :-)

buserror commented 3 months ago

Next version has removed the use of incbin.h, so this should "soon" be resolved.

ajacocks commented 3 months ago

Excellent. I will update the build when you release it.

Off topic, I'd love to see Ample (MAME front end for Apple machines) with your UI. I've started looking at how hard that would be.

On Tue, Jul 2, 2024 at 12:30 PM Michel Pollet @.***> wrote:

Next version has removed the use of incbin.h, so this should "soon" be resolved.

— Reply to this email directly, view it on GitHub https://github.com/buserror/mii_emu/issues/18#issuecomment-2203778214, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFLVO4SIJULHLSF4ZJHEMHTZKLIQVAVCNFSM6AAAAABH5GFFI2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBTG43TQMRRGQ . You are receiving this because you authored the thread.Message ID: @.***>

buserror commented 3 months ago

If you have any ideas on what to add for libmui to make it better for the job, feel free to add issues on that project as well!

buserror commented 3 weeks ago

I've now pushed v1.95 that removed incbin.h from both mii and libmui, so that problem should be gone...?