免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 732 | 回复: 0
打印 上一主题 下一主题

qtopia-opensource-4.2.0交叉编译记录 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-17 21:25 |只看该作者 |倒序浏览
qtopia 4.2.0 交叉编译
./configure
-no-qvfb  -xplatform  linux-arm-g++  -arch arm -image
/home/shenjinqi/opt/qt4/arm/qtopia  -prefix
/home/shenjinqi/opt/qt4/arm/qtopia  -release -displaysize 240x320
-no-modem -quicklaunch
这样配置编译后的qtopia是可以运行的,有图像显示,但是触摸屏没有反应。应该是qtopia-core的配置选项的问题,作如下尝试:
1.进入文件夹:src/libraries/qtopiabase/
复制一下文件,
custom-linux-cassiopeia-g++.h
custom-linux-cassiopeia-g++.cpp
将其重命名为
custom-linux-arm-g++.h
custom-linux-arm-g++.cpp
2.修改文件
/qtopiacore/mkspecs/qws/linux-arm-g++/qmake.conf
将此行
QMAKE_LIBS_QT = -lqte
修改为
QMAKE_LIBS_QT = -lqte -lpng  -lz -luuid -ljpeg
3.修改$QPEDIR/qtopiacore/qconfig-qpe.h文件,定义相应的宏,在最后加上
#define QT_QWS_IPAQ
#define QT_QWS_IPAQ_RAW
4.将qconfig-qpe.h文件拷贝到$QTDIR/src/tools
5.
(./configure
-no-qvfb  -xplatform  linux-arm-g++  -arch arm -image /mnt/qtopia
-prefix /mnt/qtopia -release -displaysize 240x320 -no-modem
-quicklaunch -languages zh_cn)
./configure -no-qvfb  -xplatform
linux-arm-g++  -arch arm -image /home/shenjinqi/opt/qt4/arm/qtopia
-prefix /home/shenjinqi/opt/qt4/arm/qtopia  -release -displaysize
240x320 -no-modem -quicklaunch

qcop service send Launcher "execute(QString)" "calibrate"
触摸屏没响应,应该是没有指定qtcore的编译选项的原因
重新设置:
1.在中qtopiacore\qt\src\gui\embedded\qmouselinuxtp_qws.h加入
    #define QT_QWS_IPAQ
    #define QT_QWS_IPAQ_RAW
