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]
'컴퓨터 > 기타' 카테고리의 다른 글
알고리즘]WERTYU (0) | 2011.02.08 |
---|---|
Cairo]Hello, World (0) | 2010.08.11 |
단축키 모음 (0) | 2010.06.08 |
Makefile 의문 (0) | 2010.03.23 |
ODBC for MySQL (1) | 2010.02.07 |