Announcement: Be excellent to each other.


Caravel Forum : Caravel Boards : Development : What d'ya compile DROD with?
New Topic New Poll Post Reply
Poster Message
TheLaughingMan
Level: Goblin
Avatar
Rank Points: 22
Registered: 05-01-2010
IP: Logged
icon What d'ya compile DROD with? (0)  
Are there any compiler-specific dependencies for DROD? Will a simple g++ with GNU Make do? Sorry if this has been answered somewhere.

____________________________
I thought what I'd do was, I'd pretend to be one of those deaf-mutes. Or should I?
Click here to view the secret text

05-03-2010 at 04:53 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
coppro
Level: Smitemaster
Rank Points: 1308
Registered: 11-24-2005
IP: Logged
icon Re: What d'ya compile DROD with? (+1)  
DROD needs g++, Scons, and a number of libraries. I forget all the libraries you'll specifically, but Scons checks for them all, so any errors will be caught quickly.
05-03-2010 at 06:45 AM
View Profile Show all user's posts Quote Reply
TheLaughingMan
Level: Goblin
Avatar
Rank Points: 22
Registered: 05-01-2010
IP: Logged
icon Re: What d'ya compile DROD with? (0)  
coppro wrote:
DROD needs g++, Scons, and a number of libraries. I forget all the libraries you'll specifically, but Scons checks for them all, so any errors will be caught quickly.
Thanks.

____________________________
I thought what I'd do was, I'd pretend to be one of those deaf-mutes. Or should I?
Click here to view the secret text

05-03-2010 at 06:48 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
coppro
Level: Smitemaster
Rank Points: 1308
Registered: 11-24-2005
IP: Logged
icon Re: What d'ya compile DROD with? (+2)  
Oh, you'll also need to make the following changes to the SConstruct - the second hunk is only needed if you have a library in /usr/local/lib. Also, when installing metakit, make sure to copy the static archive; it's not installed by default by metakit's Makefile.

diff --git a/Master/Linux/SConstruct b/Master/Linux/SConstruct
index 8a99419..cc5a1f6 100644
--- a/Master/Linux/SConstruct
+++ b/Master/Linux/SConstruct
@@ -7,8 +7,8 @@ MODPATH={}
 # Top source directory
 TOPSRC = '../..'
 # Module paths relative to top source dir (if not .)
-MODPATH['BackEndLib'] = '..'
-MODPATH['FrontEndLib'] = '..'
+MODPATH['BackEndLib'] = '.'
+MODPATH['FrontEndLib'] = '.'
 
 MINGW_PREFIX = 'i486-mingw32-'
 MINGW_BIN = '/usr/i486-mingw32/bin'
@@ -107,8 +107,9 @@ else:
        GTKINC = shell('pkg-config gtk+-2.0 --cflags')
        SDLLIB = shell('sdl-config --libs')
 
-cxxlink = Builder(action = '$CXX $LINKSTATE -o $TARGET $SOURCES -Wl,-Bstatic $LINKSTATIC -Wl,-Bdynamic $LINKDYNAMIC $LINKTAIL')
+cxxlink = Builder(action = '$CXX $_LIBDIRFLAGS $LINKSTATE -o $TARGET $SOURCES -Wl,-Bstatic $LINKSTATIC -Wl,-Bdynamic $LINKDYNAMIC $LINKTAIL')
 env = Environment(ENV = os.environ, CC = 'gcc', CXX = 'g++', CCFLAGS = SDLINC + ' ' + GTKINC + ' -W -Wall -Wno-unused', LINKSTATE = '-Wl,-O1 -Wl,--as-needed', CPPPATH = incpath)
+env.Append(LIBPATH = '/usr/local/lib')
 
 if opt['i686']:
        env.Append(CC = ' -m32', CXX = ' -m32', CCFLAGS = ' -march=i686')


[Last edited by coppro at 05-03-2010 07:12 AM]
05-03-2010 at 07:11 AM
View Profile Show all user's posts Quote Reply
New Topic New Poll Post Reply
Caravel Forum : Caravel Boards : Development : What d'ya compile DROD with?
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.