2. 并在qmouselinuxtp_qws.cpp里把/dev/h3600_ts替换为/dev/ts0
3.配置
./configure
-no-qvfb  -xplatform  linux-arm-g++  -arch arm -image
/home/shenjinqi/opt/qt4/arm/qtopia  -prefix
/home/shenjinqi/opt/qt4/arm/qtopia  -release -displaysize 240x320
-no-modem -qtopiacore-config -system-zlib -extra-qtopiacore-config
-system-libpng -extra-qtopiacore-config  -qt-mouse-linuxtp
-extra-qtopiacore-config  -system-libjpeg -extra-qtopiacore-config
-plugin-sql-sqlite
./configure -release -no-qvfb -prefix
/mnt/qte -xplatform qws/linux-arm-g++ -embedded arm -no-stl
-plugin-sql-sqlite -no-qt3support -system-zlib -system-libpng
-system-libjpeg -no-nis -no-cups -no-iconv -no-qdbus -no-freetype
-depths 4,8,16,32  -qt-mouse-linuxtp
*******************************************************************************
Configuring Qt (host)
configure -platform linux-g++ -prefix
/home/shenjinqi/opt/qt4/arm/qtopia-opensource-4.2.0/qtopiacore/host -no-stl
-no-exceptions -no-qdbus -D QTOPIA_NO_ICONV_OPEN_ERRORS -confirm-license
-no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql
-no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -qt-sql-sqlite -fast -release
-qt-gif -no-qdbus -no-separate-debug-info
*******************************************************************************
Build type:    linux-g++
Architecture:  i386
Build ............... libs tools examples
Configuration
.......  release shared dll largefile sse  qt3support accessibility
opengl minimal-config small-config medium-config large-config
full-config reduce_exports ipv6 getaddrinfo ipv6ifname getifaddrs
inotify system-jpeg system-mng system-png png gif system-freetype
system-zlib nis cups iconv glib x11sm xshape xinerama xcursor xfixes
xrandr xrender fontconfig tablet xkb release
Debug................ no
Qt 3 compatibility... yes
QtDBus module........ no
STL support ......... no
PCH support ......... no
MMX/SSE support ..... yes
IPv6 support ........ yes
IPv6 ifname support . yes
getaddrinfo support . yes
getifaddrs support... yes
Accessibility ....... yes
NIS support ......... yes
CUPS support ........ yes
Iconv support ....... yes
Glib support ........ yes
Large File support .. yes
GIF support ......... yes
JPEG support ........ plugin (system)
PNG support ......... yes (system)
MNG support ......... plugin (system)
zlib support ........ system
OpenGL support ...... yes
NAS sound support ... no
Session management .. yes
XShape support ...... yes
Xinerama support .... yes
Xcursor support ..... yes
Xfixes support ...... yes
Xrandr support ...... yes
Xrender support ..... yes
FontConfig support .. yes
XKB Support ......... yes
immodule support .... yes
SQLite support ...... qt (qt)
*******************************************************************************
Qt (host) is configured
*******************************************************************************
Testing for qmake quirks: QUOTE_IS_ESCAPE_EXPAND
Testing for ALSA: FAIL
Using OSS as the sound system.
*******************************************************************************
Configuring Qtopia Core (target)
configure -system-zlib
*******************************************************************************
Build type:    qws/linux-x86-g++(很明显是有问题的!)
Architecture:  i386
Build ............... libs tools examples
Configuration
.......  release shared dll embedded largefile stl separate_debug_info
sse  qt3support accessibility minimal-config small-config medium-config
large-config full-config embedded reduce_exports ipv6 getaddrinfo
ipv6ifname getifaddrs inotify system-jpeg system-mng system-png png
no-gif system-freetype system-zlib cups glib qdbus release
Debug................ no
Qt 3 compatibility... yes
QtDBus module........ yes
STL support ......... yes
PCH support ......... no
MMX/SSE support ..... yes
IPv6 support ........ yes
IPv6 ifname support . yes
getaddrinfo support . yes
getifaddrs support... yes
Accessibility ....... yes
NIS support ......... no
CUPS support ........ yes
Iconv support ....... no
Glib support ........ yes
Large File support .. yes
GIF support ......... no
JPEG support ........ plugin (system)
PNG support ......... yes (system)
MNG support ......... plugin (system)
zlib support ........ system
Embedded support .... x86
Freetype2 support ... auto (system)
Graphics (qt) ....... linuxfb
Graphics (plugin) ...
Decorations (qt) .... styled windows default
Decorations (plugin)  
Keyboard driver ..... tty
Mouse driver (qt) ... pc linuxtp
Mouse driver (plugin)
OpenGL support ...... no
SQLite support ...... plugin (qt)
*******************************************************************************
Configuring Qtopia Platform
configure '-no-qvfb' '-xplatform' 'linux-arm-g++' '-arch' 'arm' '-image'
'/home/shenjinqi/opt/qt4/arm/qtopia' '-prefix'
'/home/shenjinqi/opt/qt4/arm/qtopia' '-release' '-displaysize' '240x320'
'-no-modem' '-qtopiacore-config' '-system-zlib' '-extra-qtopiacore-config'
'-system-libpng' '-extra-qtopiacore-config' '-qt-mouse-linuxtp'
'-extra-qtopiacore-config' '-system-libjpeg' '-extra-qtopiacore-config'
'-plugin-sql-sqlite'
*******************************************************************************
////////////////////////////////////////////////////////////////////////////////
./configure
-no-qvfb  -xplatform  linux-arm-g++  -arch arm -image
/home/shenjinqi/opt/qt4/arm/qtopia  -prefix
/home/shenjinqi/opt/qt4/arm/qtopia  -release -displaysize 240x320
-no-modem -extra-qtopiacore-config -release -extra-qtopiacore-config
-no-qvfb -extra-qtopiacore-config -xplatform qws/linux-arm-g++
-extra-qtopiacore-config -embedded arm -extra-qtopiacore-config -no-stl
-extra-qtopiacore-config -plugin-sql-sqlite -extra-qtopiacore-config
-no-qt3support -extra-qtopiacore-config -system-zlib
-extra-qtopiacore-config -system-libpng -extra-qtopiacore-config
-system-libjpeg -extra-qtopiacore-config -no-nis
-extra-qtopiacore-config -no-cups -extra-qtopiacore-config -no-iconv
-extra-qtopiacore-config -no-qdbus -extra-qtopiacore-config
-no-freetype -extra-qtopiacore-config -depths 4,8,16,32
-extra-qtopiacore-config -qt-mouse-linuxtp
*******************************************************************************
Configuring Qt (host)
configure -platform linux-g++ -prefix
/home/shenjinqi/opt/qt4/arm/qtopia-opensource-4.2.0/qtopiacore/host -no-stl
-no-exceptions -no-qdbus -D QTOPIA_NO_ICONV_OPEN_ERRORS -confirm-license
-no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql
-no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -qt-sql-sqlite -fast -release
-qt-gif -no-qdbus -no-separate-debug-info
*******************************************************************************
Build type:    linux-g++
Architecture:  i386
Build ............... libs tools examples
Configuration
.......  release shared dll largefile sse  qt3support accessibility
opengl minimal-config small-config medium-config large-config
full-config reduce_exports ipv6 getaddrinfo ipv6ifname getifaddrs
inotify system-jpeg system-mng system-png png gif system-freetype
system-zlib nis cups iconv glib x11sm xshape xinerama xcursor xfixes
xrandr xrender fontconfig tablet xkb release
Debug................ no
Qt 3 compatibility... yes
QtDBus module........ no
STL support ......... no
PCH support ......... no
MMX/SSE support ..... yes
IPv6 support ........ yes
IPv6 ifname support . yes
getaddrinfo support . yes
getifaddrs support... yes
Accessibility ....... yes
NIS support ......... yes
CUPS support ........ yes
Iconv support ....... yes
Glib support ........ yes
Large File support .. yes
GIF support ......... yes
JPEG support ........ plugin (system)
PNG support ......... yes (system)
MNG support ......... plugin (system)
zlib support ........ system
OpenGL support ...... yes
NAS sound support ... no
Session management .. yes
XShape support ...... yes
Xinerama support .... yes
Xcursor support ..... yes
Xfixes support ...... yes
Xrandr support ...... yes
Xrender support ..... yes
FontConfig support .. yes
XKB Support ......... yes
immodule support .... yes
SQLite support ...... qt (qt)
*******************************************************************************
Qt (host) is configured
*******************************************************************************
Testing for qmake quirks: QUOTE_IS_ESCAPE_EXPAND
Testing for ALSA: FAIL
Using OSS as the sound system.
*******************************************************************************
Configuring Qtopia Core (target)
configure -embedded arm -platform linux-g++ -xplatform qws/linux-arm-g++
-depths 16,32 -DQT_KEYPAD_NAVIGATION -prefix
/home/shenjinqi/opt/qt4/arm/qtopia-opensource-4.2.0/qtopiacore/target -no-stl
-no-exceptions -no-qt3support -make src -qconfig qpe -fast -no-glib -no-cups
-no-qdbus -DQT_NO_PLUGIN_CHECK -DQT_EXTERNAL_SOUND_SERVER -confirm-license
-no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql
-no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -qt-sql-sqlite -release -no-gfx-qvfb
-no-mouse-qvfb -no-kbd-qvfb -qt-gif -no-separate-debug-info -release -no-qvfb
-xplatform -embedded -no-stl -plugin-sql-sqlite -no-qt3support -system-zlib
-system-libpng -system-libjpeg -no-nis -no-cups -no-iconv -no-qdbus
-no-freetype -depths -qt-mouse-linuxtp
*******************************************************************************
Preparing build tree...
   The specified system/compiler is not supported:
      /home/shenjinqi/opt/qt4/arm/qtopia-opensource-4.2.0/qtopiacore/qt/mkspecs/-embedded
   Please see the README file for a complete list.
