LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-20-2005, 07:37 PM   #16
alpha_foobar
LQ Newbie
 
Registered: May 2005
Location: New Zealand
Distribution: OpenSuse
Posts: 13

Rep: Reputation: 0

and i have libsdl1.2-dev version 1.2.7 installed.... rats.
 
Old 05-20-2005, 07:58 PM   #17
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Original Poster
Rep: Reputation: 30
you also need the sdl library installed (libsdl1.2debian) along with the sdl library development package (libsdl1.2-dev). it may be called something else according to your distribution, but it looks like ur using debian, so go with this.

what exactly is the error? or is there still just no gui display?

Last edited by zero79; 05-20-2005 at 08:03 PM.
 
Old 06-12-2005, 05:15 PM   #18
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Original Poster
Rep: Reputation: 30
I made some major revisions to this guide. Any feedback would be greatly appreciated.
 
Old 08-10-2005, 08:21 PM   #19
buaku
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2 (2.4.31)
Posts: 119

Rep: Reputation: 15
Worked well for me! Thanks!
I just dind't understand the point of the /dev/shm line in the fstab,
aside from the fact it makes things work and not complain about not having /dev/shm available as a non-root user, hehe.

I also learned qcow wasn't a good format choice for the image...the qemu docs seemed to imply that it would be better for windows, but my win2k install would just hang at 99-100% while formatting. Leaving it as raw worked fine though.
 
Old 09-07-2005, 12:28 PM   #20
gamon
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Rep: Reputation: 0
compiling problem

Hi everybody I'm new to the forum!
I used this guide to try install kqemu on my Debian testing with kernel 2.6.8-2-386, but I get an error while compiling... What I do is:
downloading archives [OK]
extracting archives [OK]
installing needed libraries [OK]
./configure [OK, SDL and kqemu support yes]
Then I run make, but, using gcc-4.0, it stops with an error quite immediately, so I decided to make clean and use gcc-3.3 (using the --cc=/usr/bin/gcc-3.3 option after ./configure), but it comes with this error:

