i tried to build qt 5.7.1 on pi3 following this instruction: https://wiki.qt.io/Native_Build_of_Qt_5.4.1_on_a_Raspberry_Pi
the source package i use is: qt-everywhere-opensource-src-5.7.1.tar
configure as:
./configure -v -opengl es2 -force-pkg-config -device linux-rpi3-g++ -device-option CROSS_COMPILE=/usr/bin/ -opensource -confirm-license -optimized-qmake -reduce-exports -release -qt-pcre -qt-xcb -make libs -no-use-gold-linker -prefix /usr/local/qt5
The instruction is using "linux-rasp-pi-g++", but i think it should be linux-rpi3-g++ for Rpi3.
Make, and i get errors like:
/usr/bin/g++ -Wl,-rpath-link,/opt/vc/lib -Wl,-rpath-link,/usr/lib/arm-linux-gnueabihf -Wl,-rpath-link,/lib/arm-linux-gnueabihf -mfloat-abi=hard -Wl,--gc-sections -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../lib -Wl,-rpath-link,/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib -Wl,-rpath-link,/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/lib -o ../../bin/qmltestrunner .obj/main.o -L/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib -lQt5QuickTest -L/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/lib -lQt5Widgets -lQt5Gui -lQt5Qml -lQt5Network -lQt5Test -lQt5Core -lGLESv2 -lpthread /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV8Engine::toVariant(QV4::ValueRef, int)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlProfilerService::dataReady(QQmlAbstractProfilerAdapter*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::ExecutionContext::throwTypeError()' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::markObjects(QV4::Managed*, QV4::ExecutionEngine*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQQmlEngineDebugService::instance()' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV8Engine::fromVariant(QVariant const&)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::PersistentValue::operator=(unsigned long long)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlValueType::qt_metacast(char const*)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::y() const@Qt_5' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to
QQuickView::errors() const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::Managed::engine() const' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::ExecutionEngine::newErrorObject(QV4::ValueRef)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQQmlBinding::property() const' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlCustomParser::bindingIdentifier(QV4::CompiledData::Binding const*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::ExecutionContext::throwError(QString const&)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlBinding::Invalid' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQQmlAbstractBinding::vTables' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::ExecutionContext::throwError(QV4::ValueRef)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::Object::call(QV4::Managed*, QV4::CallData*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlBinding::createBinding(int, QObject*, QQmlContext*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::Managed::operator new(unsigned int, QV4::MemoryManager*)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to
QQuickItem::height() const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::Object::setLookup(QV4::Managed*, QV4::Lookup*, QV4::ValueRef)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::PersistentValue::PersistentValue(QV4::ValueRef)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQQmlValueType::qt_metacall(QMetaObject::Call, int, void**)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlProfilerService::addGlobalProfiler(QQmlAbstractProfilerAdapter*)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickView::QQuickView(QWindow*)@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::putIndexed(QV4::Managed*, unsigned int, QV4::ValueRef)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::Object::put(QV4::Managed*, QV4::StringRef, QV4::ValueRef)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::Object(QV4::ExecutionEngine*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQQmlValueType::staticMetaObject' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QShortcutMap::tryShortcutEvent(QObject*, QKeyEvent*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQQmlProfilerService::instance()' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to
QQuickView::engine() const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::Object::getLookup(QV4::Managed*, QV4::Lookup*)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to
QQuickView::setSource(QUrl const&)@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::PersistentValue::operator=(QV4::ValueRef)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::ArrayData::realloc(QV4::Object*, QV4::ArrayData::Type, unsigned int, unsigned int, bool)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQQmlInspectorService::addView(QObject*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlPropertyPrivate::setBinding(QQmlProperty const&, QQmlAbstractBinding*, QFlags)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQQmlComponentPrivate::initializeObjectWithInitialProperties(QV4::ValueRef, QV4::ValueRef, QObject*)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to
QQuickItem::staticMetaObject@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQQmlValueType::QQmlValueType(int, QObject*)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to
QQuickItem::x() const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQQmlDebugStream::QQmlDebugStream(QByteArray*, QFlags<QIODevice::OpenModeFlag>)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to
QQuickItem::window() const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::Object::~Object()' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to
QQuickItem::mapToScene(QPointF const&) const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::Object::deleteProperty(QV4::Managed*, QV4::StringRef)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to
QQuickView::rootContext() const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::Object::getIndexed(QV4::Managed*, unsigned int, bool*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlDebugService::isDebuggingEnabled()' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::Object::destroy(QV4::Managed*)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to
QQuickWindow::grabWindow()@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQQmlValueType::metaObject() const' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlAbstractBinding::weakPointer()' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::Object::get(QV4::Managed*, QV4::StringRef, bool*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QOpenGLContextPrivate::globalShareContext()' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::Managed::setVTable(QV4::ManagedVTable const*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QQmlEngineDebugService::setStatesDelegate(QQmlDebugStatesDelegate*)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickView::status() const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::construct(QV4::Managed*, QV4::CallData*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQQmlInspectorService::instance()' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::query(QV4::Managed const*, QV4::StringRef)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::width() const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::Object::defineAccessorProperty(QV4::StringRef, unsigned long long ()(QV4::CallContext), unsigned long long ()(QV4::CallContext))' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference toQV4::Object::advanceIterator(QV4::Managed*, QV4::ObjectIterator*, QV4::StringRef, unsigned int*, QV4::Property*, QV4::PropertyAttributes*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
QV4::String::simplifyString() const' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to `QQmlInspectorService::removeView(QObject*)' collect2: error: ld returned 1 exit status Makefile:108: recipe for target '../../bin/qmltestrunner' failed make[3]: * [../../bin/qmltestrunner] Error 1 make[3]: Leaving directory '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/tools/qmltestrunner' Makefile:276: recipe for target 'sub-qmltestrunner-make_first' failed make[2]: * [sub-qmltestrunner-make_first] Error 2
so, how can i fix this problem?
thanks.