qt x11 / qt-embedded 설치
http://bigmail.mail.daum.net/Mail-bin/bigfile_down?uid=VH-ldRaBY65T_Mu_EvAhxq2YH-QrSiOe
ftp://ftp.trolltech.com/qt/sourc e 에서 qt-x11-free.3.3.7.tar.gz 를
다운받는다.
sudo apt-get install build-essential
sudo apt-get install qt3-dev-tools
sudo apt-get install qt3-dev-tools-embedded
aptitude install libx11-dev
aptitude install libxinerama-dev
# tar xvzf qt-x11-free.3.3.7.tar.gz
# mv qt-x11-free.3.3.7 qtx-3.3.7
# cd qtx-3.3.7 (/root/work/qtx, qte)
# ./configure –shared –thread –no-cups
아래와 같은 화면이 나오면 “yes”라고 타이핑후 엔터를 누른다
# vi Makefile
all : symlinks src-qmake src-moc sub-src sub-tools sub-tutorial sub-examples
-> all : symlinks src-qmake src-moc sub-src sub-tools #sub-tutorial subexamples
# make
심볼링크
# cd qtx-3.3.7/bin
# ln –s $PWD/qmake /usr/bin/qmake
# ln –s $PWD/uic /usr/bin/uic
# ln –s $PWD/moc /usr/bin/moc
# ln –s $PWD/designer /usr/bin/designer
//designer 안되면 vim /etc/bash.bashrc 에서 path 잡자
3.5. QVFB(Qt Virtual Frame Buffer)
앞서 말했듯이 Qt/X11을 설치하는 주된 목적은 QVFB를 얻는것이다. 아래와 같이 qvfb
소스가 있는지 확인 하도록 하자.
아직 실행파일은 생성되어 있지 않을것이다. Qvfb 디렉토리에서 make를 실행하면 실행파일을
얻을수 있다.
나중에 qvfb 실행시 framebuffer 16비트로 바꿔서
------------------------------------------------------------------
qt / embedded 설치
# cd qte-3.3.7
# ./configure –shared –thread –no-cups –qvfb –no-nis –no-stl –no-ipv6 –qtlibpng
–qt-libjpeg
yes 엔터
16 엔터
vi Makefile
all : symlinks src-qmake src-moc sub-src sub-tools sub-tutorial sub-examples
-> all : symlinks src-qmake src-moc sub-src sub-tools #sub-tutorial subexamples
# make
# qvfb &
이제 테스트할 프로그램을 만들어 보도록 하자.
Qt 소스 디렉토리에 많은 example 소스를 제공하고 있다. 여기서는 hello 라는 example을
선택하여 컴파일 해보도록 한다.
# cd qte-3.3.7/
# export QTDIR=$PWD
# export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
# export PATH=$QTDIR:$QTDIR/bin:$LD_LIBRARY_PATH:$PATH
# cd examples/hello
# make
이제 hello 디렉토리내에 실행파일이 생성되었을 것이다.
아래와 같이 hello 테스트 프로그램을 실행해본다. 이때 반드시 QVFB가 먼저 실행되어야
한다.
# qvfb
# ./hello –qws
만약 QVFB 를 실행한 상태에서 위 hello를 실행시 "Semop lock failure식 별자 제거됨"
이라는 메시지가 나올 경우 “/tmp/qtembedded-사용자ID/ “에 있는 파일들을 모두 지워주면
된다.