Hiura, thanks for your work on SFML2.
For reference, I am running OSX 10.6.4, gcc 4.2.1. I was able to build the static libraries successfully using cmake -> unix makefiles. However when trying to compile any of the graphical examples provided with SFML2, I get lots of undefined symbols. I can paste the first third or so here:
Undefined symbols:
"_jpeg_write_scanlines", referenced from:
sf::priv::ImageLoader::WriteJpg(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<unsigned char, std::allocator<unsigned char> > const&, unsigned int, unsigned int)in libsfml-graphics-s-d.a(ImageLoader.cpp.o)
"_FT_Get_Char_Index", referenced from:
sf::Font::GetKerning(unsigned int, unsigned int, unsigned int) constin libsfml-graphics-s-d.a(Font.cpp.o)
sf::Font::GetKerning(unsigned int, unsigned int, unsigned int) constin libsfml-graphics-s-d.a(Font.cpp.o)
"_objc_msgSend_fpret", referenced from:
-[SFWindowController resizeTo:by:] in libsfml-window-s-d.a(SFWindowController.mm.o)
-[SFWindowController setWindowPositionToX:Y:] in libsfml-window-s-d.a(SFWindowController.mm.o)
-[SFWindowController screenHeight] in libsfml-window-s-d.a(SFWindowController.mm.o)
-[SFOpenGLView scrollWheel:] in libsfml-window-s-d.a(SFOpenGLView.mm.o)
".objc_class_name_NSOpenGLPixelFormat", referenced from:
literal-pointer@__OBJC@__cls_refs@NSOpenGLPixelFormat in libsfml-window-s-d.a(SFContext.mm.o)
"___glewUniform2fARB", referenced from:
___glewUniform2fARB$non_lazy_ptr in libsfml-graphics-s-d.a(Shader.cpp.o)
(maybe you meant: ___glewUniform2fARB$non_lazy_ptr)
"___glewCreateProgramObjectARB", referenced from:
___glewCreateProgramObjectARB$non_lazy_ptr in libsfml-graphics-s-d.a(Shader.cpp.o)
(maybe you meant: ___glewCreateProgramObjectARB$non_lazy_ptr)
"_FT_New_Face", referenced from:
sf::Font::LoadFromFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libsfml-graphics-s-d.a(Font.cpp.o)
"_CGDisplayPixelsWide", referenced from:
sf::priv::VideoModeImpl::GetDesktopMode() in libsfml-window-s-d.a(VideoModeImpl.cpp.o)
sf::priv::VideoModeImpl::GetFullscreenModes() in libsfml-window-s-d.a(VideoModeImpl.cpp.o)
"___GLEW_ARB_vertex_shader", referenced from:
___GLEW_ARB_vertex_shader$non_lazy_ptr in libsfml-graphics-s-d.a(Shader.cpp.o)
(maybe you meant: ___GLEW_ARB_vertex_shader$non_lazy_ptr)
".objc_class_name_NSObject", referenced from:
.objc_class_name_SFApplication in libsfml-window-s-d.a(SFApplication.m.o)
"___glewCompileShaderARB", referenced from:
___glewCompileShaderARB$non_lazy_ptr in libsfml-graphics-s-d.a(Shader.cpp.o)
(maybe you meant: ___glewCompileShaderARB$non_lazy_ptr)
"_FT_Get_Glyph", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin libsfml-graphics-s-d.a(Font.cpp.o)
"_NSCalibratedRGBColorSpace", referenced from:
_NSCalibratedRGBColorSpace$non_lazy_ptr in libsfml-window-s-d.a(SFWindowController.mm.o)
(maybe you meant: _NSCalibratedRGBColorSpace$non_lazy_ptr)
".objc_class_name_NSString", referenced from:
literal-pointer@__OBJC@__cls_refs@NSString in libsfml-window-s-d.a(cpp_objc_conversion.mm.o)
"___glewDeleteObjectARB", referenced from:
___glewDeleteObjectARB$non_lazy_ptr in libsfml-graphics-s-d.a(Shader.cpp.o)
(maybe you meant: ___glewDeleteObjectARB$non_lazy_ptr)
"___glewGetObjectParameterivARB", referenced from:
___glewGetObjectParameterivARB$non_lazy_ptr in libsfml-graphics-s-d.a(Shader.cpp.o)
(maybe you meant: ___glewGetObjectParameterivARB$non_lazy_ptr)
"___CFConstantStringClassReference", referenced from:
cfstring=--------RRRRRRRRGGGGGGGGBBBBBBBB in libsfml-window-s-d.a(VideoModeImpl.cpp.o)
cfstring=-RRRRRGGGGGBBBBB in libsfml-window-s-d.a(VideoModeImpl.cpp.o)
cfstring=PPPPPPPP in libsfml-window-s-d.a(VideoModeImpl.cpp.o)
cfstring=NSScreenNumber in libsfml-window-s-d.a(SFWindowController.mm.o)
".objc_class_name_NSCursor", referenced from:
literal-pointer@__OBJC@__cls_refs@NSCursor in libsfml-window-s-d.a(SFWindowController.mm.o)
"___glewGetInfoLogARB", referenced from:
___glewGetInfoLogARB$non_lazy_ptr in libsfml-graphics-s-d.a(Shader.cpp.o)
(maybe you meant: ___glewGetInfoLogARB$non_lazy_ptr)
".objc_class_name_NSNotificationCenter", referenced from:
literal-pointer@__OBJC@__cls_refs@NSNotificationCenter in libsfml-window-s-d.a(SFOpenGLView.mm.o)
"___glewUniform3fARB", referenced from:
___glewUniform3fARB$non_lazy_ptr in libsfml-graphics-s-d.a(Shader.cpp.o)
(maybe you meant: ___glewUniform3fARB$non_lazy_ptr)
"_FT_Done_Glyph", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin libsfml-graphics-s-d.a(Font.cpp.o)
"_GetCurrentProcess", referenced from:
sf::priv::WindowImplCocoa::SetUpProcessAsApplication() in libsfml-window-s-d.a(WindowImplCocoa.mm.o)
"___glewUseProgramObjectARB", referenced from:
___glewUseProgramObjectARB$non_lazy_ptr in libsfml-graphics-s-d.a(Renderer.cpp.o)
___glewUseProgramObjectARB$non_lazy_ptr in libsfml-graphics-s-d.a(Shader.cpp.o)
(maybe you meant: ___glewUseProgramObjectARB$non_lazy_ptr)
"___GLEW_ARB_fragment_shader", referenced from:
___GLEW_ARB_fragment_shader$non_lazy_ptr in libsfml-graphics-s-d.a(Shader.cpp.o)
(maybe you meant: ___GLEW_ARB_fragment_shader$non_lazy_ptr)
"_FT_Select_Charmap", referenced from:
sf::Font::LoadFromMemory(void const*, unsigned long)in libsfml-graphics-s-d.a(Font.cpp.o)
sf::Font::LoadFromFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in libsfml-graphics-s-d.a(Font.cpp.o)
"___glewCreateShaderObjectARB", referenced from:
___glewCreateShaderObjectARB$non_lazy_ptr in libsfml-graphics-s-d.a(Shader.cpp.o)
(maybe you meant: ___glewCreateShaderObjectARB$non_lazy_ptr)
"___glewActiveTextureARB", referenced from:
___glewActiveTextureARB$non_lazy_ptr in libsfml-graphics-s-d.a(Shader.cpp.o)
(maybe you meant: ___glewActiveTextureARB$non_lazy_ptr)
"_NSDefaultRunLoopMode", referenced from:
_NSDefaultRunLoopMode$non_lazy_ptr in libsfml-window-s-d.a(SFApplication.m.o)
(maybe you meant: _NSDefaultRunLoopMode$non_lazy_ptr)
"_jpeg_finish_compress", referenced from:
sf::priv::ImageLoader::WriteJpg(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<unsigned char, std::allocator<unsigned char> > const&, unsigned int, unsigned int)in libsfml-graphics-s-d.a(ImageLoader.cpp.o)
".objc_class_name_NSResponder", referenced from:
.objc_class_name_SFWindowController in libsfml-window-s-d.a(SFWindowController.mm.o)
"_FT_Bitmap_Embolden", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin libsfml-graphics-s-d.a(Font.cpp.o)
"___GLEW_ARB_shader_objects", referenced from:
___GLEW_ARB_shader_objects$non_lazy_ptr in libsfml-graphics-s-d.a(Shader.cpp.o)
(maybe you meant: ___GLEW_ARB_shader_objects$non_lazy_ptr)
"_CGDisplayMoveCursorToPoint", referenced from:
-[SFWindowController setCursorPositionToX:Y:] in libsfml-window-s-d.a(SFWindowController.mm.o)
".objc_class_name_NSOpenGLView", referenced from:
.objc_class_name_SFOpenGLView in libsfml-window-s-d.a(SFOpenGLView.mm.o)
"_jpeg_stdio_dest", referenced from:
sf::priv::ImageLoader::WriteJpg(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<unsigned char, std::allocator<unsigned char> > const&, unsigned int, unsigned int)in libsfml-graphics-s-d.a(ImageLoader.cpp.o)
"_FT_Glyph_To_Bitmap", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin libsfml-graphics-s-d.a(Font.cpp.o)
"_TransformProcessType", referenced from:
sf::priv::WindowImplCocoa::SetUpProcessAsApplication() in libsfml-window-s-d.a(WindowImplCocoa.mm.o)
"_NSApp", referenced from:
_NSApp$non_lazy_ptr in libsfml-window-s-d.a(SFWindowController.mm.o)
_NSApp$non_lazy_ptr in libsfml-window-s-d.a(SFApplication.m.o)
(maybe you meant: _NSApp$non_lazy_ptr)
"_FT_Outline_Embolden", referenced from:
sf::Font::LoadGlyph(unsigned int, unsigned int, bool) constin libsfml-graphics-s-d.a(Font.cpp.o)
"___glewAttachObjectARB", referenced from:
___glewAttachObjectARB$non_lazy_ptr in libsfml-graphics-s-d.a(Shader.cpp.o)
(maybe you meant: ___glewAttachObjectARB$non_lazy_ptr)
"_CGWindowLevelForKey", referenced from:
-[SFWindowController initWithMode:andStyle:] in libsfml-window-s-d.a(SFWindowController.mm.o)
"___glewUniform4fARB", referenced from:
___glewUniform4fARB$non_lazy_ptr in libsfml-graphics-s-d.a(Shader.cpp.o)
(maybe you meant: ___glewUniform4fARB$non_lazy_ptr)
".objc_class_name_NSBitmapImageRep", referenced from:
literal-pointer@__OBJC@__cls_refs@NSBitmapImageRep in libsfml-window-s-d.a(SFWindowController.mm.o)
"_objc_msgSend", referenced from:
I have not tried with the dynamic libraries yet, will do that asap.
Edit: There appears to be no problem linking against the dynamic libs, only when I uncheck "BUILD_SHARED_LIBS" in cmake and then compile the examples to I get these errors.[/b]