pingus-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-Devel] OSX Lion build help


From: Andy Milne
Subject: [Pingus-Devel] OSX Lion build help
Date: Fri, 13 Jan 2012 12:44:13 -0800

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]