qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] make test fails on Mac OS X


From: Andreas Färber
Subject: Re: [Qemu-devel] make test fails on Mac OS X
Date: Sat, 11 Apr 2015 17:46:13 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]