qemu-ios icon indicating copy to clipboard operation
qemu-ios copied to clipboard

Could someone provide prebuilt Linux binaries for both 1g and 2g?

Open TibixDev opened this issue 1 year ago • 5 comments

Hey, I've been trying to get this running under Linux, after digging around in some threads, applying dozens of compiler flags, and even manually patching the code (https://patchew.org/QEMU/[email protected]/) I cannot get it to compile.

For example this is the most recent one, but there were at least 10 different ones before:

  GIT     ui/keycodemapdb tests/fp/berkeley-testfloat-3 tests/fp/berkeley-softfloat-3 dtc
[1/878] Generating pc-bios/keymaps/ar with a custom command
FAILED: pc-bios/keymaps/ar 
/usr/bin/qemu-keymap -f pc-bios/keymaps/ar -l ar
xkbcommon: ERROR: [XKB-338] Couldn't find file "symbols/ar" in include paths
xkbcommon: ERROR: [XKB-338] 1 include paths searched:
xkbcommon: ERROR: [XKB-338]     /usr/share/X11/xkb
xkbcommon: ERROR: [XKB-338] 3 include paths could not be added:
xkbcommon: ERROR: [XKB-338]     /home/tibix/.config/xkb
xkbcommon: ERROR: [XKB-338]     /home/tibix/.xkb
xkbcommon: ERROR: [XKB-338]     /etc/xkb
xkbcommon: ERROR: [XKB-769] Abandoning symbols file "(unnamed)"
xkbcommon: ERROR: Failed to compile xkb_symbols
xkbcommon: ERROR: Failed to compile keymap
[2/878] Generating pc-bios/keymaps/fi with a custom command
[3/878] Generating pc-bios/keymaps/fo with a custom command
[4/878] Generating qemu-version.h with a custom command (wrapped by meson to capture output)
ninja: build stopped: subcommand failed.
make: *** [Makefile:163: run-ninja] Error 1

So it'd be much appreciated, preferably with the patches applied that prevent crashing. :)

TibixDev avatar Nov 24 '23 21:11 TibixDev

I feel like if you are having this much trouble compiling this, a prebuilt binary won't do much good.

What I did was compile it on Ubuntu 23.10 (for the 2G) (Arch Linux works too, likely any post-2022 distro does too) with the configure command of "../configure --enable-sdl --disable-cocoa --target-list=arm-softmmu --disable-capstone --disable-slirp --extra-cflags=-I/usr/include/openssl --extra-ldflags='-L/usr/lib -lcrypto' --enable-pie --disable-werror" from inside the "build" folder. Then you can just make -j(however many cores you have) like normal. I raised an issue about this here: https://github.com/devos50/qemu-ios/issues/71

LagLifeYT avatar Nov 24 '23 21:11 LagLifeYT

open qemu/pc-bios/keymaps/meson.build change the 'ar' to 'ara'

breadhandsome15048 avatar Nov 29 '23 02:11 breadhandsome15048

I feel like if you are having this much trouble compiling this, a prebuilt binary won't do much good.

What I did was compile it on Ubuntu 23.10 (for the 2G) (Arch Linux works too, likely any post-2022 distro does too) with the configure command of "../configure --enable-sdl --disable-cocoa --target-list=arm-softmmu --disable-capstone --disable-slirp --extra-cflags=-I/usr/include/openssl --extra-ldflags='-L/usr/lib -lcrypto' --enable-pie --disable-werror" from inside the "build" folder. Then you can just make -j(however many cores you have) like normal. I raised an issue about this here: #71

This worked for me, was able to run without issue. If more people can confirm this works, I don't see why it shouldn't be added to the documentation @devos50?

CharlotteCross1998 avatar Dec 14 '23 16:12 CharlotteCross1998

open qemu/pc-bios/keymaps/meson.build change the 'ar' to 'ara'

This does seem to work for 2G, I have given up on building 1G for now. Thank you!

TibixDev avatar Dec 16 '23 19:12 TibixDev

I am working on creating a GitHub workflow that compiles the entire emulator, see #106. However, I'm not sure how easy it would be to re-distribute this since, as far as I know, the binary is not statically compiled and it might be that on other systems, some paths to shared libraries differ.

I tried yesterday to do a static compilation, but that resulted in a bunch of errors, so I probably need to do a bit more work on that.

devos50 avatar Jan 01 '24 16:01 devos50