Re: Wine and libfreetype.so

[email protected]
Newsgroups gmane.os.opendarwin.darwinports
Message-ID <[email protected]>
On Aug 4, 2006, at 10:49 AM, Joe Auty wrote:

> I've been trying to build Wine on my Macbook Pro, and it actually  
> builds and installs just fine. The problem is, Wine cannot find  
> Freetype at launch time and complains accordingly. Looking at the  
> source, I believe it is looking for libfreetype.so.
>
> Does anybody know how I can obtain this file to satisfy this  
> requirement? The freetype Darwinport does not include this file:

Actually, it does in a way, but it's named differently:

> /opt/local/lib/libfreetype.dylib

Note that Darwin/Mac OS X uses the dylib extension for dynamic shared  
libraries. You might be able to simply patch the source so that it  
includes the extension when searching for the library. The way it's  
being used might require some other modifications for proper use.

<http://fink.sourceforge.net/doc/porting/shared.php>:
> Mach-O shared libraries have the file type MH_DYLIB and carry the  
> extension .dylib. They can be linked against with the usual static  
> linker flags, e.g. -lfoo for libfoo.dylib. However, they can not be  
> loaded as a module. (Side note: Shared libraries can be loaded  
> dynamically through an API. However, that API is different from the  
> API for bundles and the semantics make it useless for an dlopen()  
> emulation. Most notably, shared libraries can not be unloaded.)

You might be able to refer the cc_dl_available() function within Coin3D:
<http://www.coin3d.org/source/viewcvs/src/glue/dl.c? 
rev=1.38&sortby=log&view=log>

Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.