Hi,<br><br>I am trying to compile Qt 4.7.2 in buildroot. I got the error:<br><br>compiling util/qdeclarativestateoperations.cpp<br>rm -f libQtDeclarative.so.4.7.2 libQtDeclarative.so libQtDeclarative.so.4 libQtDeclarative.so.4.7<br>
linking ../../lib/libQtDeclarative.so.4.7.2<br>.obj/release-shared-emb-arm/qdeclarativeview.o: In function `QDeclarativeView::setRootObject(QObject*)':<br>qdeclarativeview.cpp:(.text+0x22e4): undefined reference to `QAbstractDeclarativeData::objectNameChanged'<br>
.obj/release-shared-emb-arm/qdeclarativepackage.o: In function `QList<QDeclarativePackagePrivate::DataGuard>::detach_helper()':<br>qdeclarativepackage.cpp:(.text._ZN5QListIN26QDeclarativePackagePrivate9DataGuardEE13detach_helperEv[QList<QDeclarativePackagePrivate::DataGuard>::detach_helper()]+0x2a0): undefined reference to `QAbstractDeclarativeData::objectNameChanged'<br>
.obj/release-shared-emb-arm/qdeclarativepackage.o: In function `QList<QDeclarativePackagePrivate::DataGuard>::append(QDeclarativePackagePrivate::DataGuard const&)':<br>qdeclarativepackage.cpp:(.text._ZN5QListIN26QDeclarativePackagePrivate9DataGuardEE6appendERKS1_[QList<QDeclarativePackagePrivate::DataGuard>::append(QDeclarativePackagePrivate::DataGuard const&)]+0x7d0): undefined reference to `QAbstractDeclarativeData::objectNameChanged'<br>
.obj/release-shared-emb-arm/qdeclarativepackage.o: In function `QDeclarativePackagePrivate::data_append(QDeclarativeListProperty<QObject>*, QObject*)':<br>qdeclarativepackage.cpp:(.text._ZN26QDeclarativePackagePrivate11data_appendEP24QDeclarativeListPropertyI7QObjectEPS1_[QDeclarativePackagePrivate::data_append(QDeclarativeListProperty<QObject>*, QObject*)]+0x19c): undefined reference to `QAbstractDeclarativeData::objectNameChanged'<br>
.obj/release-shared-emb-arm/qdeclarativeanimation.o: In function `QDeclarativeAbstractAnimation::setRunning(bool)':<br>qdeclarativeanimation.cpp:(.text+0x6bc8): undefined reference to `QAbstractDeclarativeData::objectNameChanged'<br>
.obj/release-shared-emb-arm/qdeclarativeanimation.o:qdeclarativeanimation.cpp:(.text._ZN16QDeclarativeData3getEPK7QObjectb[QDeclarativeData::get(QObject const*, bool)]+0x118): more undefined references to `QAbstractDeclarativeData::objectNameChanged' follow<br>
.obj/release-shared-emb-arm/qdeclarativetextinput.o: In function `QDeclarativeTextInput::cursorPosChanged()':<br>qdeclarativetextinput.cpp:(.text+0x1d70): undefined reference to `QLineControl::resetCursorBlinkTimer()'<br>
.obj/release-shared-emb-arm/qdeclarativevisualitemmodel.o: In function `QDeclarativeVisualDataModelData::QDeclarativeVisualDataModelData(int, QDeclarativeVisualDataModel*)':<br>qdeclarativevisualitemmodel.cpp:(.text+0x2d2c): undefined reference to `QAbstractDeclarativeData::objectNameChanged'<br>
.obj/release-shared-emb-arm/qdeclarativevisualitemmodel.o: In function `QDeclarativeVisualDataModelPrivate::QDeclarativeVisualDataModelPrivate(QDeclarativeContext*)':<br>qdeclarativevisualitemmodel.cpp:(.text+0x3614): undefined reference to `QAbstractDeclarativeData::objectNameChanged'<br>
.obj/release-shared-emb-arm/qdeclarativevisualitemmodel.o: In function `QDeclarativeVisualDataModelPrivate::QDeclarativeVisualDataModelPrivate(QDeclarativeContext*)':<br>qdeclarativevisualitemmodel.cpp:(.text+0x3ccc): undefined reference to `QAbstractDeclarativeData::objectNameChanged'<br>
.obj/release-shared-emb-arm/qdeclarativevisualitemmodel.o: In function `QDeclarativeVisualDataModelData::QDeclarativeVisualDataModelData(int, QDeclarativeVisualDataModel*)':<br>qdeclarativevisualitemmodel.cpp:(.text+0x43f4): undefined reference to `QAbstractDeclarativeData::objectNameChanged'<br>
.obj/release-shared-emb-arm/qdeclarativevisualitemmodel.o: In function `QDeclarativeGuard<QDeclarativeVisualDataModel>::operator=(QDeclarativeVisualDataModel*)':<br>qdeclarativevisualitemmodel.cpp:(.text._ZN17QDeclarativeGuardI27QDeclarativeVisualDataModelEaSEPS0_[QDeclarativeGuard<QDeclarativeVisualDataModel>::operator=(QDeclarativeVisualDataModel*)]+0x174): undefined reference to `QAbstractDeclarativeData::objectNameChanged'<br>
.obj/release-shared-emb-arm/qdeclarativelistview.o:qdeclarativelistview.cpp:(.text+0x930): more undefined references to `QAbstractDeclarativeData::objectNameChanged' follow<br>.obj/release-shared-emb-arm/qdeclarativetextlayout.o: In function `(anonymous namespace)::DrawTextItemRecorder::drawTextItem(QPointF const&, QTextItem const&)':<br>
qdeclarativetextlayout.cpp:(.text+0x17d8): undefined reference to `QStaticTextItem::setFontEngine(QFontEngine*)'<br>qdeclarativetextlayout.cpp:(.text+0x1854): undefined reference to `QStaticTextItem::~QStaticTextItem()'<br>
.obj/release-shared-emb-arm/qdeclarativetextlayout.o: In function `QVector<QStaticTextItem>::free(QVectorTypedData<QStaticTextItem>*)':<br>qdeclarativetextlayout.cpp:(.text._ZN7QVectorI15QStaticTextItemE4freeEP16QVectorTypedDataIS0_E[QVector<QStaticTextItem>::free(QVectorTypedData<QStaticTextItem>*)]+0x30): undefined reference to `QStaticTextItem::~QStaticTextItem()'<br>
.obj/release-shared-emb-arm/qdeclarativetextlayout.o: In function `QVector<QStaticTextItem>::realloc(int, int)':<br>qdeclarativetextlayout.cpp:(.text._ZN7QVectorI15QStaticTextItemE7reallocEii[QVector<QStaticTextItem>::realloc(int, int)]+0x1c8): undefined reference to `QStaticTextItem::setFontEngine(QFontEngine*)'<br>
qdeclarativetextlayout.cpp:(.text._ZN7QVectorI15QStaticTextItemE7reallocEii[QVector<QStaticTextItem>::realloc(int, int)]+0x2f0): undefined reference to `QStaticTextItem::~QStaticTextItem()'<br>.obj/release-shared-emb-arm/qdeclarativetextlayout.o: In function `QVector<QStaticTextItem>::append(QStaticTextItem const&)':<br>
qdeclarativetextlayout.cpp:(.text._ZN7QVectorI15QStaticTextItemE6appendERKS0_[QVector<QStaticTextItem>::append(QStaticTextItem const&)]+0xf0): undefined reference to `QStaticTextItem::setFontEngine(QFontEngine*)'<br>
qdeclarativetextlayout.cpp:(.text._ZN7QVectorI15QStaticTextItemE6appendERKS0_[QVector<QStaticTextItem>::append(QStaticTextItem const&)]+0x224): undefined reference to `QStaticTextItem::setFontEngine(QFontEngine*)'<br>
qdeclarativetextlayout.cpp:(.text._ZN7QVectorI15QStaticTextItemE6appendERKS0_[QVector<QStaticTextItem>::append(QStaticTextItem const&)]+0x22c): undefined reference to `QStaticTextItem::~QStaticTextItem()'<br>
qdeclarativetextlayout.cpp:(.text._ZN7QVectorI15QStaticTextItemE6appendERKS0_[QVector<QStaticTextItem>::append(QStaticTextItem const&)]+0x350): undefined reference to `QStaticTextItem::setFontEngine(QFontEngine*)'<br>
.obj/release-shared-emb-arm/qdeclarativevmemetaobject.o: In function `QDeclarativeVMEMetaObject::QDeclarativeVMEMetaObject(QObject*, QMetaObject const*, QDeclarativeVMEMetaData const*, QDeclarativeCompiledData*)':<br>
qdeclarativevmemetaobject.cpp:(.text+0x1a0c): undefined reference to `QAbstractDeclarativeData::objectNameChanged'<br>.obj/release-shared-emb-arm/qdeclarativevmemetaobject.o: In function `QDeclarativeVMEMetaObject::QDeclarativeVMEMetaObject(QObject*, QMetaObject const*, QDeclarativeVMEMetaData const*, QDeclarativeCompiledData*)':<br>
qdeclarativevmemetaobject.cpp:(.text+0x20a8): undefined reference to `QAbstractDeclarativeData::objectNameChanged'<br>.obj/release-shared-emb-arm/qdeclarativevmemetaobject.o: In function `QDeclarativeVMEMetaObject::writeVarProperty(int, QVariant const&)':<br>
qdeclarativevmemetaobject.cpp:(.text+0x2774): undefined reference to `QAbstractDeclarativeData::objectNameChanged'<br>.obj/release-shared-emb-arm/qdeclarativevmemetaobject.o: In function `QDeclarativeVMEVariant::setValue(QObject*)':<br>
qdeclarativevmemetaobject.cpp:(.text._ZN22QDeclarativeVMEVariant8setValueEP7QObject[QDeclarativeVMEVariant::setValue(QObject*)]+0x308): undefined reference to `QAbstractDeclarativeData::objectNameChanged'<br>.obj/release-shared-emb-arm/qdeclarativeengine.o: In function `QDeclarativeEnginePrivate::init()':<br>
qdeclarativeengine.cpp:(.text+0xf50): undefined reference to `QAbstractDeclarativeData::objectNameChanged'<br>.obj/release-shared-emb-arm/qdeclarativeengine.o:qdeclarativeengine.cpp:(.text+0x19e0): more undefined references to `QAbstractDeclarativeData::objectNameChanged' follow<br>
collect2: ld returned 1 exit status<br>make[2]: *** [../../lib/libQtDeclarative.so.4.7.2] Error 1<br>make[2]: Leaving directory `/home/bao/work/buildroot/output/build/qt-everywhere-opensource-src-4.7.2/src/declarative'<br>
make[1]: *** [sub-declarative-make_default-ordered] Error 2<br>make[1]: Leaving directory `/home/bao/work/buildroot/output/build/qt-everywhere-opensource-src-4.7.2'<br>make: *** [/home/bao/work/buildroot/output/build/qt-everywhere-opensource-src-4.7.2/.compiled] Error 2<br>
<br><br>How can I fix that?<br><br>Thanks<br><br>BAO<br>