You are here

WANTED: QEMU Compilation Help (C Developer)

58 posts / 0 new
Last post
John T. Haller
John T. Haller's picture
Offline
Last seen: 10 hours 28 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
WANTED: QEMU Compilation Help (C Developer)

While I have a working package of Damn Small Linux in PortableApps.com Format that doesn't have an extra command line window ready to go, the QEMU included with DSL has a closed library (FMOD for sound) which means that it doesn't qualify as Free Software and, thus, can't be hosted on SourceForge.

So, I'm looking for someone who can recompile it without FMOD. If that means no sound, that's fine for now.

QEMU is written in C and compiled with GCC.

José Pedro Arvela
Offline
Last seen: 5 years 10 months ago
Joined: 2007-07-10 07:29
Little off topic but

Don't use DSL, please. It has a big problem with a lot of characters. For example: it makes ~a instead of ã, and makes accents in wrong places, being café caf'e. Do you see the problem? Use Puppy (or other) instead, please.

Blue is everything.

John T. Haller
John T. Haller's picture
Offline
Last seen: 10 hours 28 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Multiple

I'll be doing multiple Linuxes (Linuxi?), but they all use QEMU and, thus, NONE of them are open source packages on Windows. Sad

Sometimes, the impossible can become possible, if you're awesome!

José Pedro Arvela
Offline
Last seen: 5 years 10 months ago
Joined: 2007-07-10 07:29
The problem is not QUEMU

QUEMU is not the problem. I tried a LiveCd of DSL on a PC. The problem is with DSL kernel. And if you do more Linux...es(?) I will have no problem as it seems the only one that does that is DSL. Which ones are you doing, by the way? Biggrin

Blue is everything.

John T. Haller
John T. Haller's picture
Offline
Last seen: 10 hours 28 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
QEMU *IS* the problem

QEMU for Windows includes a closed source component (FMOD for sound). That means that anything that uses QEMU can not be considered an open source package. Which means it can't be hosted on SourceForge, Google Code, etc.

*THAT* is the problem at the moment... and why I can't release my ready-to-test DSL. Nor could I make a package of Puppy and release it. Same reason. It's big, it'll be popular (read: expensive bandwidth-wise) and I can't host it on SourceForge. All the apps here are fully open source and hosted on SourceForge. If I were hosting them, the bandwidth would cost me $20,000 a month.

Sometimes, the impossible can become possible, if you're awesome!

wsm23
Offline
Last seen: 12 years 9 months ago
Joined: 2006-01-09 22:05
How to DSL or Puppy?

Not like you have a ton of extra time or anything, but is it possible that you could make a launcher for DSL or at least post the how to?

Life is about the journey not the destination!

The Kazoo Spartan

OliverK
OliverK's picture
Offline
Last seen: 3 years 5 months ago
Developer
Joined: 2007-03-27 15:21
Please?

Please?

Too many lonely hearts in the real world
Too many bridges you can burn
Too many tables you can't turn
Don't wanna live my life in the real world

rab040ma
Offline
Last seen: 4 months 3 weeks ago
Joined: 2007-08-27 13:35
hosting?

John - Is your focus entirely on Open Source? There are some nice freeware or proprietary packages out there that might complement the PA suite for a roadwarrior, where no comparable OpenSource package exists.

In other words, is OpenSource just a condition for hosting on SF.net, or part of the underlying philosophy of PA.com? I'm not being critical, or suggesting you change anything. On the other hand, I can think of some possibilities that might get hosting for non-OpenSource apps without selling your soul to the devil, but I wouldn't want to even think about them much if that sort of app is totally alien to the philosophy here.

MC

John T. Haller
John T. Haller's picture
Offline
Last seen: 10 hours 28 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Necessity

For a while it was necessity. First, only open source apps can be modified without permission of the publisher. And very few publishers will let an outside entity repackage their software without tons of licensing, contracts, etc (aka 'excessive lawyer cash').

Plus, hosting is tough. If I were hosting all the stuff we make available, it would be about US$20,000 a month in bandwidth fees. We do have a very popular site here (in the top 5,000 worldwide now). And downloads just keep growing.

I'm introducing hosted and repackaged freeware shortly. I have a server lined up along with a decent deal on bandwidth

Sometimes, the impossible can become possible, if you're awesome!

rab040ma
Offline
Last seen: 4 months 3 weeks ago
Joined: 2007-08-27 13:35
QEMU-puppy

QEMU-puppy seems to be hosted on SourceForge. How do they do it (or should we ask...)?

https://sourceforge.net/project/showfiles.php?group_id=160696

MC

John T. Haller
John T. Haller's picture
Offline
Last seen: 10 hours 28 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Violation

