The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: ugly on December 12, 2002, 11:05:36 am



Title: I have problem compiling the source code..
Post by: ugly on December 12, 2002, 11:05:36 am
How do I use VisualC++ to compile the source?
I opened the src\msvc++\UrQuanMasters.dsw
But when I compiled, It couldn't find SDL.h, unistd.h, sys/param.h, and many other files..
What libs should I download? and how do I install them?
Is "unistd.h" and "sys/param.h" only on Unix systems?

Parker hates all capital-lettered titles


Title: Re: I HAVE PROBLEM COMPILING THE SOURCE CODE..
Post by: Nic. on December 12, 2002, 11:18:00 am
I don't know where to begin.
  • There is a forum called "Technical Issues and Bugs" which was created SPECIFICALLY for questions like this, unlike the forum you chose to post in, called "General Discussion"

  • There is a fille located at the base of the source tree you just downloaded called INSTALL.  It tells you everything you need to get in order to get the program to compile, and is even nice enough to provide URLs to them all.  I'm gonna go out on a limb here and guess that you didn't bother to read it before posting.  Why don't you go give that a shot?


Title: Re: I have problem compiling the source code..
Post by: ugly on December 12, 2002, 11:51:46 am
OK...I've got the libs...
But I still can't find <unistd.h> and <sys/param.h>
Where can I find them???


Title: Re: I have problem compiling the source code..
Post by: ugly on December 12, 2002, 12:26:04 pm
Where is UNISTD.H??????
Where is SYS/PARAM.H?????
I can't compile without them......
I'm not good as this....


Title: Re: I have problem compiling the source code..
Post by: Nic. on December 12, 2002, 12:41:38 pm
You shouldn't need them, and since they're Unix-only requirements, getting them won't help you much.

Do you know C, at least enough to beat on source code until it goes through a compiler with minimal complaints?  If not, you might want to hang back and wait for the next release..


Title: Re: I have problem compiling the source code..
Post by: ugly on December 12, 2002, 12:55:24 pm
I think I don't need them, but when I compile.
The error message says :
fatal error C1083: Cannot open include file: 'sys/param.h': No such file or directory

If I really don't need the files, why does the compiler keep producing error msgs?
The source code should be compilable in VC++..
I downloaded it from SourceForge,
uqm-0.1-source.tgz,
it says it's platform-independent..


Title: Re: I have problem compiling the source code..
Post by: Riven on December 12, 2002, 01:40:07 pm
Why you want to compile version 0.1? It is downloadable in binary form. If you want a newer version download CVS.


Title: Re: I have problem compiling the source code..
Post by: ugly on December 12, 2002, 01:44:11 pm
Um.....Where's the CVS version?.....
Actually I don't know where to download it.


Title: Re: I have problem compiling the source code..
Post by: Riven on December 12, 2002, 01:47:31 pm
Download Wincvs (www.wincvs.org) and follow the instructions in http://sourceforge.net/cvs/?group_id=59452.


Title: Re: I have problem compiling the source code..
Post by: Ugly1 on December 12, 2002, 04:15:42 pm
Where could I find SDL.lib?


Title: Re: I have problem compiling the source code..
Post by: Riven on December 12, 2002, 08:36:54 pm
Read install file in cvs directory. It's in sdl download page in the file SDL-devel-1.2.5a-VC6.zip (for visual C)