在Windowxp下使用Qt5.0.2的Creater建立工程。该工程结束后,将所有源码放到red-hat下。red-hat使用Qt版本为:arm Embed 4.7.3,工具链为arm-linux-gcc
构建步骤:qmake: qmake blood_analyzer.pro -r -spec qws/linux-arm-g++
Make: make -w in /root/work/blood/blood_analyzer-build-desktop
编译时提示:
为项目blood_analyzer执行构建步骤 ...
配置没有改变, 跳过 qmake 步骤.
正在启动 "/usr/bin/make" -w
make: Entering directory `/root/work/blood/blood_analyzer-build-desktop'
/usr/local/Trolltech/QtEmbedded-4.7.3-arm/bin/qmake -spec /usr/local/Trolltech/QtEmbedded-4.7.3-arm/mkspecs/qws/linux-arm-g++ -o Makefile ../blood_analyzer/blood_analyzer.pro
uic: Error in line 140, column 59 : Unexpected attribute alignment
uic: Error in line 158, column 45 : Unexpected attribute alignment
uic: Error in line 126, column 62 : Unexpected attribute alignment
uic: Error in line 154, column 62 : Unexpected attribute alignment
uic: Error in line 85, column 60 : Unexpected attribute alignment
uic: Error in line 64, column 62 : Unexpected attribute alignment
uic: Error in line 217, column 58 : Unexpected attribute alignment
uic: Error in line 46, column 41 : Unexpected attribute alignment
make: Leaving directory `/root/work/blood/blood_analyzer-build-desktop'
make: Entering directory `/root/work/blood/blood_analyzer-build-desktop'
/usr/local/Trolltech/QtEmbedded-4.7.3-arm/bin/uic ../blood_analyzer/x_edit_dialog.ui -o ui_x_edit_dialog.h
uic: Error in line 140, column 59 : Unexpected attribute alignment
File '../blood_analyzer/x_edit_dialog.ui' is not valid
make: *** [ui_x_edit_dialog.h] 错误 1
make: Leaving directory `/root/work/blood/blood_analyzer-build-desktop'
进程"/usr/bin/make"退出,退出代码 2 。
构建项目blood_analyzer 时发生错误 (目标: 桌面)
当执行构建步骤 'Make'时
请问这是什么情况?该如何解决?
------解决方案--------------------
Qt5的改动较大,建议还是用Qt4吧