免费注册 查看新帖 |

Chinaunix

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

qtopia patch以及问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-06-06 10:03 |只看该作者 |倒序浏览
本帖最后由 view1073 于 2010-06-06 15:35 编辑

我在x86下在编译qtopia时出现如下错误,arm下也类似:
  1.                  from /work/tmp/qtopia-opensource-src-4.3.4-snapshot-20081021/src/server/core_server/applicationlauncher.h:23,
  2.                  from /work/tmp/qtopia-opensource-src-4.3.4-snapshot-20081021/src/server/core_server/applicationlauncher.cpp:20:
  3. /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qbytearray.h:151: warning: type qualifiers ignored on function return type
  4. /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qbytearray.h:152: warning: type qualifiers ignored on function return type
  5. /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qbytearray.h:154: warning: type qualifiers ignored on function return type
  6. /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qbytearray.h:353: warning: type qualifiers ignored on function return type
  7. /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qbytearray.h:355: warning: type qualifiers ignored on function return type
  8. /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qbytearray.h:357: warning: type qualifiers ignored on function return type
  9. /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qbytearray.h:398: warning: type qualifiers ignored on function return type
  10. In file included from /work/tmp/build/qtopiacore/target/include/QtCore/qstring.h:1,
  11.                  from /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/kernel/qobject.h:50,
  12.                  from /work/tmp/build/qtopiacore/target/include/QtCore/qobject.h:1,
  13.                  from /work/tmp/build/qtopiacore/target/include/QtCore/QObject:1,
  14.                  from /work/tmp/qtopia-opensource-src-4.3.4-snapshot-20081021/src/server/core_server/applicationlauncher.h:23,
  15.                  from /work/tmp/qtopia-opensource-src-4.3.4-snapshot-20081021/src/server/core_server/applicationlauncher.cpp:20:
  16. /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qstring.h:794: warning: type qualifiers ignored on function return type
  17. /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qstring.h:795: warning: type qualifiers ignored on function return type
  18. /work/tmp/build/qtopiacore/target/include/QtCore/../../../../../qtopia-opensource-src-4.3.4-snapshot-20081021/qtopiacore/qt/src/corelib/tools/qstring.h:796: warning: type qualifiers ignored on function return type
  19. In file included from /usr/include/c++/4.4/bits/locale_classes.h:809,
  20.                  from /usr/include/c++/4.4/bits/ios_base.h:43,
  21.                  from /usr/include/c++/4.4/ios:43,
  22.                  from /usr/include/c++/4.4/istream:40,
  23.                  from /usr/include/c++/4.4/fstream:40,
  24.                  from /work/tmp/qtopia-opensource-src-4.3.4-snapshot-20081021/src/server/core_server/applicationlauncher.cpp:49:
  25. /usr/include/c++/4.4/bits/locale_classes.tcc: In function ‘bool std::has_facet(const std::locale&)’:
  26. /usr/include/c++/4.4/bits/locale_classes.tcc:97: error: ‘dynamic_cast_not_allowed’ was not declared in this scope
  27. /usr/include/c++/4.4/bits/locale_classes.tcc:97: error: expected primary-expression before ‘const’
  28. /usr/include/c++/4.4/bits/locale_classes.tcc:97: error: expected ‘)’ before ‘const’
  29. /usr/include/c++/4.4/bits/locale_classes.tcc: In function ‘const _Facet& std::use_facet(const std::locale&)’:
  30. /usr/include/c++/4.4/bits/locale_classes.tcc:112: error: ‘dynamic_cast_not_allowed’ was not declared in this scope
  31. /usr/include/c++/4.4/bits/locale_classes.tcc:112: error: expected primary-expression before ‘const’
  32. /usr/include/c++/4.4/bits/locale_classes.tcc:112: error: expected ‘;’ before ‘const’
  33. /usr/include/c++/4.4/bits/locale_classes.tcc:112: error: expected unqualified-id before ‘>’ token
  34. /usr/include/c++/4.4/bits/locale_classes.tcc:112: error: expected initializer before ‘>’ token
  35.    
复制代码
不知为何?
locale_classes.tcc内的代码如下:
  1. template<typename _Facet>
  2.     bool
  3.     has_facet(const locale& __loc) throw()
  4.     {
  5.       const size_t __i = _Facet::id._M_id();
  6.       const locale::facet** __facets = __loc._M_impl->_M_facets;
  7.       return (__i < __loc._M_impl->_M_facets_size
  8. #ifdef __GXX_RTTI
  9.               && dynamic_cast<const _Facet*>(__facets[__i]));
  10. #else
  11.               && static_cast<const _Facet*>(__facets[__i]));
  12. #endif
  13.     }

  14.   template<typename _Facet>
  15.     const _Facet&
  16.     use_facet(const locale& __loc)
  17.     {
  18.       const size_t __i = _Facet::id._M_id();
  19.       const locale::facet** __facets = __loc._M_impl->_M_facets;
  20.       if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i])
  21.         __throw_bad_cast();
  22. #ifdef __GXX_RTTI
  23.       return dynamic_cast<const _Facet&>(*__facets[__i]);
  24. #else
  25.       return static_cast<const _Facet&>(*__facets[__i]);
  26. #endif
  27.     }
复制代码

论坛徽章:
0
2 [报告]
发表于 2010-06-06 10:48 |只看该作者
本帖最后由 stesen 于 2010-06-06 16:21 编辑

qtopia组上传patch:

废弃: 0001-qtopia.patch.bz2 (1.78 KB, 下载次数: 57)
新patch见4楼

论坛徽章:
0
3 [报告]
发表于 2010-06-06 13:26 |只看该作者
http://sourceforge.net/projects/ ... 4.3.tar.gz/download


qt-extended-4.4.3

  1. ../qt-extended-4.4.3/configure -release -prefix=/opt/qtopia -image=/opt/qtopia -xplatform linux-arm-g++ -arch arm -no-dbus -displaysizes 640x480 -build-qt -extra-qt-embedded-config "-xplatform qws/linux-arm-g++ -embedded arm -qconfig qpe -shared -little-endian -webkit -qt-kbd-usb -qt-libpng -qt-libjpeg -qt-gif -depths 4,8,16,32
  2. "

  3. bin/qbuild
复制代码
然后出现错误

  1. stesen@debian:/work/build/armqt/qeb$ bin/qbuild
  2. Project () ERROR: An error occured while evaluating a QBuild script extension.
  3.     File:    /work/build/armqt/qt-extended-4.4.3/qbuild.pro@87
  4.     Error:   SyntaxError: Parse error
  5.              <anonymous>()@:6732

  6. Aborted
复制代码
x86编译同样错误

论坛徽章:
0
4 [报告]
发表于 2010-06-06 16:22 |只看该作者
更新qtopia-patch
0001-qtopia.patch.tar.gz (1.73 KB, 下载次数: 180)

论坛徽章:
0
5 [报告]
发表于 2011-10-10 21:22 |只看该作者
表示与三楼的错误一样,但是已经解决来,应该是版本的问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP