Building wxWidget in Scratchbox

Scratchbox에서 지금 wxWidget을 build하고 있습니다.. ㅡㅡ;;
일단 필요한게 많네요..
 
wxWidget을 설치하기 위해 wxX11-2.6.3을 http://www.wxWidget.org에서 download받았습니다.
압축을 풀고 configure를 해보면, GLIB를 요구합니다.. -_-
 
어쩔 수 없이 GLib를 설치하기 위해서 http://www.gtk.org/download에서 GLib Source로 가면 최신 version의 GLib를 받을 수 있습니다.  현재는 glib-2.12.4.tar.bz2를 사용했습니다.
설치는..
$ ./configure
$ make
$ make install
이렇게 하면, /usr/local/lib에 install이 되고, 이 PATH를 LD_LIBRARY_PATH에 추가합니다.
그런다음 wxWidget에서 configure를 실행하면,
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link.  See the file config.log for the
*** exact error that occured.  This usually means GTK+ is incorrectly installed.
 
뭐냐.. -_-
wxWidget for X11인데 왜.. GTK+를 찾는거지?
달라니까.. 일단 설치는 해보기로 했다.
gtk+-2.12.4.tar.bz2를 http://www.gtk.org/download에서 download받은 후, configure를 실행했다.
configure: error: Package requirements (glib-2.0 >= 2.12.0 atk >= 1.9.0 pango >= 1.12.0 cairo >= 1.2.0) were not met:
 
이런.. glib이외에도 atk와 pango, cairo가 필요하단다.. -_-
그럼 일단 atk부터.. atk는 1.9.1를 사용한다.
$ ./configure
$ make
$ make install
설치가 완료되면, /usr/local/lib에 libatk*들이 생긴다.
 
그럼 이번에는 pango를 설치한다.  pango는 1.14.4를 사용한다.  configure를 해보면,
No package 'cairo' found
configure: error: *** Didn't find any of FreeType, X11, ATSUI or Win32.
*** Must have at least one backend to build Pango.
흐음.. pango이전에 cairo를 설치해야 하나 보다.. -_-
 
cairo는 1.2.0을 사용합니다.  configure를 해보면.. 또.. -_-
checking for cairo's PNG backend...
configure: WARNING: Could not find libpng in the pkg-config search path
checking whether cairo's PNG backend could be enabled... no
configure: error: requested PNG backend could not be enabled
우왁...! (-_-)(_-_)(-_-)(_-_)(-_-)(_-_)(-_-)(_-_)(-_-)(_-_) 미치겠다~
 
이번에는 libpng이다... libpng-1.2.8은 configure가 없는 대신, INSTALL을 보면 script directory에 있는 makefile들 중 하나를 복사해서 사용하도록 되어있다.
$ cp ./scripts/makefile.linux makefile
$ make
$ make install
제대로 실행되면, /usr/local/lib에 libpng*가 생긴다.
 
pkg-config libpng --libs를 실행한 다음, 다시 cairo에 가서 configure를 해보자..
configure: error: Cairo requires at least one font backend.
                        Please install freetype and fontconfig, then try again:
                        http://freetype.org/  http://fontconfig.org
또 error다 또또또.. -_-
 
먼저 http://freetype.org에 가서 freetype-2.2.1.tar.bz2를 download한다.
$ wget http://download.savannah.gnu.org/releases/freetype/freetype-2.2.1.tar.bz2
 
압축을 해제하고...
$ ./configure
$ make
$ make install
 
설치가 끝나면 http://fontconfig.org에서 fontconfig-2.4.1.tar.gz를 받는다.
$ wget http://fontconfig.org/release/fontconfig-2.4.1.tar.gz
 
압축을 풀고..
$ ./configure
checking for LIBXML2... Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing 'libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
configure: error: Package requirements (libxml-2.0 >= 2.6) were not met:
 
이런.. 이번에는 libxml이다..
libxml은 http://xmlsoft.org에서 찾을 수 있다.
$ wget ftp://xmlsoft.org/libxml2/libxml2-2.6.27.tar.gz
 
앗.. 학원 갈 시간.. -_-;;;

by iprinceps | 2006/11/16 07:27 | Embedded System | 트랙백 | 덧글(1)

트랙백 주소 : http://iprinceps.egloos.com/tb/557338
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]
Commented by 메카페카 at 2009/09/23 11:03
감사합니다. libpng 때문에 안되고 있었는데 님 덕분에 넘어갔네요.2일 동안 헛짓을 했네요. 정말 감사해요

:         :

:

비공개 덧글

<< 이전 페이지     다음 페이지 >>