1 (edited by MertenNor 2009-12-05 22:29:55)

Topic: [HELP] Problem Compiling with Mac OS X SnowLeopard

hey..

I upgraded to SnowLeopard and updated xCode to 3.2.1 and wen I try to compile a Teeworlds server I get this errors:

--- Auto Configuration ---
compiler: gcc
stackprotector: yes
zlib: (in system path)
sdl: using osx framework
saving configuration to 'config.bam'
--- 
bam: building 'server_release'
[ 1/99] #1 c src/osxlaunch/server.m
src/osxlaunch/server.m:1:24: error: Cocoa/Cocoa.h: No such file or directory
src/osxlaunch/server.m:4: error: cannot find interface declaration for ‘NSTextView’, superclass of ‘ServerView’
src/osxlaunch/server.m:5: error: expected specifier-qualifier-list before ‘NSTask’
src/osxlaunch/server.m:6: error: expected specifier-qualifier-list before ‘NSFileHandle’
src/osxlaunch/server.m:8: error: expected ‘)’ before ‘NSTask’
src/osxlaunch/server.m:12: error: expected ‘)’ before ‘NSTask’
src/osxlaunch/server.m: In function ‘-[ServerView listenTo:]’:
src/osxlaunch/server.m:14: error: ‘NSPipe’ undeclared (first use in this function)
src/osxlaunch/server.m:14: error: (Each undeclared identifier is reported only once
src/osxlaunch/server.m:14: error: for each function it appears in.)
src/osxlaunch/server.m:14: error: ‘pipe’ undeclared (first use in this function)
src/osxlaunch/server.m:15: error: ‘task’ undeclared (first use in this function)
src/osxlaunch/server.m:18: error: ‘file’ undeclared (first use in this function)
src/osxlaunch/server.m:20: error: ‘NSNotificationCenter’ undeclared (first use in this function)
src/osxlaunch/server.m:20: error: ‘NSFileHandleReadCompletionNotification’ undeclared (first use in this function)
src/osxlaunch/server.m: At top level:
src/osxlaunch/server.m:25: error: expected ‘)’ before ‘NSNotification’
src/osxlaunch/server.m: In function ‘-[ServerView outputNotification:]’:
src/osxlaunch/server.m:27: error: ‘NSData’ undeclared (first use in this function)
src/osxlaunch/server.m:27: error: ‘data’ undeclared (first use in this function)
src/osxlaunch/server.m:27: warning: no ‘-userInfo’ method found
src/osxlaunch/server.m:27: warning: (Messages without a matching method signature
src/osxlaunch/server.m:27: warning: will be assumed to return ‘id’ and accept
src/osxlaunch/server.m:27: warning: ‘...’ as arguments.)
src/osxlaunch/server.m:27: error: ‘NSFileHandleNotificationDataItem’ undeclared (first use in this function)
src/osxlaunch/server.m:27: warning: no ‘-objectForKey:’ method found
src/osxlaunch/server.m:27: warning: no ‘-retain’ method found
src/osxlaunch/server.m:28: error: ‘NSString’ undeclared (first use in this function)
src/osxlaunch/server.m:28: error: ‘string’ undeclared (first use in this function)
src/osxlaunch/server.m:28: error: ‘NSASCIIStringEncoding’ undeclared (first use in this function)
src/osxlaunch/server.m:29: error: ‘NSAttributedString’ undeclared (first use in this function)
src/osxlaunch/server.m:29: error: ‘attrstr’ undeclared (first use in this function)
src/osxlaunch/server.m:31: warning: ‘ServerView’ may not respond to ‘-textStorage’
src/osxlaunch/server.m:31: warning: no ‘-appendAttributedString:’ method found
src/osxlaunch/server.m:32: warning: ‘ServerView’ may not respond to ‘-textStorage’
src/osxlaunch/server.m:32: warning: no ‘-length’ method found
src/osxlaunch/server.m:32: warning: initialization makes integer from pointer without a cast
src/osxlaunch/server.m:33: error: ‘NSRange’ undeclared (first use in this function)
src/osxlaunch/server.m:33: error: expected ‘;’ before ‘range’
src/osxlaunch/server.m:34: error: ‘range’ undeclared (first use in this function)
src/osxlaunch/server.m:34: warning: ‘ServerView’ may not respond to ‘-scrollRangeToVisible:’
src/osxlaunch/server.m:38: error: ‘file’ undeclared (first use in this function)
src/osxlaunch/server.m:32: warning: unused variable ‘length’
src/osxlaunch/server.m: At top level:
src/osxlaunch/server.m:41: error: expected ‘)’ before ‘NSNotification’
src/osxlaunch/server.m: In function ‘-[ServerView windowWillClose:]’:
src/osxlaunch/server.m:43: error: ‘task’ undeclared (first use in this function)
src/osxlaunch/server.m:44: error: ‘NSApp’ undeclared (first use in this function)
src/osxlaunch/server.m: In function ‘runServer’:
src/osxlaunch/server.m:50: error: ‘NSAutoreleasePool’ undeclared (first use in this function)
src/osxlaunch/server.m:50: error: ‘pool’ undeclared (first use in this function)
src/osxlaunch/server.m:51: error: ‘NSApp’ undeclared (first use in this function)
src/osxlaunch/server.m:51: error: ‘NSApplication’ undeclared (first use in this function)
src/osxlaunch/server.m:52: error: ‘NSBundle’ undeclared (first use in this function)
src/osxlaunch/server.m:52: error: ‘mainBundle’ undeclared (first use in this function)
src/osxlaunch/server.m:53: error: ‘NSTask’ undeclared (first use in this function)
src/osxlaunch/server.m:53: error: ‘task’ undeclared (first use in this function)
src/osxlaunch/server.m:58: error: ‘NSOpenPanel’ undeclared (first use in this function)
src/osxlaunch/server.m:58: error: ‘openDlg’ undeclared (first use in this function)
src/osxlaunch/server.m:59: error: ‘YES’ undeclared (first use in this function)
src/osxlaunch/server.m:61: error: ‘nil’ undeclared (first use in this function)
src/osxlaunch/server.m:61: error: ‘NSOKButton’ undeclared (first use in this function)
src/osxlaunch/server.m:64: error: ‘NSArray’ undeclared (first use in this function)
src/osxlaunch/server.m:64: error: ‘filenames’ undeclared (first use in this function)
src/osxlaunch/server.m:68: error: ‘NSString’ undeclared (first use in this function)
src/osxlaunch/server.m:68: error: ‘filename’ undeclared (first use in this function)
src/osxlaunch/server.m:69: error: ‘arguments’ undeclared (first use in this function)
src/osxlaunch/server.m:72: error: ‘NSWindow’ undeclared (first use in this function)
src/osxlaunch/server.m:72: error: ‘window’ undeclared (first use in this function)
src/osxlaunch/server.m:74: error: ‘NSRect’ undeclared (first use in this function)
src/osxlaunch/server.m:74: error: expected ‘;’ before ‘graphicsRect’
src/osxlaunch/server.m:76: error: ‘graphicsRect’ undeclared (first use in this function)
src/osxlaunch/server.m:76: warning: implicit declaration of function ‘NSMakeRect’
src/osxlaunch/server.m:80: error: ‘NSTitledWindowMask’ undeclared (first use in this function)
src/osxlaunch/server.m:81: error: ‘NSClosableWindowMask’ undeclared (first use in this function)
src/osxlaunch/server.m:82: error: ‘NSMiniaturizableWindowMask’ undeclared (first use in this function)
src/osxlaunch/server.m:83: error: ‘NSBackingStoreBuffered’ undeclared (first use in this function)
src/osxlaunch/server.m:84: error: ‘NO’ undeclared (first use in this function)
src/osxlaunch/server.m:88: warning: ‘ServerView’ may not respond to ‘+alloc’
src/osxlaunch/server.m:88: warning: no ‘-initWithFrame:’ method found
src/osxlaunch/server.m:88: warning: no ‘-autorelease’ method found
src/osxlaunch/server.m:89: warning: ‘ServerView’ may not respond to ‘-setEditable:’
src/osxlaunch/server.m:90: warning: ‘ServerView’ may not respond to ‘-setRulerVisible:’
bam: command returned error: 256
bam: error during build

