自己也用Qt,只在linux桌面机上用,今年毕业设计就准备要用Qt在linux下写个软件。最近报了个班,学嵌入式开发,他们就讲底成的开发,自己想用qt自己做上成的应用,所以想在这来入入门。
想必各位都是做嵌入式的开发咯,大家帮我看看,
1:把bootloader和kernel烧进板子后,还要做些什么才可以在板子上看到自己写的Qt应用程序?
2:我在网上看好像嵌入式qt开发,要安装Qt embeded, Qtopia,这些都是什么?还有个qvfb好像是个模拟器,是不是在桌面机上装了这个就可以模拟在板子上的Qt应用程序的运行情况,不过我这儿没装上。
3:我现在在桌面机中装了Qt4.4.3,Qt embeded和Qtopia都没有装,上面说的那个qvfb没有装上,我在tools/qvfb下make了一下,结果有问题:
$ make
g++ -c -pipe -g -O2 -Wall -W -D_REENTRANT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include/QtCore -I../../include/QtGui -I../../include/QtGui -I../../include -I. -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/qvfb.o qvfb.cpp
qvfb.cpp:47:24: error: deviceskin.h: No such file or directory
qvfb.cpp: In member function ‘void QVFb::init(int, int, int, int, int, const QString&)’:
qvfb.cpp:247: warning: possible problem detected in invocation of delete operator:
qvfb.cpp:247: warning: invalid use of incomplete type ‘struct DeviceSkin’
qvfb.h:53: warning: forward declaration of ‘struct DeviceSkin’
qvfb.cpp:247: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
qvfb.cpp:257: error: ‘DeviceSkinParameters’ was not declared in this scope
qvfb.cpp:257: error: expected `;' before ‘parameters’
qvfb.cpp:259: error: ‘parameters’ was not declared in this scope
qvfb.cpp:259: error: ‘DeviceSkinParameters’ is not a class or namespace
qvfb.cpp:260: error: invalid use of incomplete type ‘struct DeviceSkin’
qvfb.h:53: error: forward declaration of ‘struct DeviceSkin’
qvfb.cpp:261: error: no matching function for call to ‘QVFb::connect(DeviceSkin*&, const char [13], QVFb* const, const char [13])’
../../include/QtCore/../../src/corelib/kernel/qobject.h:197: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
../../include/QtCore/../../src/corelib/kernel/qobject.h:302: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
qvfb.cpp:267: warning: suggest explicit braces to avoid ambiguous ‘else’
qvfb.cpp:277: error: no matching function for call to ‘QVFbX11View::QVFbX11View(int&, int&, int&, int&, QVFbAbstractView::Rotation&, DeviceSkin*&)’
qvfbx11view.h:52: note: candidates are: QVFbX11View::QVFbX11View(int, int, int, int, QVFbAbstractView::Rotation, QWidget*)
qvfbx11view.h:49: note: QVFbX11View::QVFbX11View(const QVFbX11View&)
qvfb.cpp:280: error: no matching function for call to ‘QVFbView::QVFbView(int&, int&, int&, int&, QVFbAbstractView::Rotation&, DeviceSkin*&)’
qvfbview.h:109: note: candidates are: QVFbView::QVFbView(int, int, int, int, QVFbAbstractView::Rotation, QWidget*)
qvfbview.h:106: note: QVFbView::QVFbView(const QVFbView&)
qvfb.cpp:281: error: invalid use of incomplete type ‘struct DeviceSkin’
qvfb.h:53: error: forward declaration of ‘struct DeviceSkin’
qvfb.cpp:284: error: no matching function for call to ‘QVFb::connect(DeviceSkin*&, const char [37], QVFbAbstractView*&, const char [37])’
../../include/QtCore/../../src/corelib/kernel/qobject.h:197: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
../../include/QtCore/../../src/corelib/kernel/qobject.h:302: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
qvfb.cpp:285: error: no matching function for call to ‘QVFb::connect(DeviceSkin*&, const char [39], QVFbAbstractView*&, const char [39])’
../../include/QtCore/../../src/corelib/kernel/qobject.h:197: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
../../include/QtCore/../../src/corelib/kernel/qobject.h:302: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
qvfb.cpp:287: error: invalid use of incomplete type ‘struct DeviceSkin’
qvfb.h:53: error: forward declaration of ‘struct DeviceSkin’
qvfb.cpp:289: error: no matching function for call to ‘QVFb::setCentralWidget(DeviceSkin*&)’
../../include/QtGui/../../src/gui/widgets/qmainwindow.h:116: note: candidates are: void QMainWindow::setCentralWidget(QWidget*)
qvfb.cpp:302: error: no matching function for call to ‘QVFbX11View::QVFbX11View(int, int, int, int&, QVFbAbstractView::Rotation&, DeviceSkin*&)’
qvfbx11view.h:52: note: candidates are: QVFbX11View::QVFbX11View(int, int, int, int, QVFbAbstractView::Rotation, QWidget*)
qvfbx11view.h:49: note: QVFbX11View::QVFbX11View(const QVFbX11View&)
qvfb.cpp:305: error: no matching function for call to ‘QVFbView::QVFbView(int, int, int, int&, QVFbAbstractView::Rotation&, DeviceSkin*&)’
qvfbview.h:109: note: candidates are: QVFbView::QVFbView(int, int, int, int, QVFbAbstractView::Rotation, QWidget*)
qvfbview.h:106: note: QVFbView::QVFbView(const QVFbView&)
qvfb.cpp:306: error: invalid use of incomplete type ‘struct DeviceSkin’
qvfb.h:53: error: forward declaration of ‘struct DeviceSkin’
qvfb.cpp:312: warning: format not a string literal and no format arguments
qvfb.cpp: In member function ‘void QVFb::enableCursor(bool)’:
qvfb.cpp:379: error: invalid use of incomplete type ‘struct DeviceSkin’
qvfb.h:53: error: forward declaration of ‘struct DeviceSkin’
qvfb.cpp: In member function ‘void QVFb::setZoom(double)’:
qvfb.cpp:453: error: invalid use of incomplete type ‘struct DeviceSkin’
qvfb.h:53: error: forward declaration of ‘struct DeviceSkin’
qvfb.cpp: In member function ‘void QVFb::skinConfigChosen(int)’:
qvfb.cpp:771: error: ‘DeviceSkinParameters’ was not declared in this scope
qvfb.cpp:771: error: expected `;' before ‘parameters’
qvfb.cpp:773: error: ‘parameters’ was not declared in this scope
qvfb.cpp:773: error: ‘DeviceSkinParameters’ is not a class or namespace
qvfb.cpp:779: warning: format not a string literal and no format arguments
qvfb.cpp: In member function ‘void AnimationSaveWidget::convertToMpeg(QString)’:
qvfb.cpp:1026: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result
make: *** [.obj/release-shared/qvfb.o] Error 1
我现在就像把这个装起来,不知道如何搞。大家帮忙看看吧