dopefish7590
Joined: 06 Oct 2007 Posts: 324
|
Posted: Fri Nov 12, 2010 7:51 pm Post subject: A quick question about compiling in Linux |
|
|
Here is a quick question to the programmers out there.
Well, I decided to take a stab at compiling a Linux binary of WinROTT... I have very little experience with large C projects so my knowledge on how to compile and link many a file is quite limited... So instead I tried some old code that was supposed to compile under Linux. After decimating the code so that it would compile. (GCC really doesn't like multiple declarations with different states, so a lot of functions threw errors since they were declared as static in one place and not in another.)
It also had a problem with the Midi functionality, so I edited that a bit as well... In the end I managed a successful compile, and I wanted to test it. It initialized well with no data files, but after I tried to execute the code with data files in the same folder, it would throw an error at my term.
Code: | W_Wad: Wad Manager Started NUMLUMPS=3904
OH NO OH NO ROTT CRASHED!
Here is where:
Stack dump:
{
/lib/libc.so.6(+0x33af0) [0x7fba5945aaf0]
/lib/libc.so.6(memcpy+0x35) [0x7fba594adcc5]
./rott(BuildTables+0x79) [0x46bd35]
./rott(main+0xbf) [0x482a17]
/lib/libc.so.6(__libc_start_main+0xfd) [0x7fba59445c4d]
./rott() [0x431319]
}
Aborted |
It appears as if it is having problems with some of my modules when initializing the WAD file... So I looked at the code to check what was happening, and couldn't find much. Anyone know what's up with the way WinROTT handles it's data file?
I will probably post a patch file in a bit for those who want to try and see what's up, and what was changed. _________________ -Swim, swim, hungry |
|