Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-31-2009, 06:30 PM   #1
LQ Newbie
Registered: Oct 2006
Posts: 17

Rep: Reputation: 1
Trouble compiling qemu

Slack 11.0
gcc 3.4.6
ld 20040927
ldd 2.3.6


I downloaded qemu 10.0 from here:

I extracted the contents, then ran ./configure. Here is the ouput:

Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /home/ronin/downloads/qemu-0.10.0
C compiler        gcc
Host C compiler   gcc
ARCH_CFLAGS       -m32
make              make
install           install
host CPU          i386
host big endian   no
target list       i386-softmmu x86_64-softmmu arm-softmmu cris-softmmu m68k-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu ppc-softmmu ppcemb-softmmu ppc64-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu i386-linux-user x86_64-linux-user alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user m68k-linux-user mips-linux-user mipsel-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user sh4-linux-user sh4eb-linux-user sparc-linux-user sparc64-linux-user sparc32plus-linux-user
gprof enabled     no
sparse enabled    no
profiler          no
static build      no
-Werror enabled   no
SDL support       yes
SDL static link   no
curses support    yes
mingw32 support   no
Audio drivers     oss
Extra audio cards ac97 es1370 sb16
Mixer emulation   no
VNC TLS support   no
kqemu support     yes
brlapi support    no
Documentation     no
NPTL support      no
vde support       no
AIO support       yes
Install blobs     yes
KVM support       no
fdt support       no
I then run make, and receive this error:

make[1]: Entering directory `/home/ronin/downloads/qemu-0.10.0/i386-softmmu'
  LINK  i386-softmmu/qemu
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[1]: *** [qemu] Error 1
make[1]: Leaving directory `/home/ronin/downloads/qemu-0.10.0/i386-softmmu'
make: *** [subdir-i386-softmmu] Error 2
I have also tried qemu 10.5, and receive the same error.

Please help.

Old 05-31-2009, 06:43 PM   #2
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
There's a SlackBuild for qemu on 11 here:
Old 05-31-2009, 06:56 PM   #3
LQ Guru
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 5,156

Rep: Reputation: 1154Reputation: 1154Reputation: 1154Reputation: 1154Reputation: 1154Reputation: 1154Reputation: 1154Reputation: 1154Reputation: 1154
I agree with brianL. I've got qemu installed on my slackware 12.2 system, I used the slack build script from It works just fine.
That is the way to go, pimy.
Old 06-02-2009, 01:05 AM   #4
Registered: Apr 2009
Location: Orlando, FL
Distribution: Scientific Linux 6 x64
Posts: 211
Blog Entries: 1

Rep: Reputation: 31
Used as a virtualizer, does Qemu have usb support ala VirtualBox PUEL version? tks
Old 06-02-2009, 02:16 AM   #5
Senior Member
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 3,772

Rep: Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842
Originally Posted by pimy View Post
/usr/lib/gcc/i486-slackware-linux/3.4.6/../../../../i486-slackware-linux/bin/ld: cannot find -lX11
it seems you need X11 package installed.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble compiling scoutiilabs Programming 2 01-31-2009 08:19 AM
Got error in compiling kqemu with qemu depam Linux - Software 15 05-03-2006 05:47 PM
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-04-2005 11:25 PM
trouble compiling fretbrner Slackware 1 01-31-2005 12:30 PM
Trouble compiling anything banZera Slackware 4 04-07-2004 10:19 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration