Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: ham on May 01, 2011, 06:48:20 pm
-
hi,
im trying to build a static library (.a) for freetype2.4.4 on win32 with mingw/msys,
but i cant get it done.
- Has somebody done this before?
- is there a working project file available?
- what files have to be included and what settings have to be made?
- is it possible to link "freetype.a" to my own lib, so that it is fully included in other projects using only my .a lib?
thx for help
EDIT: i imported a vs2008 solution and it built the freetype244.a
but when i build my own lib it does not include the ft2.a, what must i do.
i included my own lib in an other project but errors at linking with missing freetype2 functions!!!
-
- is it possible to link "freetype.a" to my own lib, so that it is fully included in other projects using only my .a lib?
There is no direct way, because .a is an archive (ar archive) of object files and there is not dependency info stored in it.
Probably you can pack the freetype object files in your static lib, but I've not tried it.
-
Yes, it is possible, I have done it (with 2.4.3)
The fatest way is to import the VC2008 project file (in folder builds\win32\vc2008). It works both for DLL & static lib
Do not forget to define FT2_BUILD_LIBRARY in compilers options.
It compiles fine with Mingw TDM 4.5
I have attached the project file I used for my version (place it in the folder builds\win32\vc2008).
Best regards,
Sebastien
-
hi,
thx for the infos,
ft244 seems to work just great with the imported vc9 solution.
the problem with the lib in a lib im going to solve later.
have a nice day