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

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함

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

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

OpenSource]Hwo to build Cairo

2010. 8. 9. 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
단축키 모음  (0) 2010.06.08
Makefile 의문  (0) 2010.03.23
ODBC for MySQL  (1) 2010.02.07

숙희]One love

2010. 8. 7. 21:03 | Posted by 예섬수진


 

널 사랑해 첫눈에 반한 내사랑
너를 볼때마다 가슴이 떨려
세상이 준 커다란 선물
처음이자 마지막 사랑
 
보아도 보아도 또 보고싶은 한사람
주어도 주어도 아깝지 않은 맘
말해도 말해도 늘 모자라는 한마디
사랑해 널 사랑해

 
(oh oh oh)

사랑해 사랑해 아무리 막으려해도
조용히 입에서 새어나오는 그 말
수천번 수백번 아무리 아끼려해도
도무지 참을 수 없는 네게 전할말

(널 사랑해)

내 전부를 잃어도

(널사랑해)

이 세상이 끝나도
널 잃고 싶지 않아 놓치고 싶지 않아
숨기려해도 날 미소짓게 하는 너
 
널 사랑해 첫눈에 반한 내사랑
너를 볼때마다 가슴이 떨려
세상이 준 커다란 선물
처음이자 마지막 사랑
 
 
낮이나 밤이나 이 하나만은 잊지마
비오나 눈오나 그 마음 변치마
슬프나 기쁘나 늘 지금처럼 이대로
내 곁에 머물러줘
 
첫눈에 반한다는 동화같은 일이
내게 일어났어 나는 잠에서 깬 공주
살며시 조금씩 다가오는 그대를
나 거부할수 없어 한아름 꼭 안아요

비오는 날엔 우산이 되어줄게
햇빛이 뜨거운날엔 시원한 그늘
영원히 니 곁에서 널 웃게해줄게
꼭 안아줘요 떨리는 맘 가득채우고
 
내가슴이 한 눈에 알아본 사람
운명이란 아마 이런 건가봐
세상이 준 커다란 선물
처음이자 마지막 사랑
 
난 행복해 천번을 내게 물어도
같은날 떠나니 너만 사랑해
우리 사랑 영원하기를
처음처럼 마지막까지
너는 나의 마지막 사랑
 
사랑 사랑 그누가 말했나
이렇게도 행복한걸 알고 말했나
가슴 벅차도록 숨이 가빠오도록
사랑하고싶어 오직 그대하나만

사랑사랑 그 누가 말했나
이렇게도 행복한걸 알고 말했나
무엇과도 바꿀수 없는 내사랑
길게하는 내 마지막 사랑


 

이전 1 2 3 4 5 6 7 ··· 37 다음