hypeartist / fog

Automatically exported from code.google.com/p/fog
0 stars 0 forks source link

Library suffix on Mac OS X #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Actually, library suffixes are:
- .dylib
- .bundle
- .so
But the library class (Core/Library.h) only allows to specify one suffix
(in this case: .bundle), so for example the freetype library cannot be loaded.

Original issue reported on code.google.com by niels.pf...@gmail.com on 12 Dec 2009 at 11:05

GoogleCodeExporter commented 8 years ago
Hi Niels,

Is acceptable solution to first try .bundle extension and then .so extension? I 
read
something about this and it seems that only .bundle and .so are loadable 
libraries.

I will try to solve this problem now so you can test it.

Original comment by kobalicek.petr on 12 Dec 2009 at 2:09

GoogleCodeExporter commented 8 years ago
Hi Petr,

.dylib files can normally be loaded with dlopen(). And on my system, dylib is 
the
standard extension for dynamic libraries, also freetype has this extension. 

Bes

Original comment by niels.pf...@gmail.com on 12 Dec 2009 at 2:42

GoogleCodeExporter commented 8 years ago
Ok, I implemented new architecture that allows to set more library extensions at
startup and in case that used wants to open library with system extension it now
tries to traverse list of extensions.

I'm not closing it, because I don't know if this will work. Please try trunk 
and post
here results.

Thanks

Original comment by kobalicek.petr on 12 Dec 2009 at 4:00

GoogleCodeExporter commented 8 years ago
OK, it works fine now. All libraries can be loaded on Mac. 

Original comment by niels.pf...@gmail.com on 20 Dec 2009 at 2:14