天嵌 ARM开发社区

 找回密码
 注册
查看: 2370|回复: 4

Ubuntu9.10无法编译Qtopia

[复制链接]
dengue1204 发表于 2010-3-18 14:44:31 | 显示全部楼层 |阅读模式
是不是ubuntu的GCC版本过高,而不能让Qtopia通过编译呢?
光盘上稍微老一点的版本以及论坛上12月的版本都有试过,我都是按照文档来编译,但都是编译不过,是GCC版本问题吗?
是否可以降低GCC的版本来编译呢?如何降低?

另外,所需的库我想我基本上都装上了,或者,如果来确认哪些库是必需的呢?

求高手和管理员指教!!
亚瑟王 发表于 2010-3-19 14:53:39 | 显示全部楼层
你不贴出错误信息,没有人能帮你的。
 楼主| dengue1204 发表于 2010-3-19 18:04:12 | 显示全部楼层
3rdparty/opentype/ftxgsub.c: In function ‘Lookup_ChainContextSubst2’:
3rdparty/opentype/ftxgsub.c:3531: error: expected expression before ‘FT_UShort’
3rdparty/opentype/ftxgsub.c:3535: error: expected expression before ‘FT_UShort’
3rdparty/opentype/ftxgsub.c:3539: error: expected expression before ‘FT_UShort’
3rdparty/opentype/ftxgsub.c: In function ‘TT_GSUB_Query_Scripts’:
3rdparty/opentype/ftxgsub.c:4017: error: expected expression before ‘FT_ULong’
3rdparty/opentype/ftxgsub.c: In function ‘TT_GSUB_Query_Languages’:
3rdparty/opentype/ftxgsub.c:4060: error: expected expression before ‘FT_ULong’
3rdparty/opentype/ftxgsub.c: In function ‘TT_GSUB_Query_Features’:
3rdparty/opentype/ftxgsub.c:4127: error: expected expression before ‘FT_ULong’
make[2]: *** [.obj/release-shared/ftxopentype.o] 错误 1
make[2]:正在离开目录 `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/dqt/src'
make[1]: *** [sub-src] 错误 2
make[1]:正在离开目录 `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/dqt'
make: *** [init] 错误 2

这是我进入dqt/里面单独make出来的错误,像ftxgsub.c这样的错误还有很多,由于太多,没有全部贴出来。
请问这个是什么错误呢?
 楼主| dengue1204 发表于 2010-3-19 18:16:51 | 显示全部楼层
还有这样的错误:
qmemoryfile_unix.cpp: In member function ‘QMemoryFileData* QMemoryFile::openData(const QString&, int, uint)’:
qmemoryfile_unix.cpp:149: warning: format not a string literal and no format arguments
qmemoryfile_unix.cpp:187: warning: format not a string literal and no format arguments
qmemoryfile_unix.cpp:232: warning: format not a string literal and no format arguments
In file included from /usr/include/fcntl.h:217,
                 from qmemoryfile_unix.cpp:48:
In function ‘int open(const char*, int, ...)’,
    inlined from ‘QMemoryFileData* QMemoryFile::openData(const QString&, int, uint)’ at qmemoryfile_unix.cpp:141:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[5]: *** [.obj/release-shared/qmemoryfile_unix.o] 错误 1
make[5]:正在离开目录 `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia'
make[4]: *** [all] 错误 2
make[4]:正在离开目录 `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src/libraries/qtopia'
make[3]: *** [sub-libraries-qtopia] 错误 2
make[3]:正在离开目录 `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[2]: *** [all] 错误 2
make[2]:正在离开目录 `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/src'
make[1]: *** [all] 错误 2
make[1]:正在离开目录 `/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia'
亚瑟王 发表于 2010-3-19 18:18:37 | 显示全部楼层
根据你提供的错误信息,FT_ULong应该是定义的一个无符号长整形的变量,
编译X86版本的qt,除去Qt源码是天嵌科技提供的外,其他的都是使用的PC的Linux自带的。因为ubuntu的编译器版本过高,对相同的代码的解释可能和低版本的解释不一样,就导致编译错误,出现类似上面的错误信息。
解决方法:
1、可以尝试修改qt自身的源码,以满足高版本的编译器的编译;
2、更换ubuntu自带的编译器,减低其版本;
3、更换ubuntu为fedora10.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-5-19 04:27 , Processed in 1.062500 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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