[Top][All Lists]

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

[ft-devel] couple of new issues with 2.5.1

From: Hin-Tak Leung
Subject: [ft-devel] couple of new issues with 2.5.1
Date: Tue, 26 Nov 2013 10:03:46 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 SeaMonkey/2.21

Hi Werner,

Found two new issues with 2.5.1 (vs 2.5.0):

- ftgrid in demos now fails to compile due to missing symbol when
freetype itself is built in release mode. It used to work in 2.5.0.
I found the commit which broke this was:

commit fb964cdcd8fddd7722826379c28bcbece7b1d8fd
Author: Werner Lemberg <address@hidden>
Date:   Thu Nov 21 16:40:56 2013 +0100

    [ftgrid] Fix compilation with C++.

reverting this change make compiling against release mode lib work again.
Please investigate.

- cross-compile with libpng enabled now fails about use of libpng-config.
The fedora cross-compile tool chain actually sets $LIBPNG_CONFIG which can
do the right thing for generating $LIBPNG_CFLAGS and $LIBPNG_LDFLAGS on the fly.
Here is an ugly patch which seems to work:

--- freetype-2.5.1/builds/unix/configure~       2013-11-24 23:29:43.692859120 
+++ freetype-2.5.1/builds/unix/configure        2013-11-26 09:40:57.980294467 
@@ -4777,14 +4777,10 @@
       as_fn_error $? "\`libpng-config' not found;
 either set the LIBPNG_CFLAGS and LIBPNG_LDFLAGS environment variables,
 or pass \`--without-png' to the \`configure' script." "$LINENO" 5
-    elif test ${cross_compiling} = yes; then
-      as_fn_error $? "\`libpng-config' should not be used in cross-building;
-either set the LIBPNG_CFLAGS and LIBPNG_LDFLAGS environment variables,
-or pass \`--without-png' to the \`configure' script." "$LINENO" 5
-    LIBPNG="`libpng-config --libs`"
-    LIBPNG_CFLAGS="`libpng-config --cflags`"
-    LIBPNG_LDFLAGS="`libpng-config --ldflags`"
+    LIBPNG="`$LIBPNG_CONFIG --libs`"
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_LDFLAGS" >&5

Can you consider improving/modifying on this ugly patch to allow libpng-enabled cross-compile based on $LIBPNG_CONFIG being set?


reply via email to

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