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

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함

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

Cairo]Hello, World

2010. 8. 11. 00:08 | Posted by 예섬수진
(1) Executed Result
  - A executable file will create png file which contains "Hello, world"

(2) Source code [hello.c]

(3) How to compile code
  1)  check if the system has pkg-config
    * you don't specify path of Cairo libraries and header files when you compile code using pkg-config
 
  2) set PKG_CONFIG_PATH environment variable
    a) for bash
       export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    b) for csh
setenv PKG_CONFIG_PATH /usr/local/lib/pkgconfig
 * How to check shell type : enter "echo $SHELL"
   3) compile hello.c
     a) for bash
       cc -o hello $(pkg-config --cflags --libs cairo) hello.c

      b) for csh
       cc -o hello `pkg-config --cflags --libs cairo` hello.c

      * After compile code, you can see created exe file (hello)

(4) Reference

'컴퓨터 > 기타' 카테고리의 다른 글

How to build EFL  (0) 2011.03.15
알고리즘]WERTYU  (0) 2011.02.08
OpenSource]Hwo to build Cairo  (0) 2010.08.09
단축키 모음  (0) 2010.06.08
Makefile 의문  (0) 2010.03.23