Simple, they're violating the SourceForge Terms of Use by hosting the files there. You can't host ANY closed source stuff on SourceForge except for small runtime libraries normally included with the OS (like the MS Visual C runtimes... but not Java or .NET).

Sometimes, the impossible can become possible, if you're awesome!

rab040ma
Offline
Last seen: 4 months 3 weeks ago
Joined: 2007-08-27 13:35
source

I noticed after I posted the note (and did some experimenting with QEMU-puppy) that there was no source code available from the SF download site. That seemed odd too.

Thanks for the response.

MC

digitxp
digitxp's picture
Offline
Last seen: 13 years 2 months ago
Joined: 2007-11-03 18:33
So you need an alternative to FMOD.

I'm searching for that right now. I read somewhere that they said it's OSS. Why not ask FMOD at http://fmod.org ?

Insert original signature here with Greasemonkey Script.

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 10 months ago
Developer
Joined: 2006-12-06 18:07
Steve has already recompiled

Steve has already recompiled QEMU with a different sound library, we're just waiting for some finalized stuff, and for John to take a look at everything. and no, FMOD is not OSS.

The developer formerly known as ZGitRDun8705

alanbcohen
Offline
Last seen: 5 years 3 months ago
Joined: 2006-01-04 10:47
Communicating with someone

Communicating with someone who has a different base language can be interesting. ptmb and John both have problems, but they are different.
- John needs help with QEMU so he can distribute it with other software that uses it.
- Ptmb is concerned that the Linux distribution that John is using in this effort doesn't properly support languages that use diacritical marks.

John, is it possible to use your launcher with an unmodified version of QEMU? If so, how about a test release with directions to download and install QEMU from another source? This is similar to the original approach used in portable Java. Since you are not distributing closed source software, the forge may not have a problem. Another idea, have you tried using QEMU from it's source? Per their website, all of the delivered QEMU is GPL (as of today). The QEMU with DSL may be an older version if it has a closed source lib.

Ptmb, part of the reason that DSL doesn't handle the diacritical marks properly is that it uses an older release of the kernel than most other Linux distros. This is intentional - to restrict the size of the distro to under 50meg. Have you tried to contact the DSL support team to report the problem? As I understand it, they are English speakers and English doesn't use these marks consistently or often.

José Pedro Arvela
Offline
Last seen: 5 years 10 months ago
Joined: 2007-07-10 07:29
The problem is already on their forums

I already saw some DSL forums, and the topic was already discussed. I don't think that they are willing to change that. And I don't like DSL Blum . It is a little hard to work with. I like more Xfce, IceWM (or something like that) and others. Fluxbox is hard to work on. Even Fluxbuntu (non-official mod) is hard to work because of Fluxbox. I know that their goal is to get under 50mb, but unless that you are using a 1960 PC ( Wink ), then there's no problem, because the most minimal hard disk has at least half a Gb (and most pendrives have 256Mb and the new 1Gb ones are at 10€ here). I know I'm drifting off-topic, so I will stop here.

alanbcohen is right, I was talking of (?)diacritical(?) marks. When I said that QUEMU was not the problem I was talking of those marks. Because I know QUEMU wasn't still available here because of the libraries problem.

Blue is everything.

m2
Offline
Last seen: 13 years 9 months ago
Joined: 2006-12-12 12:00
I know that their goal is to

I know that their goal is to get under 50mb, but unless that you are using a 1960 PC ( Eye-wink ), then there's no problem, because the most minimal hard disk has at least half a Gb (and most pendrives have 256Mb and the new 1Gb ones are at 10€ here).
But some people want to have also some things more on their pendrives...like data files... The lower it's size the better. My programs weigh 13.2 GB and I DO care about every megabyte. Portable hard drives cost a bit more than 10€ Wink

"Those people who think they know everything are a great annoyance to those of us who do." Asimov

José Pedro Arvela
Offline
Last seen: 5 years 10 months ago
Joined: 2007-07-10 07:29
There's the ability of

There's the ability of choosing. I just don't like it; but other people might like it. And there's "flavours" for everyone. I am not saying that no one is allowed use it. I was asking John not to make DSL because of the many people here that are not English (including me), but if he's making more that one distro, then I have no problems here.

Blue is everything.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
FYI

Just to let you know, there's no U after the Q as it's simply an acronym (abbreviation (?)).

"If you're not part of the solution, you're part of the precipitate."

BuddhaChu
BuddhaChu's picture
Offline
Last seen: 4 months 3 weeks ago
Joined: 2006-11-18 10:26
excellent post alan

Way to be a mediator. Biggrin

Cancer Survivors -- Remember the fight, celebrate the victory!
Help control the rugrat population -- have yourself spayed or neutered!

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
.

