Rockbox Development > Starting Development and Compiling

compiling a win32 sim from linux

<< < (3/4) > >>

lights0ut:
Hey Nate!,
to be specific I use linux to compile my builds natively, I use the kubuntu 6.10 (edgy eft) distro ( (k)ubuntu is based on debian).
 I just use the rockboxdev.sh script to get the required compilers etc.

Personally I think that if you're serious about compiling you should be running linux, it is the fastest, and can compile linux and win32 sims.
VMware is faster than Cygwin but as you stated, it can't make a win32 sim (as far as I know).

There is a wiki page on how to compile the UI simulator with  a section on how to compile a win32 sim from linux
check it out here

if you're wondering which compiler you need to make a win32 sim from linux, first you need to install mingw32, then you need to build SDL with mingw32 and install it in somewhere other than /usr/bin (assuming this is where the linux SDL is installed) I use /usr/local/sdl32. This is done by typing

 ./configure --host=i586-mingw32msvc --prefix=/usr/local/sdl32

after that's done, cd to your build dir as usual, but before you run configure you need the new sdl in you path
so:
PATH=/path to new sdl/bin:$PATH    for me this is         PATH=/usr/local/sdl32/bin:$PATH

after configure and make and make install is done then you need to run the following
find -name "*rock"         -exec i586-mingw32msvc-strip "{}" ";"
find -name "*codec"        -exec i586-mingw32msvc-strip "{}" ";"
find -name "rockboxui.exe" -exec i586-mingw32msvc-strip "{}" ";"

and then you're done! you have a nifty win32 simulator.
hope that helps ;)

Nate!:
I'm thinking that if I do follow all of the steps that you've described in a VMWare/Debian setup, I should end up with the same results.

I can't commandeer the family pc.  My wife and daughter would kill me.  Can't go dying over me trying to compile a Win32 sim.   :D

No seriously, I want to ease slowly into the Linux world.  Just haven't taken the plunge yet.

Thanks for you advice.

Llorean:
If you install the appropriate packages VMWare should work.

lights0ut:

--- Quote from: Llorean on April 05, 2007, 05:27:46 PM ---If you install the appropriate packages VMWare should work.

--- End quote ---

you're right, I suppose you could apt-get from VMWare couldn't you. ::)

Llorean:
The apt-get is a little... unreliable. But in *theory* you could manage it, yes.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version