1 (edited by Citrus 2011-02-15 15:52:14)

Topic: [solved] Compiling - Python Error [MAC OS X]

I get this error when compiling:

Citrus:Modname01 Citrus$ ../bam/src/bam release
bam: building 'release'
[  1/137] #1 c src/engine/external/zlib/inffast.c
i686-apple-darwin10-gcc-4.2.1: /wd4244: No such file or directory
bam: command returned error: 256
bam: error during build

tried it many times and always another file appears as "not existing" such as inflate.c, inftrees.c and so on.
I'm using Python 2.6.5 and Mac OS X. I tried it in 64bit and 32bit Python mode, nothing different.

I know this error was already discussed but it seemed to be a windows-related problem so I'm asking again, if anyone has a solution for Mac OS X.

Thanks in advance for every constructive answer!

2

Re: [solved] Compiling - Python Error [MAC OS X]

did you copy the source from somewhere?
it seems that u have a wrong config ^^ ... just delete it (config.lua in 0.5. trunk)

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^

3

Re: [solved] Compiling - Python Error [MAC OS X]

I'm just practising this mod will never be public smile
I don't have a "config.lua" only a "config.bam":

compiler.value = 'cl'
stackprotector.value = 1
zlib.value = nil
zlib.include_path = nil
sdl.value = 1
sdl.use_sdlconfig = nil
sdl.use_win32sdl = 1
sdl.use_osxframework = nil

Does there seem anything to be wrong? tongue

4 (edited by Kottizen 2011-02-15 16:51:57)

Re: [solved] Compiling - Python Error [MAC OS X]

Remove it and try again. That's the 0.5.* version of config.lua.

5

Re: [solved] Compiling - Python Error [MAC OS X]

same error. too bad.
Maybe I have to delete something like a "cache"?

6

Re: [solved] Compiling - Python Error [MAC OS X]

there is no such thing in the old bam version... zhe problem is that in your config it says "cl" for the compiler... its the windows compiler... you shouldnt get this error after deleting this file... if it created this file again with "cl" for the compiler (which is actually impossible) then replace "cl" with "gcc"...

btw... did you install XCode? xD

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^

7 (edited by Citrus 2011-02-15 17:36:59)

Re: [solved] Compiling - Python Error [MAC OS X]

With gcc:

bam: building 'release'
[  1/146] #1 c src/engine/external/zlib/zutil.c
In file included from src/engine/external/zlib/zutil.c:8:
src/engine/external/zlib/zutil.h:21:24: error: stddef.h: No such file or directory
src/engine/external/zlib/zutil.h:23:22: error: string.h: No such file or directory
src/engine/external/zlib/zutil.h:24:22: error: stdlib.h: No such file or directory
src/engine/external/zlib/zutil.h:38:23: error: errno.h: No such file or directory
src/engine/external/zlib/zutil.c: In function ‘zcalloc’:
src/engine/external/zlib/zutil.c:306: warning: implicit declaration of function ‘malloc’
src/engine/external/zlib/zutil.c:306: warning: incompatible implicit declaration of built-in function ‘malloc’
src/engine/external/zlib/zutil.c:307: warning: implicit declaration of function ‘calloc’
src/engine/external/zlib/zutil.c:307: warning: incompatible implicit declaration of built-in function ‘calloc’
src/engine/external/zlib/zutil.c: In function ‘zcfree’:
src/engine/external/zlib/zutil.c:314: warning: implicit declaration of function ‘free’
bam: command returned error: 256
bam: error during build

so let's better go back to 'cl' tongue

Uuhh, XCode? What the heck is XCode?
- Of course XCode is installed wink


EDIT:
Lol, I just tried it the same way again, deleted config and everything else. Now this happens:
http://nopaste.info/8bbc6befde_nl.html

But now the config works!

--- Auto Configuration ---
compiler: gcc
stackprotector: yes
zlib: (in system path)
sdl: using osx framework
saving configuration to 'config.bam'
--- 

One step towards the light big_smile
But what's up with system.c? - There are several files included that don't exist. So it's no surprise that there are errors, but where the heck are these files?

8

Re: [solved] Compiling - Python Error [MAC OS X]

you are missing XCode or something fo XCode as it doesnt find the default headers big_smile

which Mac version do u have? I guess you have 10.6 as you have gcc 4.2... teeworlds uses the 10.4u SDK to compile. You cannot use this SDK in 10.6 as it needs gcc 4.0 to compile... so eigther change the compiler from gcc 4.2 to gcc 4.0 (its there but not used) or change default.bam so that its using the 10.5 SDK or 10.6 SDK... u cant actually miss the lines wink
btw... when using the 10.6 SDK you cannot use teeworlds in older mac versions then 10.6... when using the 10.5 SDK it will work in 10.5 and 10.6

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^

9 (edited by Citrus 2011-02-15 18:42:49)

Re: [solved] Compiling - Python Error [MAC OS X]

Right, Mac OS X 10.6.

I guess SDK 10.4 and 10.5/6 are pre-installed with XCode so I only have to change every "10.4" in the default.bam to "10.6"?

EDIT: I'm so stupid big_smile Of course the "10.4u" has to be changed to "10.6" big_smile
Only errors in hooks.cpp now, seems to be mod-related.

10 (edited by Sushi Tee 2011-02-15 22:08:49)

Re: [solved] Compiling - Python Error [MAC OS X]

actually you shouldnt change things in the engine which arent for the engine so edit the other variables file in game folder wink

anyway... we dont support mods so learn for yourself wink

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^