/usr/bin/gcc-3.3 -o qemu-system-mips vl.o osdep.o block.o readline.o monitor.opci.o console.o block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o block-dmg.o block-bochs.o block-vpc.o block-vvfat.o mips_r4k.o dma.o vga.o serial.o ne2000.o i8259.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.oslirp/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/usr/lib -lSDL -lpthread -lutil
make[1]: Leaving directory `/home/dario/[qemu]/qemu-0.7.1/mips-softmmu'
make -C kqemu
make[1]: Entering directory `/home/dario/[qemu]/qemu-0.7.1/kqemu'
make -C /lib/modules/2.6.8-2-386/build M=`pwd` modules
make[2]: Entering directory `/usr/src/kernel-headers-2.6.8-2-386'
CC [M] /home/dario/[qemu]/qemu-0.7.1/kqemu/kqemu-linux.o
In file included from include/asm/thread_info.h:16,
from include/linux/thread_info.h:21,
from include/linux/spinlock.h:12,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/dario/[qemu]/qemu-0.7.1/kqemu/kqemu-linux.c:5:
include/asm/processor.h:87: error: array type has incomplete element type
make[3]: *** [/home/dario/[qemu]/qemu-0.7.1/kqemu/kqemu-linux.o] Error 1
make[2]: *** [_module_/home/dario/[qemu]/qemu-0.7.1/kqemu] Error 2
make[2]: Leaving directory `/usr/src/kernel-headers-2.6.8-2-386'
make[1]: *** [kqemu.ko] Error 2
make[1]: Leaving directory `/home/dario/[qemu]/qemu-0.7.1/kqemu'
make: *** [all] Error 2

What should I do now?!? Please help me I'm newbie, the only windows application I need to run is Autocad and I would like to use it without rebooting everytime I need it.
Thanks a million!!!!

Last edited by gamon; 09-07-2005 at 04:19 PM.
 
Old 09-07-2005, 10:17 PM   #21
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Original Poster
Rep: Reputation: 30
hmmm, this may have been a dependency that i missed when i originally wrote this guide. it looks like make is traversing into the kernel-headers directory just before it fails. if you don't have the kernel-headers package installed yet, then this is an issue because the files that it is looking for don't exist. install the kernel headers with

Code:
su -c "apt-get install kernel-headers-$(uname -r)"
let me know if this solves the problem so i can add it to the guide. also, let me know how well autocad runs. that is one hog of a program...if it can be emulated quickly, then qemu is just friggin amazing.

there is also a new release of qemu and kqemu (version 0.7.2) now available.

Last edited by zero79; 09-07-2005 at 11:05 PM.
 
Old 09-08-2005, 02:32 PM   #22
gamon
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Rep: Reputation: 0
Thank you zero79 for answering!!!
I already had the headers installed, so this idea didn't solve the problem...
I've also tried the new 0.7.2 qemu version but it returns the same identical error.
Referring to the error "include/asm/processor.h:87: error: array type has incomplete element type" these are lines 81->88 from my include/asm/processor.h if can help:

81 /*
82 * capabilities of CPUs
83 */
84
85 extern struct cpuinfo_x86 boot_cpu_data;
86 extern struct cpuinfo_x86 new_cpu_data;
87 extern struct tss_struct init_tss[NR_CPUS];
88 extern struct tss_struct doublefault_tss;

I really don't know anything about C programming, but could it be a problem with [NR_CPUS] which maybe is some kind of a variable? mah...
Perhaps you want to add in the guide also the fact that qemu does not compile with gcc-4.0 (this is a known issue from the qemu FAQ)
I will be pleased to report how well Autocad runs, if only I'll manage to install it!

Last edited by gamon; 09-08-2005 at 05:28 PM.
 
Old 09-08-2005, 07:41 PM   #23
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Original Poster
Rep: Reputation: 30
my processor.h file is off by one line from yours. since compiling with gcc 4.0 is not yet supported, it may be better if you run sarge, rather than etch. sarge/stable uses gcc 3.3.

you may also want to try this configuration command

Code:
make clean
./configure --cc=gcc-3.4 --host-cc=gcc-3.4
peace.

Last edited by zero79; 09-08-2005 at 08:22 PM.
 
Old 09-09-2005, 03:20 AM   #24
gamon
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Rep: Reputation: 0
gcc 3.4 gives the same error than gcc 3.3...
As last resorse would you post your corresponding lines of processor.h?
Thanks again

Last edited by gamon; 09-09-2005 at 04:03 AM.
 
Old 09-09-2005, 04:16 AM   #25
gamon
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Rep: Reputation: 0
I tried to comment line 87 in processor.h and qemu finally seems to compile! The i make install, but when i try to modprobe kqemu it says "Error inserting kqemu: invalid module format": is this error a consequence for commenting the line in processor.h?
 
Old 09-09-2005, 11:20 PM   #26
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Original Poster
Rep: Reputation: 30
that's the most-likely culprit. it may also be that your kernel was compiled with gcc 3.3 perhaps and you're trying to insert a module compiled with gcc 4.0...ur in unchartered territory here, so i dunno how to help except suggesting that u use an os standardized on gcc < 4.0 (until a version of qemu is released for gcc 4.0).

Last edited by zero79; 09-09-2005 at 11:30 PM.
 
Old 09-10-2005, 05:18 AM   #27
gamon
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Rep: Reputation: 0
I finally managed to compile qemu + kqemu on Kubuntu (really don't know how but i did it) and to install windows xp!!!!! It works well (i mean without any kind of error), but the CPU load is always quite high, so the emulation is not very fast. Now I'm gonna test Autocad.
I hope one day i'll succeed to install on Debian too...
Thanks a lot anyway zero79
 
Old 11-08-2005, 05:19 PM   #28
sawjew
LQ Newbie
 
Registered: Aug 2004
Location: Adelaide, Australia
Distribution: Ubuntu 7.04, Xubuntu 7.04
Posts: 3

Rep: Reputation: 1
print from qemu

I have installed qemu and kqemu successfully on Ubuntu 5.10 and I am running Windows NT 4.0. This works really well, very fast, almost up to native speeds and with SP6 installed can run anything that Windows 2000 can. The only problem I have is that I can't work out how to print from it. Does anyone know how to access the printer? the printer is mounted on the host via usb and is shared on a local network with samba and cups.

any ideas? When I try to access it via the network I get a response telling me that the printer name is not valid.
 
Old 11-08-2005, 06:17 PM   #29
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Original Poster
Rep: Reputation: 30
Glad to hear qemu works well for you. Hope my guide was helpful.

As for the printer, I haven't tried this myself, but I would try browsing the windows network neighborhood and see if you can find your host computer and the printer attached to it. I'm not sure if that will work, and i think that the -smb option is meant for file shares not printer shares. u can try the qemu forum to see if anyone there has any experience with this (http://m2.dad-answers.com/qemu-forum/). report back here if you get it to work.

good luck.
Mike
 
Old 11-08-2005, 08:51 PM   #30
sawjew
LQ Newbie
 
Registered: Aug 2004
Location: Adelaide, Australia
Distribution: Ubuntu 7.04, Xubuntu 7.04
Posts: 3

Rep: Reputation: 1
Thumbs up

I managed to get the printer working by mapping the network printer to a local port and convincing qemu it was on a local parallel port. I followed the procedure outlined in this article http://support.microsoft.com/default...b;en-us;121074 and used the password for my host system and it works perfectly. I hope this helps someone else.

If anyone is interested I think you'll find that Windows NT 4 is a pretty good choice to use with qemu. It uses virtually no more resources than windows 95 but with service pack 6 can run any software that Windows 2000 can. The other advantage is that I got an original sealed NT with 2 user license on eBay for AU$10, about US$7.50. not much expense and a fast, relatively stable system.
 
  


Reply


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
qemu running linux under windows linuxmandrake Linux - Software 1 10-18-2005 10:34 AM
anyone got winme running via qemu darkleaf Linux - Software 3 04-15-2005 03:36 AM
How can I use Qemu in Windows? dustin_wielenga Linux - General 3 03-28-2005 12:21 AM
qemu: qemu stopped right after command exec bitpicker Linux - Software 1 03-04-2005 11:25 PM
Emulating Windows using Qemu greek Linux - Software 3 08-16-2004 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:43 PM.

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