configure exited with value 2
./configure
-no-qvfb  -xplatform  linux-arm-g++  -arch arm -image
/home/shenjinqi/opt/qt4/arm/qtopia  -prefix
/home/shenjinqi/opt/qt4/arm/qtopia  -release -displaysize 240x320
-no-modem -extra-qtopiacore-config -release -extra-qtopiacore-config
-no-qvfb -extra-qtopiacore-config -xplatform linux-arm-g++
-extra-qtopiacore-config -embedded arm -extra-qtopiacore-config -no-stl
-extra-qtopiacore-config -plugin-sql-sqlite -extra-qtopiacore-config
-no-qt3support -extra-qtopiacore-config -system-zlib
-extra-qtopiacore-config -system-libpng -extra-qtopiacore-config
-system-libjpeg -extra-qtopiacore-config -no-nis
-extra-qtopiacore-config -no-cups -extra-qtopiacore-config -no-iconv
-extra-qtopiacore-config -no-qdbus -extra-qtopiacore-config
-no-freetype -extra-qtopiacore-config -depths 4,8,16,32
-extra-qtopiacore-config -qt-mouse-linuxtp
./configure
-no-qvfb  -xplatform  linux-arm-g++  -arch arm -image
/home/shenjinqi/opt/qt4/arm/qtopia  -prefix
/home/shenjinqi/opt/qt4/arm/qtopia  -release -displaysize 240x320
-no-modem -extra-qtopiacore-config -release -extra-qtopiacore-config
-no-qvfb -extra-qtopiacore-config -no-stl -extra-qtopiacore-config
-plugin-sql-sqlite -extra-qtopiacore-config -no-qt3support
-extra-qtopiacore-config -system-zlib -extra-qtopiacore-config
-system-libpng -extra-qtopiacore-config -system-libjpeg
-extra-qtopiacore-config -no-nis -extra-qtopiacore-config -no-cups
-extra-qtopiacore-config -no-iconv -extra-qtopiacore-config -no-qdbus
-extra-qtopiacore-config -no-freetype -extra-qtopiacore-config -depths
4,8,16,32  -extra-qtopiacore-config -qt-mouse-linuxtp能够顺利的编译,但是运行的时候没有任何的显示。
*******************************************************************************
Configuring Qtopia Core (target)
configure -embedded arm -platform linux-g++ -xplatform qws/linux-arm-g++
-depths 16,32 -DQT_KEYPAD_NAVIGATION -prefix
/home/shenjinqi/opt/qt4/arm/qtopia-opensource-4.2.0/qtopiacore/target -no-stl
-no-exceptions -no-qt3support -make src -qconfig qpe -fast -no-glib -no-cups
-no-qdbus -DQT_NO_PLUGIN_CHECK -DQT_EXTERNAL_SOUND_SERVER -confirm-license
-no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql
-no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -qt-sql-sqlite -release -no-gfx-qvfb
-no-mouse-qvfb -no-kbd-qvfb -qt-gif -no-separate-debug-info -release -no-qvfb
-no-stl -plugin-sql-sqlite -no-qt3support -system-zlib -system-libpng
-system-libjpeg -no-nis -no-cups -no-iconv -no-qdbus -no-freetype -depths
-qt-mouse-linuxtp
*******************************************************************************
Building on:   linux-g++
Building for:  qws/linux-arm-g++
Architecture:  arm
Build ...............  src libs
Configuration
.......  cross_compile release shared dll embedded largefile
accessibility embedded ipv6 getaddrinfo ipv6ifname getifaddrs
system-jpeg system-png png gif no-freetype system-zlib release
Debug................ no
Qt 3 compatibility... no
QtDBus module........ no
STL support ......... no
PCH support ......... no
MMX/SSE support ..... no
IPv6 support ........ yes
IPv6 ifname support . yes
getaddrinfo support . yes
getifaddrs support... yes
Accessibility ....... yes
NIS support ......... no
CUPS support ........ no
Iconv support ....... no
Glib support ........ no
Large File support .. yes
GIF support ......... yes
JPEG support ........ plugin (system)
PNG support ......... yes (system)
MNG support ......... plugin (qt)
zlib support ........ system
Embedded support .... arm
Freetype2 support ... no
Graphics (qt) ....... linuxfb
Graphics (plugin) ...
Decorations (qt) .... styled windows default
Decorations (plugin)  
Keyboard driver ..... tty
Mouse driver (qt) ... pc linuxtp
Mouse driver (plugin)
OpenGL support ...... no
SQLite support ...... plugin (qt)
Finding project files. Please wait...
*******************************************************************************
Configuring Qtopia Platform
configure '-no-qvfb' '-xplatform' 'linux-arm-g++' '-arch' 'arm' '-image'
'/home/shenjinqi/opt/qt4/arm/qtopia' '-prefix'
'/home/shenjinqi/opt/qt4/arm/qtopia' '-release' '-displaysize' '240x320'
'-no-modem' '-extra-qtopiacore-config' '-release' '-extra-qtopiacore-config'
'-no-qvfb' '-extra-qtopiacore-config' '-no-stl' '-extra-qtopiacore-config'
'-plugin-sql-sqlite' '-extra-qtopiacore-config' '-no-qt3support'
'-extra-qtopiacore-config' '-system-zlib' '-extra-qtopiacore-config'
'-system-libpng' '-extra-qtopiacore-config' '-system-libjpeg'
'-extra-qtopiacore-config' '-no-nis' '-extra-qtopiacore-config' '-no-cups'
'-extra-qtopiacore-config' '-no-iconv' '-extra-qtopiacore-config' '-no-qdbus'
'-extra-qtopiacore-config' '-no-freetype' '-extra-qtopiacore-config' '-depths'
'4,8,16,32' '-extra-qtopiacore-config' '-qt-mouse-linuxtp'
*******************************************************************************
................................................................................................................
Qtopia has been configured. You can build Qtopia by running make.
After building, you MUST run make install, which will setup a runnable image in
/home/shenjinqi/opt/qt4/arm/qtopia. You can override this by running make
install IMAGE=/other/location.
As configured, Qtopia MUST be run from /home/shenjinqi/opt/qt4/arm/qtopia. If
this is not where you intend to run Qtopia from you should set the location by
running configure -prefix /opt/Qtopia.
*************************************************************************************qtopia文档学习记录
file:///home/shenjinqi/opt/qt4/arm/qtopia-opensource-4.2.0/doc/html/running-qtopia.htmlNote: QPE_NEED_CALIBRATION must be defined in the custom-.h file. See also: Device Configuration.file:///home/shenjinqi/opt/qt4/arm/qtopia-opensource-4.2.0/doc/html/syscust-index.html System CustomizationHardware Configuration:*****QPE_NEED_CALIBRATION    #define this if there is a touch screen that requires calibration.file:///home/shenjinqi/opt/qt4/arm/qtopia-opensource-4.2.0/doc/html/syscust-hardware.htmlfile:///home/shenjinqi/opt/qt4/arm/qtopia-opensource-4.2.0/doc/html/syscust-stdfonts.htmlLanguage-specific Fonts
重新配置如下:
./configure -no-qvfb  -xplatform  linux-arm-g++  -arch
arm -image /home/shenjinqi/opt/qt4/arm/qtopia  -prefix
/home/shenjinqi/opt/qt4/arm/qtopia  -release -displaysize 240x320
-no-modem -extra-qtopiacore-config -qt-mouse-linuxtp
结果未知?
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/78300/showart_1866497.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP