Re: prerelease 4



On Sun, 2 Mar 2003, James K. Lowden wrote:
On Thu, 27 Feb 2003 14:02:29 -0600, Lars Clausen <lrclause cs uiuc edu>
wrote:

... 0.91-pre4.tar.gz....  ... will hopefully be the final version.

I thought I'd be the first to compile it on NetBSD, but I'm missing
something, apparently.  I have freetype-2.1.3.  

$ ../configure --enable-gnome
...
checking for GLIB - version >= 2.0.0... yes (version 2.2.1)
checking for pkg-config... (cached) /usr/pkg/bin/pkg-config
checking for GTK+ - version >= 2.0.0... yes (version 2.2.1)
checking for pango >= 1.1.5... yes
checking PANGOVERSION_CFLAGS... -I/usr/pkg/include/pango-1.0
-I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include  
checking PANGOVERSION_LIBS... -Wl,-R/usr/pkg/lib -Wl,--export-dynamic
-L/usr/pkg/lib -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl
-liconv -lm  
checking for pangoft2... yes
checking PANGOFT2_CFLAGS... -I/usr/pkg/include/pango-1.0
-I/usr/pkg/include -I/usr/X11R6/include/freetype2
-I/usr/pkg/include/glib/glib-2.0 -I/usr/pkg/lib/glib-2.0/include  
checking PANGOFT2_LIBS... -Wl,-R/usr/pkg/lib -Wl,--export-dynamic
-L/usr/pkg/lib -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0
-lglib-2.0 -lintl -liconv -lm  
checking for FT_Init_FreeType in -lfreetype... no
configure: error: Can't find FreeType library

$ pkg_info -L freetype2 |grep lib
/usr/pkg/include/freetype2/freetype/config/ftstdlib.h
/usr/pkg/lib/libfreetype.a
/usr/pkg/lib/libfreetype.la
/usr/pkg/lib/libfreetype.so
/usr/pkg/lib/libfreetype.so.9
/usr/pkg/lib/libfreetype.so.9.2

I'm suspecting that them being in /usr/pkg/lib is what confuses configure.
You can check that by looking at config.log and see what the failed test
looks like.  Ah, now I figured out how to tell AC_CHECK_LIB to use other
libs.  Try this patch and let me know if it works:

===================================================================
RCS file: /cvs/gnome/dia/configure.in,v
retrieving revision 1.187
diff -r1.187 configure.in
64c64
<   AC_CHECK_LIB(freetype,FT_Init_FreeType,have_freetype=true)
---
  AC_CHECK_LIB(freetype,FT_Init_FreeType,have_freetype=true,have_freetype=false,`freetype-config --libs`)
78c78
<        FREETYPE_LIBS=-lfreetype
---
       FREETYPE_LIBS=`freetype-config --libs`

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| HÃrdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?



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