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.. ( this need to be edited in the Teewiki)
Thanks..
MertenNor

( My grammar is getting better !

-Norway