天嵌 ARM开发社区

 找回密码
 注册
查看: 3037|回复: 8

Qte中的touch-qtopia编译出错

[复制链接]
yangliuneu 发表于 2009-8-8 20:34:08 | 显示全部楼层 |阅读模式
Qte中的touch-qtopia编译时出错:
(echo yes ; echo yes) | ./configure -system-jpeg -gif -system-libpng -system-zlib -platform linux-ipaq-g++  -qconfig qpe -depths 16,24,32
make -C src
cd ..
cd qtopia/src
./configure  -platform linux-ipaq-g++
make
cd ../..
export AR=arm-linux-ar
export STRIP=arm-linux-strip
export RANLIB=arm-linux-ranlib
export CXX=arm-linux-g++
export CCC=arm-linux-c++
export CC=arm-linux-gcc
export CROSS_COMPILE=1
export PATH=$PATH:/usr/loca/arm/3.3.2/bin
export INSTALL=/usr/local/arm/3.3.2
cd konq-em
./configure --host=arm-linux --target=arm-linux --enable-embedded --enable-qt-embedded --enable-qpe --with-gui=qpe --disable-debug --enable-ftp --enable-static --disable-shared --disable-mt --with-extra-libs=/usr/local/arm/3.3.2/libQPEDIR/lib --with-extra-include=/usr/local/arm/3.3.2/includePQEDIR/include --without-ssl --with-qt-dir=$QTDIR --with-qt-includes=$QTDIR/include --with-qt-libraries=$QTDIR/lib --with-qtopia-dir=$QPEDIR
make
cd ..

    调试了很久还是这个错,望高人指点!
 楼主| yangliuneu 发表于 2009-8-8 20:36:53 | 显示全部楼层
不好意思,出错信息应该是
In file included from /opt/EmbedSky/usr/local/arm/3.3.2/arm-linux/include/signal
.h:358,
                 from process_unix.cpp:32:
/opt/EmbedSky/usr/local/arm/3.3.2/arm-linux/include/bits/sigthread.h:36: error:
storage
   class specifiers invalid in parameter declarations
/opt/EmbedSky/usr/local/arm/3.3.2/arm-linux/include/bits/sigthread.h:36: error:
storage
   class specified for parameter `parameter'
make[1]: *** [.obj/linux-ipaq-g++//process_unix.o] Error 1
make[1]: Leaving directory `/opt/EmbedSky/Qte/touch-qtopia/qtopia/src/libraries/
qtopia'
make: *** [libraries/qtopia] Error 2
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for a BSD-compatible install... /usr/local/arm/3.3.2
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... arm-linux-strip
checking for style of include used by make... GNU
checking for arm-linux-gcc... arm-linux-gcc
checking for C compiler default output... configure: error: C compiler cannot cr
eate executables
See `config.log' for more details.
make: *** No targets specified and no makefile found.  Stop.
You have new mail in /var/spool/mail/root
回复

使用道具 举报

亚瑟王 发表于 2009-8-10 10:18:55 | 显示全部楼层
建议你先看一下我们提供的《Qt应用程序开发完全手册》和使用它对应的源码进行编译。
回复

使用道具 举报

亚瑟王 发表于 2009-8-10 10:19:24 | 显示全部楼层
你的编译器版本太高了,对Qt源码解释不对导致的。
回复

使用道具 举报

 楼主| yangliuneu 发表于 2009-8-11 22:19:29 | 显示全部楼层
但我的编译器是按照手册中的建议用的3.3.2版本啊
回复

使用道具 举报

亚瑟王 发表于 2009-8-12 16:46:25 | 显示全部楼层
arm-linux-gcc -v看看,x86版本能够编译成功吗?
回复

使用道具 举报

 楼主| yangliuneu 发表于 2009-8-13 19:05:27 | 显示全部楼层
x86版本已经编译成功,并且可以在qpe中仿真运行。但touch版本编译时就出现如上问题,请问touch版本与x86的build脚本在相关库的路径设置上面有何区别?
回复

使用道具 举报

JOHNSON 发表于 2009-11-21 15:27:47 | 显示全部楼层
我的x86可以过去,也可以使用了,但是touch的就是过不了,源码是用1.7.0的,crosstools for 3.4.5 for v61的交叉编译器,好郁闷啊
而且,错误都是出现在编译qtopia/src/3rdparty目录中的内容里有问题
回复

使用道具 举报

亚瑟王 发表于 2009-11-23 14:27:43 | 显示全部楼层
错误信息贴出来。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-6-17 23:11 , Processed in 2.035715 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表