1.   Unpack Qtopia...

tar xfz qtopia-free-1.7.x.tar.gz
cd qtopia-1.7.x
export QPEDIR=$PWD
cd ..


2. Install Qt/Embedded...

tar xfz qt-embedded-2.3.x.tar.gz
cd qt-2.3.x
export QTDIR=$PWD
export QTEDIR=$QTDIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
cp $QPEDIR/src/qt/qconfig-qpe.h src/tools/
./configure -qconfig qpe -qvfb -depths 4,8,16,32
make sub-src
cd ..


You may also want to use the configure options
-system-jpeg and -gif for jpeg and gif support.

3. Install Qt/X11 2.3.2... Note that you must use
2.3.x, not 3.x, as this step is done to provide Qt 2
tools.

tar xfz qt-x11-2.3.2.tar.gz
cd qt-2.3.2
export QTDIR=$PWD
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
./configure
make
make -C tools/qvfb
mv tools/qvfb/qvfb bin
cp bin/uic $QTEDIR/bin
cd ..


You may also pass other configure options such
as -no-opengl or -no-xft as suitable to your
environment. Use ./configure -help for more
information. You may also want to build Qt Designer
(in tools/designer/).

4. Build Qtopia...

cd qtopia-1.7.x
export QTDIR=$QTEDIR
export QPEDIR=$PWD
export PATH=$QPEDIR/bin:$PATH
cd src
./configure
make
cd ../..


....하지만 실행 중 다음과 같은 오류가 발생할 수 있다.
In file included from kernel/qt_x11.h:76,
from kernel/qpsprinter.cpp:97:
/usr/X11R6/include/X11/Xft/Xft.h:35:31:
freetype/freetype.h: No such file or directory
In file included from kernel/qt_x11.h:76,
from kernel/qpsprinter.cpp:97:
/usr/X11R6/include/X11/Xft/Xft.h:52: syntax error
before `;' token
/usr/X11R6/include/X11/Xft/Xft.h:86: 'FT_UInt' is used
as a type, but is not
defined as a type.
/usr/X11R6/include/X11/Xft/Xft.h:93: 'FT_UInt' is used
as a type, but is not
defined as a type.
/usr/X11R6/include/X11/Xft/Xft.h:190: parse error
before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:295: parse error
before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:354: parse error
before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:393: parse error
before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:399: parse error
before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:408: type specifier
omitted for parameter `
FT_UInt'
/usr/X11R6/include/X11/Xft/Xft.h:408: parse error
before `,' token
/usr/X11R6/include/X11/Xft/Xft.h:418: parse error
before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:461: parse error
before `*' token
make[2]: *** [kernel/qpsprinter.o] Error 1
make[2]: Leaving directory `/home/qt-2.3.2/src'
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory `/home/qt-2.3.2'
make: *** [init] Error 2
이는 freetype 관련 파일을 찾지 못해 생기는 현상이다. redhat9 이라면 다음과 같이 하면 문제를 해결할 수 있다.

cd /usr/include
ln -s freetype2/freetype freetype

Tags: , ,

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.