Open startergo opened 3 months ago
I afraid it is not really possible on mac, because:
epoxy/egl.h
header) - https://github.com/qemu/qemu/blob/3b2fe44bb7f605f179e5e7feb2c13c2eb3abbb80/meson.build#L1587build_egl
evaluates to false
) - https://github.com/anholt/libepoxy/blob/2df68f811fc1a5f0a6d372ecdb887333ad3f540f/meson.build#L46Let's keep this issue open for now. I guess some of those custom qemu patches have already landed upstream. On the other hand, knowing how scrupulous and tedious the process of maintaining custom patches is, I would rather say I have no interest outside of compile-time features 😅
- libepoxy does not support EGL on darwin (
build_egl
evaluates tofalse
) -
Yes I realized that, but we can use angle? https://lore.kernel.org/all/1E9D7BA4-C070-48AE-9989-70EA04FE547D@gmail.com/T/ Also macports provides libepoxy
https://gist.github.com/akihikodaki/87df4149e7ca87f18dc56807ec5a1bc5 https://gist.githubusercontent.com/akihikodaki/87df4149e7ca87f18dc56807ec5a1bc5/raw/9589b879cce1cc90ea412da0682eab10390355c8/run.sh
I've added libepoxy-egl, could you check that? ... meh, I was able to build it, but it is still the same error
$ qemu-system-x86_64 -display help
Available display backend types:
none
egl-headless
curses
cocoa
spice-app
dbus
and
$ qemu-system-x86_64 -spice help
spice options:
addr=<str>
agent-mouse=<bool (on/off)>
disable-agent-file-xfer=<bool (on/off)>
disable-copy-paste=<bool (on/off)>
disable-ticketing=<bool (on/off)>
display=<str>
head=<num>
image-compression=<str>
ipv4=<bool (on/off)>
ipv6=<bool (on/off)>
jpeg-wan-compression=<str>
password-secret=<str>
plaintext-channel=<str>
playback-compression=<bool (on/off)>
port=<num>
sasl=<bool (on/off)>
seamless-migration=<bool (on/off)>
streaming-video=<str>
tls-channel=<str>
tls-ciphers=<str>
tls-port=<num>
unix=<bool (on/off)>
x509-cacert-file=<str>
x509-cert-file=<str>
x509-dh-key-file=<str>
x509-dir=<str>
x509-key-file=<str>
x509-key-password=<str>
zlib-glz-wan-compression=<str>
while the standard qemu gives:
$ qemu-system-x86_64 -display help
Available display backend types:
none
curses
cocoa
dbus
and
$ qemu-system-x86_64 -spice help
qemu-system-x86_64: -spice: invalid option
it seems with that I've just introduced two new display modes egl-headless
and spice-app
added these devices via https://github.com/akihikodaki/virglrenderer/tree/macos but still no gl
in qemu-system-x86_64 -spice help
output
$ qemu-system-x86_64 -device help | grep -i gl
name "virtio-gpu-gl-device", bus virtio-bus
name "virtio-gpu-gl-pci", bus PCI, alias "virtio-gpu-gl"
name "virtio-vga-gl", bus PCI
... but none of those has real EGL support 😈 either egl: not available on this platform
or OpenGL is not supported by the display
when I run
/usr/local/Cellar/qemu-spice/9.0.0/bin/qemu-system-x86_64
I get:
Is there a way to compile it with open-gl? I am trying to run a machine created in UTM through qemu.
Seems to be implemented here, but the upstream qemu is very old version 2.5: https://github.com/startergo/homebrew-qemu-virgl
This is how UTM handles it: https://github.com/utmapp/UTM/issues/4285#issuecomment-1475017059