|
From: | Andy Milne |
Subject: | Re: [Pingus-Devel] OSX Lion build help |
Date: | Sun, 15 Jan 2012 17:31:53 -0800 |
I'll let Grumble fix this, but for a temp fix, I think you can edit the SConscript filechange line 152: self.conf.env.Append(LINKFLAGS = [ '-framework', 'OpenGL' ])to self.conf.env.Append(LINKFLAGS = [ '-framework', 'OpenGL', '-framework', 'Cocoa' ])PS- tell me if this worksPS2-- 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 -liconvreally 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 -liconvCocoa 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 -liconvUndefined 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_64collect2: ld returned 1 exit statusscons: *** [build/pingus] Error 1scons: building terminated because of errors.
Pingus-Devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/pingus-devel
_______________________________________________
Pingus-Devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/pingus-devel
[Prev in Thread] | Current Thread | [Next in Thread] |