Compiling problem!

Status
Not open for further replies.

WellDoneSnake

Yoko Shimomura
Hey guys, I've been trying to use code::blocks to compile a program but each time that I use the "rebuild" option in the srb2 project file (to make a exe) it says:
Code:
"Execution of touch src\comptime.c failed"
on my windows xp, but on my windows 7 it says:
Code:
"Sonic Robo Blast 2 - Debug Native/SDL" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
Nothing to be done."

Could someone tell me what's wrong or how I could correct it.
 
And once again. Code::Block project is for GNU/Linux OSes, not for Windows
 
So are there any other project files for windows in the src or do I have make a project file myself or download it.
 
Last edited:
Although blunders aforementioned regarding compilation of the source code are not contemporary to those I've experienced, the same general reoccuring deviations continue to persist. Hopefully SRB2 shall become easier to compile in future versions as its currently quite difficult for the inexperienced. Under Windows, I recommend building it with Visual Studio 2010 and Code::Blocks for other Operating Systems. Although I've been successful in compiling SRB2 with Windows using Microsoft Visual Studio 2010 (and prior) as well as GCC and Code::Blocks using Linux, I can't say the same for the 2012 version of Visual Studio and other methods of compiling. Despite successful compilations which don't appear to return any compile time errors, the executables that I generated were quite unstable and prone to seemingly random segmentation faults during gameplay. Presently I utilize the compiled binaries from "http://mb.srb2.org/showthread.php?t=30779#1" for offline gameplay on Linux and employ the primary Windows executable for both Windows and Linux (using WINE) as it appears netplay using Linux binaries don't easily concede with Windows based host. The downfall of using Wine is quite evident though; WINE is quite buggy and should only be used as a last resort. Providing that compiling the source code isn't paramount, than I suggest prolonging efforts until the 2.1 SRB2 source code gets a public release. In all likelihood, these errors will themselves resolve with the passage of time.
 
Thanks, I understand more when people give me a full explanation and examples, instead of there being very short responses like "no" and no reason why. I've heard before that "random segmentation faults" can be hard to fix if your inexperienced, so I'd rather wait for the 2.1 source code to come out.
 
because you are not allow to commit the changes that would break Linux support
Noooot entirely sure what this has to do with anything.

and remember all the GNU programs we had to install?
A couple, yeah. Mostly getting all of the libraries in order.

I'd rather we make that easier for everyone else come 2.1, though. There is no reason Windows users should be forced to compile only through, what, wxDev-C++ or Visual Studio?
 
I'm having a trouble with compiling too, but i'm using MingW.
http://pastebin.com/8ChdDyBP (sorry for occasional russian text)
I'm pretty sure i did everything according to the wiki, and not exactly sure what's wrong in there...

I use 64-bit windows 7 system.
 
you forget to have NASM in your PATH so GNU Make can find it
Huh it's too weird then... I checked my PATH, it was all correct
Code:
;C:\MinGW\bin;C:\Users\(Username)\AppData\Local\nasm
I DIDN'T actually write (Username) but my actual one.
I've also tried : deleting the ; at the start of PATH, restarting computer, running cmd with admin privileges, even reinstalled NASM...
http://pastebin.com/muQdPF0S - error is the same AFAIK
---------------------------------------------------------
EDIT:Shoot, i confused user variables with system variables. But still, after i changed the right Path's value and restarted PC, there is another error : http://pastebin.com/6ahkvxWg
gcc.exe also crashed afterwards.
---------------------------------------------------------
EDIT2:Wow, I hardly believe it, but it seems that i can compile the source code of SRB2!
What i done was : Downloaded svnversion for cmd reference, checked out the latest revision of Srb2, made sure that Path under the system variables (NOT variables for the user) included directories to MingW, NASM, and Svn binaries
http://pastebin.com/siEV4rgW - I think it still kinda hates comptime, but what the heck, as long as it compiles, i'm happy.
 
Last edited:
I'm not really a C programmer, but if you need help with Java, come ask me. Needless to say I'm lost on C compiling, and this is why I love java, I only need to compile one copy and it will run on most OSes.

[EDIT]
Jeez try to share some pertinent information about computing in other languages and you get an infraction, this forum is too dead.
 
Last edited:
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top