discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ubuntu freetype link problem PDFKit


From: Fred Kiefer
Subject: Re: Ubuntu freetype link problem PDFKit
Date: Thu, 19 Jan 2017 14:56:08 +0100

> Am 19.01.2017 um 14:34 schrieb Riccardo Mottola <riccardo.mottola@libero.it>:
> I have trouble using the new release of PDFKit (do not remember the old one) 
> on Ubuntu.
> The linking flags for freetype are now "queried" this way and this is clean:
> LIB_FREETYPE_LDFLAGS := $(shell freetype-config --libs)
> 
> It works on BSDs, other Linux distributions, all is fine. On OpenBSD I need a 
> special hack, I need to -r in the library path this way:
> ifeq ($(findstring openbsd, $(GNUSTEP_TARGET_OS)), openbsd)
> LIB_FREETYPE_LDFLAGS  += -Wl,-rpath=/usr/X11R6/lib
> endif
> 
> I personally think this is a "bug" in OpenBSD's freetype/config.
> 
> On Ubuntu I have a also a similar issue: PDFKit compiles fine, but then it 
> fails to resolve symbols.
> The actual library is located in:
> 
> /usr/lib/i386-linux-gnu/libfreetype.so
> 
> However:
> $ freetype-config --libs
> -lfreetype
> 
> I wonder i there is a bug, like a missing symlink in Ubuntu? or a bug in 
> freetype-config?
> 
> I don't have clean workaround like in OpenBSD: I do not know how to guess the 
> actual directory (architecture dependent) and also how  to detect I am 
> running on Linux, Isince the TARGET_OS is linux and on other linux systems it 
> works fine.
> 
> Any opinions? Any ubuntu experts?

I am no expert but to me this output sounds correct. Maybe your ld is 
misconfigured? Have you looked into /etc/ld.so.conf? There all the standard 
library directories should be listed. How did you install free type on the 
Ubuntu machine?

Fred


reply via email to

[Prev in Thread] Current Thread [Next in Thread]