• 4382阅读
  • 2回复

求助!qt-4.5.1 embedded arm编译错误。。。 [复制链接]

上一主题 下一主题
离线xiaojianxia
 

只看楼主 倒序阅读 楼主  发表于: 2010-04-07
在ubuntu9.10中编译embedded X86的qt成功了,例程运行也能行。但是换到embedded arm的时候虽然编译成功了,但是运行
qmake -project
qmake
make
之后出现如下错误,我编译的是qt提供的demos里的chip例子,由于编译qt时没有编译demos,后来是把源文件中的demos考过来,单独编译的。环境变量设置的是embedded arm的路径,应该没什么问题
在论坛里看到过有朋友出现同样的错误解决了,不过没有提供方法,郁闷啊。。。
哪位能给个解决办法,小弟不胜感激!
  1. In file included from ../../../../qtx11-4.5.0/include/QtGui/QtGui:202,
  2.                  from chip.cpp:44:
  3. ../../../../qtx11-4.5.0/include/QtGui/qtoolbar.h:176: warning: `visibility' attribute does not apply to types
  4. In file included from ../../../../qtx11-4.5.0/include/QtGui/QtGui:203,
  5.                  from chip.cpp:44:
  6. ../../../../qtx11-4.5.0/include/QtGui/qtoolbox.h:131: warning: `visibility' attribute does not apply to types
  7. In file included from ../../../../qtx11-4.5.0/include/QtGui/QtGui:204,
  8.                  from chip.cpp:44:
  9. ../../../../qtx11-4.5.0/include/QtGui/qtoolbutton.h:191: warning: `visibility' attribute does not apply to types
  10. In file included from ../../../../qtx11-4.5.0/include/QtGui/QtGui:206,
  11.                  from chip.cpp:44:
  12. ../../../../qtx11-4.5.0/include/QtGui/qworkspace.h:129: warning: `visibility' attribute does not apply to types
  13. ../../../../qtx11-4.5.0/include/QtCore/qatomic_i386.h: In destructor `QList<T>::~QList() [with T = QPointF]':
  14. ../../../../qtx11-4.5.0/include/QtCore/qatomic_i386.h:132: error: impossible constraint in `asm'
  15. make: *** [chip.o] Error 1
离线xiaojianxia

只看该作者 1楼 发表于: 2010-04-07
没人吗,我再顶一下
离线hercules

只看该作者 2楼 发表于: 2010-04-07
$YOUR_QTE_DIR/bin/qmake -pro your_project.pro -spec $YOUR_QTE_DIR/mkspec/qws/arm-linux-g++ CONFIG+="release"
我的QQ号:337396132
欢迎大家加我为好友,一起学习Qt
快速回复
限100 字节
 
上一个 下一个