can someone help me with this.. so I can compile for Mac again.. smile ( this need to be edited in the Teewiki)

Thanks..

MertenNor

->My 24/7 servers: [NOR] Norwegian HUB <- Back Online !! big_smile
( My grammar is getting better ! smile I think.. )
-Norway

2

Re: [HELP] Problem Compiling with Mac OS X SnowLeopard

have you Download libsdl from the http://libsdl.org and put SDL.framework in /Library/Frameworks ?

3

Re: [HELP] Problem Compiling with Mac OS X SnowLeopard

Stripe wrote:

have you Download libsdl from the http://libsdl.org and put SDL.framework in /Library/Frameworks ?

yes I have done that to.. still does not work..

MertenNor

->My 24/7 servers: [NOR] Norwegian HUB <- Back Online !! big_smile
( My grammar is getting better ! smile I think.. )
-Norway

4

Re: [HELP] Problem Compiling with Mac OS X SnowLeopard

what version of mac you have?

5

Re: [HELP] Problem Compiling with Mac OS X SnowLeopard

Stripe wrote:

what version of mac you have?

here:
http://img204.imageshack.us/img204/5622/screenshot20091206at121.png

MertenNor

->My 24/7 servers: [NOR] Norwegian HUB <- Back Online !! big_smile
( My grammar is getting better ! smile I think.. )
-Norway

