Compile Qt4.8.3-Embedded for ARM with openSUSE 12.1

Compile Qt4.8Embedded for ARM with openSUSE 12.1

1.config.sh

export QWS_MOUSE_PROTO=linuxinput:/dev/event1

./configure -embedded arm -xplatform qws/linux-arm-gnueabi-g++ \
-opensource \
-javascript-jit \
-openssl-linked -L /usr/local/Trolltech/ssl/lib -I /usr/local/Trolltech/ssl/include \
-qt-zlib \
-qt-libtiff \
-qt-libpng \
-qt-libmng \
-qt-libjpeg \
-qt-mouse-linuxinput \
-no-feature-CURSOR \
-no-qt3support \
-nomake examples \
-nomake demos \                                                                     
                                                                                    
#-openssl-linked \ put ssl inside /usr/local/Trolltech (openssl-linked can be other directory, but you must specify it.)

2.(.bash_profile)

set the cross-compiler path as flow(you must extract your cross-compiler to target '/opt'):

export PATH=$PATH:/opt/crosstool/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin
                                                                                    
export PATH=$PATH:/sbin
 

3.cp 'config.sh' to 'qt-opensource' directory, then run 'config.sh'

4.modify 'qt-opensource'/src/Network/Makefile, add -ldl to LIBS tag.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章