Author Topic: compiling freetype244 with C::B  (Read 5068 times)

Offline ham

  • Multiple posting newcomer
  • *
  • Posts: 23
compiling freetype244 with C::B
« 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!!!
« Last Edit: May 01, 2011, 07:26:19 pm by ham »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: compiling freetype244 with C::B
« Reply #1 on: May 01, 2011, 07:29:54 pm »
- 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline seb_seb0

  • Almost regular
  • **
  • Posts: 166
Re: compiling freetype244 with C::B
« Reply #2 on: May 01, 2011, 08:57:48 pm »
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

Offline ham

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: compiling freetype244 with C::B
« Reply #3 on: May 01, 2011, 10:52:46 pm »
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