I'll let Grumble fix this, but for a temp fix, I think you can edit the 
SConscript file

change line 152:                self.conf.env.Append(LINKFLAGS = [ 
'-framework', 'OpenGL' ])
to                                      self.conf.env.Append(LINKFLAGS = [ 
'-framework', 'OpenGL', '-framework', 'Cocoa'  ])

PS- tell me if this works
PS2-- doesn't the 64-bit build work for you?


On Jan 13, 2012, at 12:44 PM, Andy Milne wrote:

> Hi,
> 
> I followed the recipe Josh has on the Wiki to build pingus 0.7.6, except I'm 
> using OSX 10.7.2. Thanks for the recipe - it really helped.
> 
> I'm at the linker stage and I can see that the following line:
> 
> g++ -o build/pingus -framework OpenGL build/src/main.o build/libpingus.a 
> -L/usr/local/lib -lboost_signals -lpng15 -lSDL -lSDL_image -lSDL_mixer -liconv
> 
> really should be:
> ++ -o build/pingus -framework Cocoa -framework OpenGL build/src/main.o 
> build/libpingus.a -L/usr/local/lib -lboost_signals -lpng15 -lSDL -lSDL_image 
> -lSDL_mixer -liconv
> 
> Cocoa is required to pick up the missing symbols like CFBundleGetMainBundle() 
> etc.. see error at the bottom if you're interested.
> 
> I'm not used to the tool chain for building pingus, and I figure you might be 
> able to quickly point me in the right direction?
> 
> Thanks,
> 
> Andy.
> 
> 
> 
> g++ -o build/pingus -framework OpenGL build/src/main.o build/libpingus.a 
> -L/usr/local/lib -lboost_signals -lpng15 -lSDL -lSDL_image -lSDL_mixer -liconv
> Undefined symbols for architecture x86_64:
>   "_CFBundleGetMainBundle", referenced from:
>       PingusMain::init_path_finder()       in libpingus.a(pingus_main.o)
>   "_CFBundleCopyResourcesDirectoryURL", referenced from:
>       PingusMain::init_path_finder()       in libpingus.a(pingus_main.o)
>   "_CFURLGetFileSystemRepresentation", referenced from:
>       PingusMain::init_path_finder()       in libpingus.a(pingus_main.o)
>   "_CFRelease", referenced from:
>       PingusMain::init_path_finder()       in libpingus.a(pingus_main.o)
>       System::get_language()      in libpingus.a(system.o)
>   "_CFLocaleCopyPreferredLanguages", referenced from:
>       System::get_language()      in libpingus.a(system.o)
>   "_CFArrayGetValueAtIndex", referenced from:
>       System::get_language()      in libpingus.a(system.o)
>   "_CFStringCreateWithSubstring", referenced from:
>       System::get_language()      in libpingus.a(system.o)
>   "_CFStringGetCString", referenced from:
>       System::get_language()      in libpingus.a(system.o)
> ld: symbol(s) not found for architecture x86_64
> collect2: ld returned 1 exit status
> scons: *** [build/pingus] Error 1
> scons: building terminated because of errors.
> 
> _______________________________________________
> Pingus-Devel mailing list
> Pingus-Devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/pingus-devel

_______________________________________________
Pingus-Devel mailing list
Pingus-Devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/pingus-devel

Reply via email to