freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] couple of new issues with 2.5.1


From: Werner LEMBERG
Subject: Re: [ft-devel] couple of new issues with 2.5.1
Date: Tue, 26 Nov 2013 12:36:46 +0100 (CET)

> - 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.

Uh, oh, for me it compiles just fine, using gcc 4.7.2.  What commands
did you try?  Which compiler version?  After unpacking the two
archives I did

  ln -s freetype-2.5.1 freetype2
  cd freetype-2.5.1
  make devel
  make
  cd ../ft2demos-2.5.1
  make

> - 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.  [...]
>
> Can you consider improving/modifying on this ugly patch to allow
> libpng-enabled cross-compile based on $LIBPNG_CONFIG being set?

I'm not an expert in cross compiling, but relying on a
distribution-specific environment variable like $LIBPNG_CONFIG is
problematic.  Why not setting LIBPNG_CFLAGS and LIBPNG_LDFLAGS as
advertised on the command line?

  LIBPNG_CFLAGS=`$LIBPNG_CONFIG --cflags` \
  LIBPNG_LDFLAGS=`$LIBPNG_CONFIG --ldflags` \
  ./configure --host=... \
              --build=...

Behdad outlined a solution for pkg-config; see this thread:

  http://lists.nongnu.org/archive/html/freetype-devel/2013-09/msg00005.html


    Werner



reply via email to

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