6 (edited by Stripe 2009-12-05 22:42:24)

Re: [HELP] Problem Compiling with Mac OS X SnowLeopard

go in default.bam and serach for these lines:

settings.cc.flags:Add("-mmacosx-version-min=10.4", "-isysroot /Developer/SDKs/MacOSX10.4u.sdk")
settings.link.flags:Add("-mmacosx-version-min=10.4", "-isysroot /Developer/SDKs/MacOSX10.4u.sdk")

and change it to

settings.cc.flags:Add("-mmacosx-version-min=10.4", "-isysroot /Developer/SDKs/MacOSX10.6.sdk")
settings.link.flags:Add("-mmacosx-version-min=10.4", "-isysroot /Developer/SDKs/MacOSX10.6.sdk")

-stripe

7 (edited by MertenNor 2009-12-05 22:51:15)

Re: [HELP] Problem Compiling with Mac OS X SnowLeopard

Stripe wrote:

go in default.bam and serach for these lines:

settings.cc.flags:Add("-mmacosx-version-min=10.4", "-isysroot /Developer/SDKs/MacOSX10.4u.sdk")
settings.link.flags:Add("-mmacosx-version-min=10.4", "-isysroot /Developer/SDKs/MacOSX10.4u.sdk")

and change it to

settings.cc.flags:Add("-mmacosx-version-min=10.4", "-isysroot /Developer/SDKs/MacOSX10.6.sdk")
settings.link.flags:Add("-mmacosx-version-min=10.4", "-isysroot /Developer/SDKs/MacOSX10.6.sdk")

-stripe

Thanks that did the trick..

oh btw is "default.bam" the same for all mods and clients.. ? so I can just change the "default.bam" with the "fixed" one.. ?

MertenNor

->My 24/7 servers: [NOR] Norwegian HUB <- Back Online !! big_smile
( My grammar is getting better ! smile I think.. )
-Norway

8

Re: [HELP] Problem Compiling with Mac OS X SnowLeopard

default.bam is for everything you want to compile so for everthing you want to compile you need to change the lines.

you can make a default.bam with that I post you so you can paste the new default.bam in the teeworlds-src

or you open it with textedit and edit it.

you just need to edit the default.bam if you download the src

after you change the lines you dont need to change it every time...

puhh sry for my bad english but i tried to explane you tongue

-Stripe

9

Re: [HELP] Problem Compiling with Mac OS X SnowLeopard

Stripe wrote:

default.bam is for everything you want to compile so for everthing you want to compile you need to change the lines.

you can make a default.bam with that I post you so you can paste the new default.bam in the teeworlds-src

or you open it with textedit and edit it.

you just need to edit the default.bam if you download the src

after you change the lines you dont need to change it every time...

puhh sry for my bad english but i tried to explane you tongue

-Stripe

ah ok thanks..

you english is good.. smile

MertenNor

->My 24/7 servers: [NOR] Norwegian HUB <- Back Online !! big_smile
( My grammar is getting better ! smile I think.. )
-Norway

10 (edited by Stripe 2009-12-05 23:05:47)

Re: [HELP] Problem Compiling with Mac OS X SnowLeopard

Edit// okey puhh you understand that what i wanna say to you tongue
-------------------------------------------------------------------
Yes default.bam is for the server, client you can make an other default.bam and change the default.bam everytime with the fixed one.

.Stripe
-------------------------------------------------------------------
Void if you read that

I just can say

I did youre job tongue

11

Re: [HELP] Problem Compiling with Mac OS X SnowLeopard

Thanks for your help man  smile

MertenNor

->My 24/7 servers: [NOR] Norwegian HUB <- Back Online !! big_smile
( My grammar is getting better ! smile I think.. )
-Norway

12

Re: [HELP] Problem Compiling with Mac OS X SnowLeopard

No Problem tongue