Libart lgpl

From CBLFS
Revision as of 17:02, 29 July 2007 by 24.21.231.190 (talk) (Added header fix for C++)
Jump to navigationJump to search
Download Source: http://ftp.gnome.org/pub/gnome/sources/libart_lgpl/2.3/libart_lgpl-2.3.21.tar.bz2

Introduction to Libart lgpl

Project Homepage: Unknown

Dependencies

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr &&
make

Install the package

make install &&
mv -v /usr/bin/libart2-config{,-32}

N32

Compile the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 &&
make

Install the package

make install &&
mv -v /usr/bin/libart2-config{,-n32}

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package

make install &&
mv -v /usr/bin/libart2-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/libart2-config

Needed alteration

There is a patch that needs to be applied to one of the installed headers to allow C++ programs/libraries (e.g. KdeLibs) to link correctly. You can find the patch referenced in the KDE mailing list Re: libart_lgpl 2.3.18+ breaks kdelibs3. Perform the following commands to fix the library:

sed -i -e '/^void \*art_alloc/i #ifdef __cplusplus\nextern "C" {\n#endif' \
       -e '/^void \*art_realloc/a #ifdef __cplusplus\n}\n#endif' \
       /usr/include/libart-2.0/linart_lgpl/art_misc.h

Contents

Installed Programs: libart2-config
Installed Libraries: libart_lgpl_2.{so,a}
Installed Directories: /usr/include/libart-2.0

Short Descriptions

libart_lgpl_2.{so,a} is used as the anti-aliased render engine for libgnomecanvas and as a graphics support library for many other packages.