knazarov / homebrew-qemu-virgl

A homebrew tap for qemu with support for 3d accelerated guests
414 stars 67 forks source link

How to build on macos without homebrew #108

Open Behinder opened 1 month ago

Behinder commented 1 month ago

Could you add more clear description? It is hard to read from homebrew formulas especially which files should I patch

Behinder commented 1 month ago

Ok I was able to build it and use latest qemu (your patches are 3 years old and I had to manually checked changed because codebase changed). It compiled without problems but qemu-system-aarch64 -m 2048 -device virtio-gpu-gl-pci -display default,gl=on -machine virt -d guest_errors,cpu_reset gives me this

CPU Reset (CPU 0)
R00=00000000 R01=00000000 R02=00000000 R03=00000000
R04=00000000 R05=00000000 R06=00000000 R07=00000000
R08=00000000 R09=00000000 R10=00000000 R11=00000000
R12=00000000 R13=00000000 R14=00000000 R15=00000000
PSR=40000000 -Z-- A usr26
CPU Reset (CPU 0)
R00=00000000 R01=00000000 R02=00000000 R03=00000000
R04=00000000 R05=00000000 R06=00000000 R07=00000000
R08=00000000 R09=00000000 R10=00000000 R11=00000000
R12=00000000 R13=00000000 R14=00000000 R15=00000000
PSR=400001d3 -Z-- A svc32
qemu_gl_create_compile_shader: compile vertex error
ERROR: 0:1: '' :  version '300' is not supported
ERROR: 0:1: '' : syntax error: #version

qemu_gl_create_compile_shader: compile fragment error
ERROR: 0:1: '' :  version '300' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:4: 'vec2' : syntax error: syntax error

qemu_gl_create_compile_shader: compile vertex error
ERROR: 0:1: '' :  version '300' is not supported
ERROR: 0:1: '' : syntax error: #version

qemu_gl_create_compile_shader: compile fragment error
ERROR: 0:1: '' :  version '300' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:4: 'vec2' : syntax error: syntax error