Skip to contentSkip to conversation

compiling qemu 0.5.3

Qemu-devel Ryan Freeman 4 participants 4 messages Apr 12, 2004 – Apr 13, 2004

lore
Share & tools
lore
#0 lore raw

hi,
i've been relentlessly trying to compile the latest version of qemu and i keep having the same problem. here are the details of where the compilation halts:

make[1]: Entering directory `/home/ryan/src/qemu-0.5.3/i386' gcc -static -Wl,-T,/home/ryan/src/qemu-0.5.3/i386-vl.ld -o qemu-fast vl.o osdep.o block.o monitor.o ide.o ne2000.o pckbd.o vga.o sb16.o dma.o oss.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o gdbstub.o sdl.o libqemu.a -lm -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lm -ldl -L/usr/X11R6/lib -lX11 -lXext -lutil
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[1]: *** [qemu-fast] Error 1
make[1]: Leaving directory `/home/ryan/src/qemu-0.5.3/i386'
make: *** [all] Error 1
ryan@ryan:~/src/qemu-0.5.3$

i've tried cvs as well and it gives me the same error. what i don't understand is how it can't find -lX11 when the include is _right there_. /usr/bin/ld -L/usr/X11R6/lib -lX11 works as it should, so why can't it work on that one line when trying to compile it?! anyway, my specs are as follows:

arch linux -current
linux 2.6.5
gcc (GCC) 3.3.3

any help would really be appreciated :). the reason i'm trying to compile the latest instead of using the 0.5.2 binaries is that although the 0.5.2 binaries work to a degree (the linux test works, i can boot the demo freedos and netbsd images fine), i can't load from a floppy or cdrom. i can't load from a floppy image or a cdrom image, either. kinda baffled at that too. everywhere else it seems that people have no trouble at all getting it to work :/ the error i get for that is

ryan@ryan:~/src/qemu-0.5.3$ qemu -cdrom /dev/cdroms/cdrom1
warning: could not open /dev/net/tun: no virtual network emulation
BIOS panic at rombios.c, line 1558

sigh. thanks ahead of time, and sorry i'm not subscribed to the list but i can't connect to the mail.nongnu.org servers to get the subscribe info :/

- ryan

#1 lore raw
Quoted 18 lines · Ryan Freeman

hi,
i've been relentlessly trying to compile the latest version of qemu and i keep having the same problem. here are the details of where the compilation halts:

make[1]: Entering directory `/home/ryan/src/qemu-0.5.3/i386' gcc -static -Wl,-T,/home/ryan/src/qemu-0.5.3/i386-vl.ld -o qemu-fast vl.o osdep.o block.o monitor.o ide.o ne2000.o pckbd.o vga.o sb16.o dma.o oss.o fdc.o mc146818rtc.o serial.o i8259.o i8254.o pc.o gdbstub.o sdl.o libqemu.a -lm -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lm -ldl -L/usr/X11R6/lib -lX11 -lXext -lutil
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[1]: *** [qemu-fast] Error 1
make[1]: Leaving directory `/home/ryan/src/qemu-0.5.3/i386'
make: *** [all] Error 1
ryan@ryan:~/src/qemu-0.5.3$

Quoted 4 lines

i've tried cvs as well and it gives me the same error. what i don't understand is how it can't find -lX11 when the include is _right there_. /usr/bin/ld -L/usr/X11R6/lib -lX11 works as it should, so why can't it work on that one line when trying to compile it?!

use "gcc -v -static..." to see in more detail what happens.

Richard

#2 lore raw
In reply to Ryan Freeman
Quoted 2 lines · Ryan Freeman

i've been relentlessly trying to compile the latest version of qemu and i keep having the same problem.

The latest SDL libs are broken.

If you only need the PC emulator,
try like explained in the FAQ
http://fabrice.bellard.free.fr/qemu/faq.html:
./configure --target-list=i386-softmmu

Alternatively, if you need all Qemu binaries, you can run ./configure and add "-lgpm" in the sdl-config --static-libs line of your config-host.mak file.

Cheers,
Jean-Michel

#3 lore raw

I also tracked the SDL breakages in some of my machines to XFree86 update from redhat (4.3.0-33). If you have this version, then upgrade to 4.3.0-55

Thanks,
Hetz

Quoted 24 lines · Jean-Michel POURE

Le lundi 12 Avril 2004 17:45, Ryan Freeman a ֳ©crit :

Quoted 2 lines

i've been relentlessly trying to compile the latest version of qemu and i keep having the same problem.

The latest SDL libs are broken.

If you only need the PC emulator,
try like explained in the FAQ
http://fabrice.bellard.free.fr/qemu/faq.html:
./configure --target-list=i386-softmmu

Alternatively, if you need all Qemu binaries, you can run ./configure and add "-lgpm" in the sdl-config --static-libs line of your config-host.mak file.

Cheers,
Jean-Michel

_______________________________________________
Qemu-devel mailing list
[email protected]
http://mail.nongnu.org/mailman/listinfo/qemu-devel