Back to the index page  
Log in to check your private messages
A quick question about compiling in Linux

 
Post new topic   Reply to topic    ROTT editing and modding Forum Index » coding
View previous topic :: View next topic  
Author Message
dopefish7590

Joined: 06 Oct 2007
Posts: 324

PostPosted: Fri Nov 12, 2010 7:51 pm    Post subject: A quick question about compiling in Linux Reply with quote
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
View user's profile Send private message
dopefish7590

Joined: 06 Oct 2007
Posts: 324

PostPosted: Fri Nov 12, 2010 8:05 pm    Post subject: Reply with quote
...Aaaand, here is the patch file.

http://dopefish7590.webs.com/Rott.diff

It's a patch for this old code: http://www.riseofthetriad.dk/linuxglrottsrc.zip
_________________
-Swim, swim, hungry
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ROTT editing and modding Forum Index » coding All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group Web Hosting Directory
Xbox by Scott Stubblefield



Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com