컴퓨터/기타
OpenSource]Hwo to build Cairo
예섬수진
2010. 8. 9. 23:57
1. Build Environment : Cent OS
2. Required package [you can download package using sudo apt-get install]
- autoconf : make configuration file
- automake : create makefile using created configuration file
- libtool : support cross compile * originally, makefile does not consider cross compile
- gettext
3. Download source codes with git
- git clone git://anongit.freedesktop.org/git/cairo
- git clone git://anongit.freedesktop.org/git/pixman.git
* To update source, you can use "git pull" command
4. Build source
1) build pixman
- In pixman folder,
a) run "./autogen.sh" to make config file and makefile
b) run "make" to create obj files
c) run "make install" to install shared object(=dll) on local PC [location : /usr/local/lib]
2) build cairo
- In cairo folder,
a) run "./autogen.sh" to make config file and makefile
b) run "make" to create obj files
c) run "make install" to install shared object(=dll) on local PC [location : /usr/local/lib/cairo]
5. To run cairo using created library [so]
- modify LD_LIBRARY_PATH variable
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
* how to find required library on linux
1. find library on specified path [ static ]
2. find library on LD_LIBRARY_PATH
3. find library on system path
=> If system can not find library, system shows message [can not find specific so file]