- 积分
- 95
贡献184
飞刀3 FD
注册时间2013-9-3
在线时间37 小时
|
发表于 2014-4-3 16:35:24
|
显示全部楼层
我也遇到了类似的问题root@forlinx-virtual-machine:~/2014040209# make
/witech/builddir/sdk/qtopiacore/target/bin/uic widget.ui -o ui_widget.h
arm-linux-g++ -c -fnp-rtti -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/witech/builddir/sdk/qtopiacore/target/mkspecs/qws/linux-arm-g++ -I. -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include -I/usr/local/qwt-6.0.2/include -I. -I. -o main.o main.cpp
cc1plus: error: unrecognized command line option "-fnp-rtti"
make: *** [main.o] Error 1
root@forlinx-virtual-machine:~/2014040209# gedit Makefile
root@forlinx-virtual-machine:~/2014040209# make
arm-linux-g++ -c -fno-rtti -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/witech/builddir/sdk/qtopiacore/target/mkspecs/qws/linux-arm-g++ -I. -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include -I/usr/local/qwt-6.0.2/include -I. -I. -o main.o main.cpp
arm-linux-g++ -c -fno-rtti -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/witech/builddir/sdk/qtopiacore/target/mkspecs/qws/linux-arm-g++ -I. -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include -I/usr/local/qwt-6.0.2/include -I. -I. -o widget.o widget.cpp
widget.cpp: In constructor 'Widget::Widget(QWidget*)':
widget.cpp:18: error: 'class Ui::Widget' has no member named 'qwtPlot'
widget.cpp:34: error: 'class Ui::Widget' has no member named 'qwtPlot'
widget.cpp:35: error: 'class Ui::Widget' has no member named 'qwtPlot'
make: *** [widget.o] Error 1
root@forlinx-virtual-machine:~/2014040209# make
/witech/builddir/sdk/qtopiacore/target/bin/uic widget.ui -o ui_widget.h
arm-linux-g++ -c -fno-rtti -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/witech/builddir/sdk/qtopiacore/target/mkspecs/qws/linux-arm-g++ -I. -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include -I/usr/local/qwt-6.0.2/include -I. -I. -o widget.o widget.cpp
/witech/builddir/sdk/qtopiacore/target/bin/moc -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/witech/builddir/sdk/qtopiacore/target/mkspecs/qws/linux-arm-g++ -I. -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include -I/usr/local/qwt-6.0.2/include -I. -I. widget.h -o moc_widget.cpp
arm-linux-g++ -c -fno-rtti -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/witech/builddir/sdk/qtopiacore/target/mkspecs/qws/linux-arm-g++ -I. -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtCore -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtNetwork -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include/QtGui -I/witech/builddir/sdk/qtopiacore/target/include -I/usr/local/qwt-6.0.2/include -I. -I. -o moc_widget.o moc_widget.cpp
arm-linux-g++ -Wl,-rpath,/witech/builddir/sdk/qtopiacore/target/lib -o 2014040209 main.o widget.o moc_widget.o -L/witech/builddir/sdk/qtopiacore/target/lib -L /qtqwt/qwt-6.0.2-arm/lib/ -lqwt -lQtGui -L/usr/local/tslib/lib -L/witech/builddir/sdk/qtopiacore/target/lib -lts -lQtNetwork -lQtCore -lm -lrt -ldl -lpthread
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QLayout'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QFutureInte**ceBase'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QObject'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QFrame'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QPaintDevice'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QWidget'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QPaintEngine'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QPushButton'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QTextDocument'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QThread'
/qtqwt/qwt-6.0.2-arm/lib//libqwt.so: undefined reference to `typeinfo for QScrollArea'
collect2: ld returned 1 exit status
make: *** [2014040209] Error 1
|
|