*looks at Steve* Smile

Anyway, I'm sure I saw a GPLed sound library somewhere. I'll see if I can find it.

"If you're not part of the solution, you're part of the precipitate."

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 2 years 1 month ago
Developer
Joined: 2006-05-26 12:08
hmmm

The only one I know of is called uFMOD but thats a library for playing xm files, but maybe if you could give GStreamer (I believe it can work on windows I'm not 100% sure on that so don't quote me fully on that) a try. Another thing worth mentioning Qemu has sdl so try to add the code for enabling sound via SDL. after that is done I think you would only need the sdl Dynamic linking Library file (And for you non-tech people sdl.dll)

your friendly neighbourhood moderator Zach Thibeau

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
*looks back*

I'll go have a look.

jps
Offline
Last seen: 15 years 8 months ago
Joined: 2007-06-09 13:23
A lot of discussing here...

A lot of discussing here... But no one with C skills is really offering help?

What which compiler you want to build it? MinGW, Microsoft Platform SDK, Visual Studio, or nvm, or...?

I am not that good in C yet, currently learning it. But I have some experience with compiling programs which also need third party library's.

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 2 years 1 month ago
Developer
Joined: 2006-05-26 12:08
My Suggestion

is to check out The Qemu Forum which contains patches and some developer there maybe able to help you out there John

your friendly neighbourhood moderator Zach Thibeau

jps
Offline
Last seen: 15 years 8 months ago
Joined: 2007-06-09 13:23
In general developers are

In general developers are not interested in playing the teacher for "non-C-geeks" (sorry). Maybe JTH has some bonus because he is prominent.

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 2 years 1 month ago
Developer
Joined: 2006-05-26 12:08
Well

John Does his own programming and he knows C/C++ (I think) but is stuck in trying to get rid of fmod with something else. I personally suggest sdl because Qemu's VGA Display is run with it so why not the sound Smile

your friendly neighbourhood moderator Zach Thibeau

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Well,

I have made some progress with this, I have QEMU compiling properly and am just downloading an image to check it works, I'll look at removing the sound stuff tomorrow.

*EDIT* Anyone know where I can get a decent image?*EDIT*

John T. Haller
John T. Haller's picture
Offline
Last seen: 10 hours 28 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Setup / Next Steps

What environment did you set up for it?

Try downloading DSL and then swap your QEMU for the one included... since that will probably be the first release we do as the launcher for it is already done.

Also, let's do a QEMU without sound first since that'll be quicker than trying to incorporate another library.

Perhaps we should setup a SF project for this since, to my knowledge, there are no publicly-available open source builds of QEMU for Windows.

Sometimes, the impossible can become possible, if you're awesome!

Espreon
Espreon's picture
Offline
Last seen: 12 years 3 months ago
Joined: 2006-09-29 18:23
Great idea!

Yeah, I say keep the source open!

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
Well,

It's open source already, so I'm almost 100% certain that we have to anyway, under the terms of the LGPL.

"If you're not part of the solution, you're part of the precipitate."

Espreon
Espreon's picture
Offline
Last seen: 12 years 3 months ago
Joined: 2006-09-29 18:23
I am aware of that

Shame on QEMU's creator for using FMOD! FMOD is csourced, so QEMU 4 Windows is not 100% opensource in terms of precompiled stuff.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
Hmm

Why don't we take a look at VirtualBox's source code for the sound? It uses QEMU for some parts anyway.

Edit: Looks like it just uses a modified SDL library for the sound.

"If you're not part of the solution, you're part of the precipitate."

John T. Haller
John T. Haller's picture
Offline
Last seen: 10 hours 28 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Tough Compile

Yeah, but VirtualBox seems like a tough compile. And there are no open source Windows builds of it anywhere (the binaries on their site are all commercial).

But, you're right, we may be able to take the modded SDL and make it work with normal QEMU.

Sometimes, the impossible can become possible, if you're awesome!

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
Hmm

I know I got it to compile at one point, but I can't remember if I was using Visual C++, Code::Blocks or DialogBlocks. Smile

There's a page on the LibSDL site about using sound.

"If you're not part of the solution, you're part of the precipitate."

wsm23
Offline
Last seen: 12 years 9 months ago
Joined: 2006-01-09 22:05
Can't wait

look forward to your test Steve.

Life is about the journey not the destination!

The Kazoo Spartan

Kevin Porter
Kevin Porter's picture
Offline
Last seen: 10 years 8 months ago
Developer
Joined: 2007-01-10 19:25
Ditto

Ditto.

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
Hehe

Appropriate, eh Steve? Biggrin

