jinjuyu / digdigrpg

Automatically exported from code.google.com/p/digdigrpg
Other
0 stars 0 forks source link

Patch to compile with ubuntu 11.04 #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, great project (though the code is a bit cryptic ^^)

I did have some issue to compile it under my ubuntuwith gcc4.5.2 

so here is a quick and dirty patch, rather to take ideas from than just 
directly apply it, or for linux users who can't wait test your game 

to generate chuckhandler I also needed to use this 

LDFLAGS=" -L. " python buildchunkhandler.py build_ext

after simply follow the instruction in the .bat (with some adaptation of course 
with the path name)

hope it helps 

Original issue reported on code.google.com by sysko...@gmail.com on 19 Jun 2011 at 6:22

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you!
It will probably compile if you pass C99 comilation option to gcc though. :)

Original comment by yubgipen...@gmail.com on 8 Jul 2011 at 1:56

GoogleCodeExporter commented 9 years ago
-std=c99 will do the job.

To do that, you need to modify python distutils code.(\Lib\distutils under 
win32 I don't remember where it is under linux)

You also can pass Pentium 4 optimazation options too. It will improve speed of 
game.

Original comment by yubgipen...@gmail.com on 8 Jul 2011 at 2:05

GoogleCodeExporter commented 9 years ago
Or, rename gcc into something else and make alias for gcc -std=c99 as gcc.

Original comment by yubgipen...@gmail.com on 9 Jul 2011 at 6:44