Code: Select all
g++ -o libGiGiSDL.dylib -Wl,-framework,Cocoa -dynamiclib src/SDL/SDLGUI.os -L/Developer/src/freeorion/FreeOrion/osx/dep/local/lib -L/usr/local/lib -lboost_signals-xgcc40-mt-1_37 -lboost_system-xgcc40-mt-1_37 -lboost_filesystem-xgcc40-mt-1_37 -lboost_thread-xgcc40-mt-1_37 -lGL -lGLU -lz -lfreetype -ljpeg -lpng -ltiff -lSDLmain -lSDL
Undefined symbols:
"GG::Y1", referenced from:
__ZN2GG2Y1E$non_lazy_ptr in SDLGUI.os
"GG::GUI::Wait(unsigned int)", referenced from:
vtable for GG::SDLGUIin SDLGUI.os
"GG::FlagSpec<GG::ModKey>::instance()", referenced from:
(anonymous namespace)::GetSDLModKeys() in SDLGUI.os
(anonymous namespace)::GetSDLModKeys() in SDLGUI.os
(anonymous namespace)::GetSDLModKeys() in SDLGUI.os
(anonymous namespace)::GetSDLModKeys() in SDLGUI.os
(anonymous namespace)::GetSDLModKeys() in SDLGUI.os
(anonymous namespace)::GetSDLModKeys() in SDLGUI.os
(anonymous namespace)::GetSDLModKeys() in SDLGUI.os
GG::Flags<GG::ModKey>::Flags(GG::ModKey)in SDLGUI.os
"GG::GUI::Render()", referenced from:
vtable for GG::SDLGUIin SDLGUI.os
"GG::MOD_KEY_LCTRL", referenced from:
__ZN2GG13MOD_KEY_LCTRLE$non_lazy_ptr in SDLGUI.os
"GG::GUI::CreateModalEventPump(bool&)", referenced from:
vtable for GG::SDLGUIin SDLGUI.os
"GG::MOD_KEY_RALT", referenced from:
__ZN2GG12MOD_KEY_RALTE$non_lazy_ptr in SDLGUI.os
"GG::EventPump::operator()()", referenced from:
GG::SDLGUI::Run() in SDLGUI.os
"GG::GUI::EnableMouseButtonDownRepeat(unsigned int, unsigned int)", referenced from:
GG::SDLGUI::SDLInit() in SDLGUI.os
Code: Select all
"vtable for GG::EventPump", referenced from:
__ZTVN2GG9EventPumpE$non_lazy_ptr in SDLGUI.os
"GG::MOD_KEY_MODE", referenced from:
__ZN2GG12MOD_KEY_MODEE$non_lazy_ptr in SDLGUI.os
"GG::X0", referenced from:
__ZN2GG2X0E$non_lazy_ptr in SDLGUI.os
ld: symbol(s) not found
collect2: ld returned 1 exit status
scons: *** [libGiGiSDL.dylib] Error 1
scons: building terminated because of errors.
I built SDL from source so presumably I did something wrong there. I picked this out of the SDL compile:
Code: Select all
ranlib: file: build/.libs/libSDL.a(SDL_audiodev.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_mixer_MMX_VC.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_mixer_m68k.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_getenv.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_malloc.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_qsort.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_stdlib.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_nullmouse.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_dgamouse.o) has no symbols
ranlib build/.libs/libSDL.a
ranlib: file: build/.libs/libSDL.a(SDL_audiodev.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_mixer_MMX_VC.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_mixer_m68k.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_getenv.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_malloc.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_qsort.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_stdlib.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_nullmouse.o) has no symbols
ranlib: file: build/.libs/libSDL.a(SDL_dgamouse.o) has no symbols
creating build/libSDL.la