I'm having trouble building static qemu from git. I did `./configure --static --enable-debug` and get the following error:
LINK aarch64-softmmu/qemu-system-aarch64 /usr/bin/x86_64-linux-gnu-ld: cannot find -lcacard /usr/bin/x86_64-linux-gnu-ld: cannot find -lcacard /usr/bin/x86_64-linux-gnu-ld: cannot find -lusbredirparser /usr/bin/x86_64-linux-gnu-ld: cannot find -ludev /usr/bin/x86_64-linux-gnu-ld: cannot find -lgtk-3 /usr/bin/x86_64-linux-gnu-ld: cannot find -latk-bridge-2.0 /usr/bin/x86_64-linux-gnu-ld: cannot find -latspi /usr/bin/x86_64-linux-gnu-ld: cannot find -lsystemd /usr/bin/x86_64-linux-gnu-ld: cannot find -lgdk-3 /usr/bin/x86_64-linux-gnu-ld: cannot find -lwayland-egl /usr/bin/x86_64-linux-gnu-ld: cannot find -lepoxy /usr/bin/x86_64-linux-gnu-ld: cannot find -lgraphite2 collect2: error: ld returned 1 exit status Makefile:193: recipe for target 'qemu-system-aarch64' failed make[1]: *** [qemu-system-aarch64] Error 1 Makefile:478: recipe for target 'subdir-aarch64-softmmu' failed make: *** [subdir-aarch64-softmmu] Error 2
FWIW, qemu built fine without the --static option, but I need the static version to put into the chroot for testing.
I'm having trouble building static qemu from git. I did `./configure --static --enable-debug` and get the following error:
LINK aarch64- softmmu/ qemu-system- aarch64 x86_64- linux-gnu- ld: cannot find -lcacard x86_64- linux-gnu- ld: cannot find -lcacard x86_64- linux-gnu- ld: cannot find -lusbredirparser x86_64- linux-gnu- ld: cannot find -ludev x86_64- linux-gnu- ld: cannot find -lgtk-3 x86_64- linux-gnu- ld: cannot find -latk-bridge-2.0 x86_64- linux-gnu- ld: cannot find -latspi x86_64- linux-gnu- ld: cannot find -lsystemd x86_64- linux-gnu- ld: cannot find -lgdk-3 x86_64- linux-gnu- ld: cannot find -lwayland-egl x86_64- linux-gnu- ld: cannot find -lepoxy x86_64- linux-gnu- ld: cannot find -lgraphite2 aarch64' failed aarch64] Error 1 aarch64- softmmu' failed aarch64- softmmu] Error 2
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
/usr/bin/
collect2: error: ld returned 1 exit status
Makefile:193: recipe for target 'qemu-system-
make[1]: *** [qemu-system-
Makefile:478: recipe for target 'subdir-
make: *** [subdir-
FWIW, qemu built fine without the --static option, but I need the static version to put into the chroot for testing.