Am 10.04.2015 um 19:56 schrieb Programmingkid: > The 'make test' command fails to build on Mac OS X. This is because of a > missing header file. Here is the error: > > include/glib-compat.h:19:18: fatal error: glib.h: No such file or directory > #include <glib.h>
On Linux, this gets me past that point, but not yet much further: diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile index 89e3342..64f661a 100644 --- a/tests/tcg/Makefile +++ b/tests/tcg/Makefile @@ -10,6 +10,7 @@ CC_X86_64=$(CC_I386) -m64 QEMU_INCLUDES += -I../.. CFLAGS=-Wall -O2 -g -fno-strict-aliasing #CFLAGS+=-msse2 +QEMU_CFLAGS += $(GLIB_CFLAGS) LDFLAGS= # TODO: automatically detect ARM and MIPS compilers, and run those too On Mac OS X, executing qemu-i386 (as opposed to qemu-system-i386) won't work though, as darwin-user is no longer available. Also, the Makefile seems to assume that it's running on x86. Regards, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton; HRB 21284 (AG Nürnberg)