* [Qemu-devel] 0.6.1 compile error on Mac OS X
@ 2004-11-15 11:51 René Korthaus
2004-11-15 11:59 ` Eric Sunshine
0 siblings, 1 reply; 4+ messages in thread
From: René Korthaus @ 2004-11-15 11:51 UTC (permalink / raw)
To: qemu-devel
downloaded 0.6.1 from the website, configured and make states the
following:
rm -f libqemu.a
ar rcs libqemu.a exec.o translate-all.o cpu-exec.o translate.o op.o
op_helper.o helper.o disas.o ppc-dis.o sparc-dis.o
gcc -o qemu-system-sparc vl.o osdep.o block.o readline.o monitor.o
pci.o console.o block-cow.o block-qcow.o aes.o block-vmdk.o
block-cloop.o sun4m.o tcx.o lance.o iommu.o sched.o m48t08.o
magic-load.o timer.o gdbstub.o sdl.o slirp/cksum.o slirp/if.o
slirp/ip_icmp.o slirp/ip_input.o slirp/ip_output.o slirp/slirp.o
slirp/mbuf.o slirp/misc.o slirp/sbuf.o slirp/socket.o slirp/tcp_input.o
slirp/tcp_output.o slirp/tcp_subr.o slirp/tcp_timer.o slirp/udp.o
slirp/bootp.o slirp/debug.o slirp/tftp.o libqemu.a -lm -lz
-L/opt/local/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL
ld: Undefined symbols:
_sqrtf
make[1]: *** [qemu-system-sparc] Error 1
make: *** [all] Error 1
I want to get QemuX working with 0.6.1.... so i need a compiled mac
version.
Thanks in advance...
cordney*
-------------------------------------------------------------
The signature is currently on vacations.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] 0.6.1 compile error on Mac OS X
2004-11-15 11:51 [Qemu-devel] 0.6.1 compile error on Mac OS X René Korthaus
@ 2004-11-15 11:59 ` Eric Sunshine
2004-11-15 19:17 ` [Qemu-devel] [PATCH] Sparc target build fix on OS X (was " David E. Still
0 siblings, 1 reply; 4+ messages in thread
From: Eric Sunshine @ 2004-11-15 11:59 UTC (permalink / raw)
To: qemu-devel
René Korthaus wrote:
> gcc -o qemu-system-sparc vl.o osdep.o block.o readline.o monitor.o
> slirp/bootp.o slirp/debug.o slirp/tftp.o libqemu.a -lm -lz
> -L/opt/local/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL
> ld: Undefined symbols:
> _sqrtf
sqrtf() is in the 'mx' library on MacOS/X, so you will need to add
`-lmx' to the link statement (in addition to `-lm').
-- ES
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [PATCH] Sparc target build fix on OS X (was Re: 0.6.1 compile error on Mac OS X
2004-11-15 11:59 ` Eric Sunshine
@ 2004-11-15 19:17 ` David E. Still
2004-11-15 20:54 ` René Korthaus
0 siblings, 1 reply; 4+ messages in thread
From: David E. Still @ 2004-11-15 19:17 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 450 bytes --]
Yep, this has been discussed before. There are two ways to get Qemu to
compile on OS X:
1. Apply the attached patch, which adds "LIBS+=-lmx" to OS X and other
Darwin builds
or
2. Don't include sparc emulation in your build by adding
--target-list="i386-softmmu ppc-softmmu" to your ./configure line.
This will remove sparc-softmmu from the build, which is the option that
requires the mx library from OS X.
Either option will work.
- Dave
[-- Attachment #2: qemu-osx-sparc-build.patch --]
[-- Type: application/octet-stream, Size: 256 bytes --]
--- Makefile.target.orig Mon Nov 15 11:08:59 2004
+++ Makefile.target Mon Nov 15 11:09:55 2004
@@ -175,6 +175,7 @@
ifeq ($(CONFIG_DARWIN),yes)
OP_CFLAGS+= -mdynamic-no-pic
+LIBS+=-lmx
endif
#########################################################
[-- Attachment #3: Type: text/plain, Size: 571 bytes --]
--
David E. Still
Writer/Producer
TripleCat Productions
http://www.triplecatproductions.com
On Nov 15, 2004, at 3:59 AM, Eric Sunshine wrote:
> René Korthaus wrote:
>> gcc -o qemu-system-sparc vl.o osdep.o block.o readline.o monitor.o
>> slirp/bootp.o slirp/debug.o slirp/tftp.o libqemu.a -lm -lz
>> -L/opt/local/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL
>> ld: Undefined symbols:
>> _sqrtf
>
> sqrtf() is in the 'mx' library on MacOS/X, so you will need to add
> `-lmx' to the link statement (in addition to `-lm').
>
> -- ES
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] Sparc target build fix on OS X (was Re: 0.6.1 compile error on Mac OS X
2004-11-15 19:17 ` [Qemu-devel] [PATCH] Sparc target build fix on OS X (was " David E. Still
@ 2004-11-15 20:54 ` René Korthaus
0 siblings, 0 replies; 4+ messages in thread
From: René Korthaus @ 2004-11-15 20:54 UTC (permalink / raw)
To: qemu-devel
Thanks!!! Now i got a compiled version without qemu-system-sparc
working.
For all of you using QemuX, i should have included the new qemu-options
soon. Just check out the website in the evening.
Good night,
cordney*
-------------------------------------------------------------
The signature is currently on vacations.
Am 15.11.2004 um 20:17 schrieb David E.Still:
> Yep, this has been discussed before. There are two ways to get Qemu
> to compile on OS X:
>
> 1. Apply the attached patch, which adds "LIBS+=-lmx" to OS X and
> other Darwin builds
> or
> 2. Don't include sparc emulation in your build by adding
> --target-list="i386-softmmu ppc-softmmu" to your ./configure line.
> This will remove sparc-softmmu from the build, which is the option
> that requires the mx library from OS X.
>
> Either option will work.
>
> - Dave
> <qemu-osx-sparc-build.patch>
> --
> David E. Still
> Writer/Producer
> TripleCat Productions
> http://www.triplecatproductions.com
>
> On Nov 15, 2004, at 3:59 AM, Eric Sunshine wrote:
>
>> René Korthaus wrote:
>>> gcc -o qemu-system-sparc vl.o osdep.o block.o readline.o monitor.o
>>> slirp/bootp.o slirp/debug.o slirp/tftp.o libqemu.a -lm -lz
>>> -L/opt/local/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL
>>> ld: Undefined symbols:
>>> _sqrtf
>>
>> sqrtf() is in the 'mx' library on MacOS/X, so you will need to add
>> `-lmx' to the link statement (in addition to `-lm').
>>
>> -- ES
>>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-11-15 21:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-15 11:51 [Qemu-devel] 0.6.1 compile error on Mac OS X René Korthaus
2004-11-15 11:59 ` Eric Sunshine
2004-11-15 19:17 ` [Qemu-devel] [PATCH] Sparc target build fix on OS X (was " David E. Still
2004-11-15 20:54 ` René Korthaus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).