When I rebuild qt deb install packages using "dpkg-buildpackage -b -D 
-rfakeroot -us -uc"

I get the following errors when trying to build qt-mobility with the following 
options: ./configure -maemo5 -release -modules "multimedia" -tests

In file included from qmediaimageviewer.cpp:45:
qmediaimageviewerservice_p.h:74: error: function definition does not declare 
parameters
qmediaimageviewerservice_p.h:99: error: expected `)' before '*' token
qmediaimageviewer.cpp: In constructor 
'QMediaImageViewer::QMediaImageViewer(QObject*)':
qmediaimageviewer.cpp:208: error: expected type-specifier before 
'QMediaImageViewerService'
qmediaimageviewer.cpp:208: error: expected `)' before 'QMediaImageViewerService'
qmediaimageviewer.cpp:208: error: no matching function for call to 
'QMediaObject::QMediaObject(QMediaImageViewerPrivate&, QObject*&, int*)'
qmediaobject.h:93: note: candidates are: 
QMediaObject::QMediaObject(QMediaObjectPrivate&, QObject*, QMediaService*)
qmediaobject.h:92: note:                 QMediaObject::QMediaObject(QObject*, 
QMediaService*)
qmediaobject.h:58: note:                 QMediaObject::QMediaObject(const 
QMediaObject&)
make[2]: *** [../../build/Release/QtMultimediaKit/qmediaimageviewer.o] Error 1
make[2]: Leaving directory `/home/ballagas/qt-mobility/src/multimedia'
make[1]: *** [sub-multimedia-make_default] Error 2
make[1]: Leaving directory `/home/ballagas/qt-mobility/src'
make: *** [sub-src-make_default-ordered] Error 2


There may be a problem with Q_AUTOTEST_EXPORT not being defined correctly if 
configure with both -release and -tests.

I'd recommend removing the -tests flag from your configure line.  Perhaps you 
wanted the -demos and/or -examples flags instead?

If you really do want to build the auto tests with a release build, this commit 
http://qt.gitorious.org/qt-mobility/qt-mobility/commit/b2b1d71eb9be80cc9ccb8205244190d15c0e5317
 changes how classes are exported and likely resolves the problem.

Andrew
_______________________________________________
Qt-mobility-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback

Reply via email to