[sldev] [HELP] CMake: Errors when linking linux-crash-logger
(undefined reference to `FT_Realloc'/`FT_Alloc'/`FT_Free')
Boroondas Gupte
sllists at boroon.dasgupta.ch
Mon Sep 8 08:12:11 PDT 2008
Ambrosia schrieb:
> You listed the .so, .a and .la files. Those are the finished, compiled
> freetype libraries..but not the development package :>
>
> Basically, in most distros, packages ending with -dev contain the
> source code for the appropriate item. in this case, the freetype
> library source. Since you are using Gentoo tho, the source should be
> on your system in the first place. I wonder. It's been a while since I
> used gentoo, but search Portage for a specific -dev package for that
> lib, and/or check if the source is still on your system.
As far as I know, gentoo doesn't have any *-dev packages. I can get the
source by unpacking /usr/portage/distfiles/freetype-2.3.7.tar.bz2, but I
can't imagine why SL would need it, or where I'd have to place it to be
found. Here's all the files media-libs/freetype-2.3.7 comes with:
>> $> equery files freetype
>> [ Searching for packages matching freetype... ]
>> * Contents of media-libs/freetype-2.3.7:
>> /usr
>> /usr/bin
>> /usr/bin/freetype-config
>> /usr/include
>> /usr/include/freetype2
>> /usr/include/freetype2/freetype
>> /usr/include/freetype2/freetype/config
>> /usr/include/freetype2/freetype/config/ftconfig.h
>> /usr/include/freetype2/freetype/config/ftheader.h
>> /usr/include/freetype2/freetype/config/ftmodule.h
>> /usr/include/freetype2/freetype/config/ftoption.h
>> /usr/include/freetype2/freetype/config/ftstdlib.h
>> /usr/include/freetype2/freetype/freetype.h
>> /usr/include/freetype2/freetype/ftbbox.h
>> /usr/include/freetype2/freetype/ftbdf.h
>> /usr/include/freetype2/freetype/ftbitmap.h
>> /usr/include/freetype2/freetype/ftcache.h
>> /usr/include/freetype2/freetype/ftchapters.h
>> /usr/include/freetype2/freetype/ftcid.h
>> /usr/include/freetype2/freetype/fterrdef.h
>> /usr/include/freetype2/freetype/fterrors.h
>> /usr/include/freetype2/freetype/ftgasp.h
>> /usr/include/freetype2/freetype/ftglyph.h
>> /usr/include/freetype2/freetype/ftgxval.h
>> /usr/include/freetype2/freetype/ftgzip.h
>> /usr/include/freetype2/freetype/ftimage.h
>> /usr/include/freetype2/freetype/ftincrem.h
>> /usr/include/freetype2/freetype/ftlcdfil.h
>> /usr/include/freetype2/freetype/ftlist.h
>> /usr/include/freetype2/freetype/ftlzw.h
>> /usr/include/freetype2/freetype/ftmac.h
>> /usr/include/freetype2/freetype/ftmm.h
>> /usr/include/freetype2/freetype/ftmodapi.h
>> /usr/include/freetype2/freetype/ftmoderr.h
>> /usr/include/freetype2/freetype/ftotval.h
>> /usr/include/freetype2/freetype/ftoutln.h
>> /usr/include/freetype2/freetype/ftpfr.h
>> /usr/include/freetype2/freetype/ftrender.h
>> /usr/include/freetype2/freetype/ftsizes.h
>> /usr/include/freetype2/freetype/ftsnames.h
>> /usr/include/freetype2/freetype/ftstroke.h
>> /usr/include/freetype2/freetype/ftsynth.h
>> /usr/include/freetype2/freetype/ftsystem.h
>> /usr/include/freetype2/freetype/fttrigon.h
>> /usr/include/freetype2/freetype/fttypes.h
>> /usr/include/freetype2/freetype/ftwinfnt.h
>> /usr/include/freetype2/freetype/ftxf86.h
>> /usr/include/freetype2/freetype/t1tables.h
>> /usr/include/freetype2/freetype/ttnameid.h
>> /usr/include/freetype2/freetype/tttables.h
>> /usr/include/freetype2/freetype/tttags.h
>> /usr/include/freetype2/freetype/ttunpat.h
>> /usr/include/ft2build.h
>> /usr/lib
>> /usr/lib/libfreetype.a
>> /usr/lib/libfreetype.la
>> /usr/lib/libfreetype.so -> libfreetype.so.6.3.18
>> /usr/lib/libfreetype.so.6 -> libfreetype.so.6.3.18
>> /usr/lib/libfreetype.so.6.3.18
>> /usr/lib/pkgconfig
>> /usr/lib/pkgconfig/freetype2.pc
>> /usr/share
>> /usr/share/aclocal
>> /usr/share/aclocal/freetype2.m4
>> /usr/share/doc
>> /usr/share/doc/freetype-2.3.7
>> /usr/share/doc/freetype-2.3.7/CHANGES.bz2
>> /usr/share/doc/freetype-2.3.7/CUSTOMIZE.bz2
>> /usr/share/doc/freetype-2.3.7/ChangeLog.bz2
>> /usr/share/doc/freetype-2.3.7/DEBUG.bz2
>> /usr/share/doc/freetype-2.3.7/PATENTS.bz2
>> /usr/share/doc/freetype-2.3.7/README.bz2
>> /usr/share/doc/freetype-2.3.7/TODO.bz2
>> /usr/share/doc/freetype-2.3.7/formats.txt.bz2
>> /usr/share/doc/freetype-2.3.7/raster.txt.bz2
I noticed that in the pre-cmake build process, the header directory
/usr/include/freetype2/freetype/ was copied into the tree, but nowadays
the destination is already populated by './develop.py configure' with
files from freetype-2.1.5. I just tried replacing them with the ones
from /usr/include/freetype2/freetype/, but the linking errors persisted.
The relevant declarations seem to be in
./linden/libraries/include/freetype/internal/ftmemory.h, which isn't
present under /usr/include anyway.
Boroondas
More information about the SLDev
mailing list