Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MinGW x64 dependencies missing #217

Closed
rubenvb opened this issue May 1, 2012 · 3 comments
Closed

MinGW x64 dependencies missing #217

rubenvb opened this issue May 1, 2012 · 3 comments
Assignees
Labels
Milestone

Comments

@rubenvb
Copy link

rubenvb commented May 1, 2012

Using toolchains from MinGW-w64, one can build both x86 and x64 binaries for Windows using GCC.
Unfortunately, the required dependencies for 64-bit MinGW are missing, resulting in undefined reference errors (in the below case, to FreeType symbols):

Linking CXX shared library ..\..\..\lib\sfml-graphics-2.dll
Creating library file: ..\..\..\lib\libsfml-graphics.a
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x884): undefined reference to `FT_Set_Pixel_Sizes'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x927): undefined reference to `FT_Get_Char_Index'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x939): undefined reference to `FT_Get_Char_Index'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x953): undefined reference to `FT_Get_Kerning'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x10e1): undefined reference to `FT_Done_Face'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x10fc): undefined reference to `FT_Done_FreeType'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x113d): undefined reference to `FT_Init_FreeType'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x1208): undefined reference to `FT_Open_Face'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x121b): undefined reference to `FT_Select_Charmap'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x13af): undefined reference to `FT_Init_FreeType'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x13d7): undefined reference to `FT_New_Memory_Face'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x13ea): undefined reference to `FT_Select_Charmap'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x150b): undefined reference to `FT_Init_FreeType'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x152b): undefined reference to `FT_New_Face'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x153e): undefined reference to `FT_Select_Charmap'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x16bf): undefined reference to `FT_Init_FreeType'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x16f2): undefined reference to `FT_New_Memory_Face'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x1705): undefined reference to `FT_Select_Charmap'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x32e0): undefined reference to `FT_Load_Char'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x32fa): undefined reference to `FT_Get_Glyph'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x3342): undefined reference to `FT_Glyph_To_Bitmap'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x3372): undefined reference to `FT_Bitmap_Embolden'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x33bf): undefined reference to `FT_Glyph_To_Bitmap'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x340c): undefined reference to `FT_Done_Glyph'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x3901): undefined reference to `FT_Outline_Embolden'
CMakeFiles\sfml-graphics.dir/objects.a(Font.cpp.obj):Font.cpp:(.text+0x3919): undefined reference to `FT_Glyph_To_Bitmap'

If you need assistance in building the dependencies or installing a MinGW-w64 toolchain, I'll be very glad to help with that.

@ghost ghost assigned LaurentGomila May 1, 2012
@EricMCornelius
Copy link

I am working on just this very issue actually. I've gotten libfreetype and libglew built with ruben's most recent win64 mingw64 release. The libjpeg from mingw64's sourceforge site seems to work as a 64-bit replacement.

Looking into libopenal and libsndfile now.

@LaurentGomila
Copy link
Member

Looking into libopenal and libsndfile now.

There are already 64-bits versions of the libopenal and libsndfile DLLs in the SFML repository, so all you have to do is to regenerate the import libraries, there's no need to compile them.

@LaurentGomila
Copy link
Member

Fixed by #356

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants