[GEM-dev] FTGL on OSX (was Re: compiling GEM on osx)

IOhannes m zmoelnig zmoelnig at iem.at
Tue Jun 14 15:00:12 CEST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2011-06-14 14:07, Nicolas Montgermont wrote:
> Le 14/06/11 12:46, IOhannes m zmoelnig a écrit :
>> so i tried to build Gem on OSX using a static version of FTGL and
>> eventually succeeded.
>> i wrote everything down in the FAQ [1].
> ok cool, i'll try that as soon as I have time.
>> short summary: build freetype&  ftgl as (multiarch and) _static_. and
>> install. then link Gem against it.
> just for the information, i thought to build statically on osx, one has
> to link against the *.a lib like:
> "/usr/local/lib/libftgl.a" instead of "-lftgl"
> but in your code you use the second way.
> Is there another way of linking statically

it should work in my case, since i explicitely built freetype and ftgl
as static-only (--disable-shared); so there is no libftgl.dylib anywhere
to be found and thus the linker will be forced to do static linking.

otoh, i just noticed that my built failed again (at least, the binary
was not useable)
tweaking around with the .la files can fix the problem, but of course
this is no real solution.

otoh, if you build freetype and FTGL like normal (enabling (or: not
disabling) the building of a shared lib), the "-lftgl -lfreetype" should
work fine
however, this will make your Gem depend on freetype/FTGL being installed
on the target system (which might be ok for your machine, but is
suboptimal for distributable binaries)

fgmasdr
IOhannes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk33W1kACgkQkX2Xpv6ydvT8CQCgofMbKsl91IPPZl9D7X6t5TLq
J0AAnjoswZB8sl0XYagSsiv9lH06t/yF
=9CJ2
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3636 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20110614/985d4f24/attachment.bin>


More information about the GEM-dev mailing list