"If you're not part of the solution, you're part of the precipitate."

Kevin Porter
Kevin Porter's picture
Offline
Last seen: 10 years 8 months ago
Developer
Joined: 2007-01-10 19:25
Hmmm?

Hmmm?

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
The Word,

Ditto. Search it. Smile

Kevin Porter
Kevin Porter's picture
Offline
Last seen: 10 years 8 months ago
Developer
Joined: 2007-01-10 19:25
I'm a little slow

I don't get it still. :lol:

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Search it

On here.

Kevin Porter
Kevin Porter's picture
Offline
Last seen: 10 years 8 months ago
Developer
Joined: 2007-01-10 19:25
I think I found it

It's not that funny.

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

wsm23
Offline
Last seen: 12 years 9 months ago
Joined: 2006-01-09 22:05
had to be there

.

Life is about the journey not the destination!

The Kazoo Spartan

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Right then,

my compiled version seems to work fine, and it looks like it wont be too hard to remove the FMod stuff.

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 2 years 1 month ago
Developer
Joined: 2006-05-26 12:08
Just Remembered

I just remembered Check the qemu in QemuManager (at least version 4.0) You'll see qemu there without fmod.dll but SDL.dll instead Smile

your friendly neighbourhood moderator Zach Thibeau

John T. Haller
John T. Haller's picture
Offline
Last seen: 10 hours 28 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Sadly, No

Qemu Manager isn't open source anymore (not since 2005). And they're violating the LGPL by not releasing the source to their binary of Qemu.

Sometimes, the impossible can become possible, if you're awesome!

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Did,

you get my e-mail with the recompiled QEMU, I'll do a version with the SDL library later today, and one with DirectSound to compare, as it seems that they are supported by compilation, see this.

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
In that case

It looks pretty easy to do. Just seems like you only need to change the default to SDL (if anything).

"If you're not part of the solution, you're part of the precipitate."

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Indeed

it should be.

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
I just read

through that whole post and I am looking forward to having QEMU here !!!
Hope it hits the open soon.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Well,

I've sent the stuff to John (along with Toucan 1.2) so it's in his hands at the moment.

jps
Offline
Last seen: 15 years 8 months ago
Joined: 2007-06-09 13:23
I also think using

I also think using VirtualBox (instant of QEmu without QEmu Manager) would be better. Also the new seamless integration feature is great. Smile

What about asking VirtualBox developers about an agreement so this can be hosted here in original?

digitxp
digitxp's picture
Offline
Last seen: 13 years 2 months ago
Joined: 2007-11-03 18:33
I speak English

So you're saying you need to find perhaps an opensource alternative to QEMU (FMOD). Oh, and it says on it's website (strangely) It's open source. You might want to ask the author, perhaps.

Insert original signature here with Greasemonkey Script.

BuddhaChu
BuddhaChu's picture
Offline
Last seen: 4 months 3 weeks ago
Joined: 2006-11-18 10:26
fmod library on sf.net

I understand the whole fmod closed source argument above. pendrivelinux.com is distributing their QEMU setup with fmod included from sourceforge. so, are they doing something they shouldn't? Did they get permission from sourceforge to host an app with closed source code in it? If so, should we persue the same thing?

My intent isn't to get PDL "in trouble", it's to figure out why they're "allowed" distro closed source files from sf.net and we "can't". Maybe they don't know about this fact or don't care (that fmod = closed source).

Discuss...

References:

http://www.pendrivelinux.com/2007/09/19/portable-qemu-persistent-pendriv...
http://sourceforge.net/project/showfiles.php?group_id=197880

Cancer Survivors -- Remember the fight, celebrate the victory!
Help control the rugrat population -- have yourself spayed or neutered!

John T. Haller
John T. Haller's picture
Offline
Last seen: 10 hours 28 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Terms of Use Violation

If they're including it on SourceForge, then yes, they're violating SourceForge's Terms of Service agreement.

SF's download mirrors are only for open source binaries. The only exception is for smaller runtime libraries normally included with the operating system. The Microsoft C++ runtime library is allowed. .NET and Java runtime environments are not. Closed source audio libraries certainly aren't.

Sometimes, the impossible can become possible, if you're awesome!

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
Oi.

Have you contacted Steve yet? I wouldn't leave him waiting. From what I hear, those guys turn green when angry. Or maybe that was Canadians Blum

"If you're not part of the solution, you're part of the precipitate."

Zach Thibeau
Zach Thibeau's picture
Offline
Last seen: 2 years 1 month ago
Developer
Joined: 2006-05-26 12:08
:O

Shock no it's not we do this Bad :cool:

your friendly neighbourhood moderator Zach Thibeau

Log in or register to post comments