The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
December 10, 2024, 07:03:15 pm
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Windows Mobile 2003 Port
« previous next »
Pages: [1] Print
Author Topic: Windows Mobile 2003 Port  (Read 2839 times)
Jay Mattis
Guest


Email
Windows Mobile 2003 Port
« on: November 21, 2003, 06:43:55 am »

Hi, I'm trying to port SC2 to the Windows Mobile 2003 OS and I have a couple of questions. Is there any way to easily disable the use of sound in the sc2 code so that I don't need to port any sound libraries for now? Also, is OpenGL required and a really important library for the gameplay of sc2, and is there an easy to way to get around using that too for now?
Logged
Michael Martin
Core Team
*Smell* controller
*****
Offline Offline

Posts: 387



View Profile
Re: Windows Mobile 2003 Port
« Reply #1 on: November 21, 2003, 08:06:54 am »

There is a "null" sound decoder already (use the --sound none command line option).

OpenGL is the secondary backend; the default "pure-SDL mode" doesn't touch it.  You'll find an opengl.c file and a pure.c file in src\sc2code\libs\graphics\sdl -- opengl.c and things that link against it can be hacked away.

Logged
Culture20
Enlightened
*****
Offline Offline

Posts: 917


Thraddash Flower Child


View Profile
Re: Windows Mobile 2003 Port
« Reply #2 on: November 21, 2003, 07:06:21 pm »

Jay, assuming that this is for PDAs, if you figure out any architecture (CPU, memory mapping) problems, I'd definitely be interested in hearing about them.  I tried compiling it on ARM linux but gave up because I didn't know the code well enough (and low-level memory programming isn't my forte).
Logged
Jay Mattis
Guest


Email
Re: Windows Mobile 2003 Port
« Reply #3 on: November 22, 2003, 07:52:15 pm »

Ok, but even if I can run it with the option of the null decoder I need to compile it with only the null decoder. How can I keep it from depending on OpenAL and junk like that? It seems pretty tightly linked, no?
Logged
Michael Martin
Core Team
*Smell* controller
*****
Offline Offline

Posts: 387



View Profile
Re: Windows Mobile 2003 Port
« Reply #4 on: November 22, 2003, 11:37:37 pm »

Quote
Ok, but even if I can run it with the option of the null decoder I need to compile it with only the null decoder. How can I keep it from depending on OpenAL and junk like that? It seems pretty tightly linked, no?


OpenAL specifically will only be linked in if HAVE_OPENAL is defined.  MixSDL is still directly linked (and is based on SDL_audio).  If you want to get rid of that too, you'll have to hack the source.
Logged
Jay Mattis
Guest


Email
Re: Windows Mobile 2003 Port
« Reply #5 on: November 23, 2003, 01:27:35 am »

Argh, alright. I'll try to just get MixSDL working on Pocket PCs first then.
Logged
Jay Mattis
Guest


Email
Re: Windows Mobile 2003 Port
« Reply #6 on: November 23, 2003, 03:43:34 am »

Alright, I don't think that SDL_mixer is going to be a problem, but what about libogg and libvorbis? Are those two libraries difficult to disable also?
Logged
meep-eep
Forum Admin
Enlightened
*****
Offline Offline

Posts: 2847



View Profile
Re: Windows Mobile 2003 Port
« Reply #7 on: November 25, 2003, 01:38:37 pm »

MixSDL is not SDL_Mixer.
We used SDL_Mixer at the start, but found it not good enough. MixSDL is made by one of our own, fOSSiL.

Disabling libogg/libvorbis won't be as simple as changing a define. However, the code is pretty isolated, so it shouldn't take you much time disabling it. Just look in src/sc2code/libs/sound.
Btw: I expect this will be made more modular in the future too.

Logged

“When Juffo-Wup is complete
when at last there is no Void, no Non
when the Creators return
then we can finally rest.”
VBD950
Zebranky food
*
Offline Offline

Posts: 3


I love YaBB 1G - SP1!


View Profile
Re: Windows Mobile 2003 Port
« Reply #8 on: November 27, 2003, 03:22:00 am »

I've been thinking about the same exact thing.  I've never compiled C before.  If you could give me instructions, or even send me the executable you make for Windows Mobile 2003, I'd be really happy.  Please send me some form of info either here or at vbd950@yahoo.com
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!