title: native build qt5.7.1 on raspberry pi get errors: /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to `QV8Engine::toVariant
body: <p>i tried to build qt 5.7.1 on pi3 following this instruction:
  <a href="https://wiki.qt.io/Native_Build_of_Qt_5.4.1_on_a_Raspberry_Pi" rel="nofollow noreferrer">https://wiki.qt.io/Native_Build_of_Qt_5.4.1_on_a_Raspberry_Pi</a></p>
  
  <p>the source package i use is:
  qt-everywhere-opensource-src-5.7.1.tar</p>
  
  <p>configure as:</p>
  
  <p>./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</p>
  
  <p>The instruction is using "linux-rasp-pi-g++", but i think it should be linux-rpi3-g++ for Rpi3.</p>
  
  <p>Make, and i get errors like:</p>
  
  <blockquote>
    <p>/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 <code>QV8Engine::toVariant(QV4::ValueRef, int)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QQmlProfilerService::dataReady(QQmlAbstractProfilerAdapter*)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QV4::ExecutionContext::throwTypeError()'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QV4::Object::markObjects(QV4::Managed*, QV4::ExecutionEngine*)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QQmlEngineDebugService::instance()'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QV8Engine::fromVariant(QVariant const&amp;)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QV4::PersistentValue::operator=(unsigned long long)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QQmlValueType::qt_metacast(char const*)'
    /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to <code>QQuickItem::y() const@Qt_5'
    /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to</code>QQuickView::errors() const@Qt_5'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QV4::Managed::engine() const'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QV4::ExecutionEngine::newErrorObject(QV4::ValueRef)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QQmlBinding::property() const'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QQmlCustomParser::bindingIdentifier(QV4::CompiledData::Binding
    const*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined
    reference to <code>QV4::ExecutionContext::throwError(QString const&amp;)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QQmlBinding::Invalid' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:
    undefined reference to <code>QQmlAbstractBinding::vTables'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QV4::ExecutionContext::throwError(QV4::ValueRef)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QV4::Object::call(QV4::Managed*, QV4::CallData*)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QQmlBinding::createBinding(int, QObject*, QQmlContext*)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QV4::Managed::operator new(unsigned int, QV4::MemoryManager*)'
    /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to</code>QQuickItem::height() const@Qt_5'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QV4::Object::setLookup(QV4::Managed*, QV4::Lookup*, QV4::ValueRef)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QV4::PersistentValue::PersistentValue(QV4::ValueRef)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QQmlValueType::qt_metacall(QMetaObject::Call, int, void**)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QQmlProfilerService::addGlobalProfiler(QQmlAbstractProfilerAdapter*)'
    /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to <code>QQuickView::QQuickView(QWindow*)@Qt_5'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QV4::Object::putIndexed(QV4::Managed*, unsigned int, QV4::ValueRef)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QV4::Object::put(QV4::Managed*, QV4::StringRef, QV4::ValueRef)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QV4::Object::Object(QV4::ExecutionEngine*)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QQmlValueType::staticMetaObject'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QShortcutMap::tryShortcutEvent(QObject*, QKeyEvent*)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QQmlProfilerService::instance()'
    /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to</code>QQuickView::engine() const@Qt_5'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QV4::Object::getLookup(QV4::Managed*, QV4::Lookup*)'
    /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to</code>QQuickView::setSource(QUrl const&amp;)@Qt_5'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QV4::PersistentValue::operator=(QV4::ValueRef)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QV4::ArrayData::realloc(QV4::Object*, QV4::ArrayData::Type, unsigned
    int, unsigned int, bool)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QQmlInspectorService::addView(QObject*)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QQmlPropertyPrivate::setBinding(QQmlProperty const&amp;,
    QQmlAbstractBinding*, QFlags)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QQmlComponentPrivate::initializeObjectWithInitialProperties(QV4::ValueRef,
    QV4::ValueRef, QObject*)'
    /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to</code>QQuickItem::staticMetaObject@Qt_5'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QQmlValueType::QQmlValueType(int, QObject*)'
    /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to</code>QQuickItem::x() const@Qt_5'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QQmlDebugStream::QQmlDebugStream(QByteArray*,
    QFlags&lt;QIODevice::OpenModeFlag&gt;)'
    /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to</code>QQuickItem::window() const@Qt_5'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QV4::Object::~Object()'
    /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to</code>QQuickItem::mapToScene(QPointF const&amp;)
    const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined
    reference to <code>QV4::Object::deleteProperty(QV4::Managed*,
    QV4::StringRef)'
    /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to</code>QQuickView::rootContext() const@Qt_5'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QV4::Object::getIndexed(QV4::Managed*, unsigned int, bool*)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QQmlDebugService::isDebuggingEnabled()'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QV4::Object::destroy(QV4::Managed*)'
    /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to</code>QQuickWindow::grabWindow()@Qt_5'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QQmlValueType::metaObject() const'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QQmlAbstractBinding::weakPointer()'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QV4::Object::get(QV4::Managed*, QV4::StringRef, bool*)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QOpenGLContextPrivate::globalShareContext()'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QV4::Managed::setVTable(QV4::ManagedVTable const*)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QQmlEngineDebugService::setStatesDelegate(QQmlDebugStatesDelegate*)'
    /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to <code>QQuickView::status() const@Qt_5'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QV4::Object::construct(QV4::Managed*, QV4::CallData*)'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QQmlInspectorService::instance()'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QV4::Object::query(QV4::Managed const*, QV4::StringRef)'
    /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference to <code>QQuickItem::width() const@Qt_5'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    </code>QV4::Object::defineAccessorProperty(QV4::StringRef, unsigned long
    long (<em>)(QV4::CallContext</em>), unsigned long long
    (<em>)(QV4::CallContext</em>))'
    /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to
    <code>QV4::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
    </code>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]: <strong>*
    [../../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]: *</strong> [sub-qmltestrunner-make_first] Error 2</p>
  </blockquote>
  
  <p>so, how can i fix this problem?</p>
  
  <p>thanks.</p>