bugBos Wars - Bugs: bug #19278, scons fails SDL detection os Mac...

 
 

bug #19278: scons fails SDL detection os Mac OSX.4 with macports SDL installed

Submitted by:  Erik <br0x>
Submitted on:  Sat 10 Mar 2007 07:13:32 PM UTC  
 
Severity: 3 - NormalItem Group: Bug
Status: Need InfoPrivacy: Public
Assigned to: François Beerten <feb>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 10 Jul 2007 05:50:53 PM UTC, comment #3:

Does it work better with the pre 2.4 version of Bos Wars ?

François Beerten <feb>
Project AdministratorIn charge of this item.
Fri 13 Apr 2007 04:26:15 PM UTC, comment #2:

Which version of bos did you use ? Note that since Bos Wars 2.3, the game ships with its own version of the engine. The old stratagus engine won't work with newer versions of Bos Wars.

The development version in subversion has a fix for this problem.

François Beerten <feb>
Project AdministratorIn charge of this item.
Fri 13 Apr 2007 03:45:00 PM UTC, comment #1:

I also have the same problem.
I was able to comiple the new version of stratagus but it doesn't run the bos game...
There is any other way to run the new bos game in Mac OS X?

Thank you in advance
João

Joao <jvianalopes>
Sat 10 Mar 2007 07:13:32 PM UTC, original submission:

scons attempts to test SDL by defining "int main()", which causes the SDL_main(int,*char[]) replacement to puke on osX/macports.

user@host bos/$ scons
scons: Reading SConscript files ...
build_conf_cache.py doesn't exist or out of date.
Generating new build config cache ...
Checking for main() in C library SDL... no
Did not find SDL library or headers, exiting!
user@host bos/$ tail config.log
|return 0;
|}
|
gcc -o .sconf_temp/conftest_0.o -c -fsigned-char -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/opt/local/include/SDL .sconf_temp/conftest_0.c
.sconf_temp/conftest_0.c: In function 'SDL_main':
.sconf_temp/conftest_0.c:6: error: number of arguments doesn't match prototype
/opt/local/include/SDL/SDL_main.h:53: error: prototype declaration
.sconf_temp/conftest_0.c:7: error: too few arguments to function 'SDL_main'
scons: Configure: no

user@host bos/$ gcc `sdl-config --cflags` -c .sconf_temp/conftest_0.c
.sconf_temp/conftest_0.c: In function 'SDL_main':
.sconf_temp/conftest_0.c:6: error: number of arguments doesn't match prototype
/opt/local/include/SDL/SDL_main.h:53: error: prototype declaration
.sconf_temp/conftest_0.c:7: error: too few arguments to function 'SDL_main'
user@host bos/$ sed -i.bak 's/^main()/main(int argc, char *argv[])/;s/main();/main(argc,argv);/' .sconf_temp/conftest_0.c
user@host bos/$ gcc `sdl-config --cflags` -c .sconf_temp/conftest_0.c
user@host bos/$ uname -a
Darwin macbook 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25 19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386
user@host bos/$ sdl-config --version
1.2.11

Erik <br0x>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by feb (Posted a comment)
  • -unavailable- added by jvianalopes (Posted a comment)
  • -unavailable- added by br0x (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 02 Jan 2008 08:21:18 PM UTCfebOpen/ClosedOpen=>Closed
    Tue 10 Jul 2007 05:50:53 PM UTCfebStatusNone=>Need Info
      Assigned toNone=>feb
    Sat 10 Mar 2007 07:13:32 PM UTCbr0xCarbon-Copy-=>Added br0x

    Back to the top


    Powered by Savane 3.1-cleanup1