PDA

View Full Version : ubild error on linux with Qt 4.8.2



gambr
1st August 2012, 08:30
Hi All,
I moved from qt 4.7.2 to Qt 4.8.2 and I have to say just building Qt on linux was not straightforward: I had to modify a file (https://bugreports.qt-project.org/browse/QTBUG-23364) and build with some specific options (i.e. -no-xshape).

Now building my app I get the following error:

In file included from 3rd_party/qt/qt-4.8.2/include/QtCore/qobject.h:1,
from 3rd_party/qt/qt-4.7.2/include/QtGui/../../src/gui/kernel/qwidget.h:27,
from 3rd_party/qt/qt-4.7.2/include/QtGui/qwidget.h:1,
from 3rd_party/qwt/qwt-6.0.1/src/qwt_abstract_slider.h:15,
from 3rd_party/qwt/qwt-6.0.1/src/qwt_slider.h:15,
from src/apps/virianimator/virianimatorgui/AnimationSlider.h:15,
from src/apps/virianimator/virianimatorgui/AnimationSlider.cpp:9:
3rd_party/qt/qt-4.8.2/include/QtCore/../../src/corelib/kernel/qobject.h:94: error: ISO C++ forbids declaration of `Q_DECL_HIDDEN' with no type
3rd_party/qt/qt-4.8.2/include/QtCore/../../src/corelib/kernel/qobject.h:94: error: expected `;' before "static"

Can anybody explain me please the reason?

Regards
Gianni

gambr
3rd August 2012, 13:02
Problem solved. I did'nt realize for an error in our building environment two different versions of Qt were used. Sorry for the supid mistake.

Regards
Gianni