freetype
[Top][All Lists]
Advanced

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

Re: [Freetype] Make: no valid name for 'include'


From: Tom Kacvinsky
Subject: Re: [Freetype] Make: no valid name for 'include'
Date: Tue, 6 Mar 2001 17:46:04 -0500 (EST)

Nope.  The problem is that there is no "-R /usr/local/lib" in the
configure test.  The configure test should expand to have the
following compilation of conftest (presuming that libfreetype.so
is installed in /usr/local/lib):

  g++ -o conftest -D_REENTRANT -I/usr/local/include -L/usr/local/lib
  -R /usr/local/lib -L/usr/X11R6/lib conftest.cc -ltiff -lfreetype
  -ljpeg -lpng -lXext -lXt  -lSM -lICE -lX11  -lz

Or perhaps "-Wl,-R,/usr/local/lib" in place of "-R /usr/local/lib".
It depends on the platform and how gcc/g++ were compiled (and hence on
what linker is used).  It might also depend on what libtool does
(ImageMagick uses libtool).

I'd have to say that this is configure run problem.  Try setting the
LDFLAGS env. variable to use the -R flag *before* running configure.
Make sure you do a "make distclean" before reconfiguring.

On Tue, 6 Mar 2001, Jeremy Wadsack wrote:

> Werner LEMBERG wrote:
>
>  >> [freetype-2.0]# make setup
>  >> builds/modules.mk:74: no file name for `include'
>  >
>  >
>  > Which shell do you use?  Which GNU make version?  I suspect that for
>  > some reasons the `wildcard' function in `make' doesn't work properly.
>  >
>  > Everything is OK for me with bash-2.03 and GNU make 3.78.1.
>
> All the systems that I've tried this on appear to have GNU make 3.77. I
> use bash shell (1.14.7 on the server I'm looking at right now).
>
> Upgrading to make 1.79.1 (on a different server with bash 2.01.1) seems
> to make the build perform correctly, but I'm not convinced it's working.
> I'm trying to build ImageMagick with TTF support and ImageMagick fails
> configure with this:
>
> configure:12565: checking whether the C++ compiler works
> configure:12580: g++ -o conftest   -D_REENTRANT  -I/usr/local/include
> -L/usr/local/lib  -L/usr/X11R6/lib conft
> est.cc -ltiff -lfreetype -ljpeg -lpng -lXext -lXt  -lSM -lICE -lX11  -lz
> -lpthread -lm  >&5
> configure:12583: $? = 0
> configure:12585: test -s conftest
> configure:12588: $? = 0
> configure:12593: ./conftest
> ./conftest: error while loading shared libraries: libfreetype.so.6:
> cannot load shared object file: No such file
>   or directory
> configure:12596: $? = 127
>
> A quick check of /usr/local/lib shows that the libfreetype.so.6 link is
> there:
>
> -rw-r--r--   1 root     staff     1213260 Mar  6 15:16 libfreetype.a
> -rwxr-xr-x   1 root     staff         666 Mar  6 15:16 libfreetype.la
> lrwxrwxrwx   1 root     staff          20 Mar  6 15:16 libfreetype.so ->
> libfreetype.so.6.0.1
> lrwxrwxrwx   1 root     staff          20 Mar  6 15:16 libfreetype.so.6
> -> libfreetype.so.6.0.1
> -rwxr-xr-x   1 root     staff      704375 Mar  6 15:16 libfreetype.so.6.0.1
>
>
> So I suspect the "cannot load shared object file" has to do with a
> problem in the freetype library?
>
>




reply via email to

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