블로그 이미지
언제나 늘 푸른 소나무처럼. 자신의 의지로 오롯이 서기
예섬수진

공지사항

최근에 받은 트랙백

글 보관함

calendar

    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

OpenSource]Hwo to build Cairo

2010.08.09 23:57 | Posted by 예섬수진
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
OpenSource]Hwo to build Cairo  (0) 2010.08.09
단축키 모음  (0) 2010.06.08
Makefile 의문  (0) 2010.03.23
ODBC for MySQL  (1) 2010.02.07