在树莓派上原生构建 qt5.7.1 得到错误:/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: 未定义对 `QV8Engine::toVariant 的引用

Posted

技术标签:

【中文标题】在树莓派上原生构建 qt5.7.1 得到错误:/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: 未定义对 `QV8Engine::toVariant 的引用【英文标题】:native build qt5.7.1 on raspberry pi get errors: /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to `QV8Engine::toVariant 【发布时间】:2017-05-24 10:24:08 【问题描述】:

我尝试按照以下说明在 pi3 上构建 qt 5.7.1: https://wiki.qt.io/Native_Build_of_Qt_5.4.1_on_a_Raspberry_Pi

我使用的源码包是: qt-everywhere-opensource-src-5.7.1.tar

配置为:

./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

指令使用“linux-rasp-pi-g++”,但我认为Rpi3应该是linux-rpi3-g++。

制作,我收到如下错误:

/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:未定义引用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:未定义的引用 QV4::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:未定义的引用 QQmlEngineDebugService::instance()' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to QV8Engine::fromVariant(QVariant const&)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:未定义的引用 QV4::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:未定义引用QQuickItem::y() const@Qt_5' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickView::errors() const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:未定义的引用 QV4::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:未定义的引用 QQmlBinding::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: 未定义 参考QV4::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: 对QQmlAbstractBinding::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:未定义的引用 QV4::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:未定义的引用 QV4::Managed::operator new(unsigned int, QV4::MemoryManager*)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::height() const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:未定义的引用 QV4::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:未定义的引用 QQmlValueType::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: 未定义引用QQuickView::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:未定义的引用 QV4::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:未定义的引用 QQmlValueType::staticMetaObject' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to QShortcutMap::tryShortcutEvent(QObject*, QKeyEvent*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:未定义的引用 QQmlProfilerService::instance()' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickView::engine() const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:未定义的引用 QV4::Object::getLookup(QV4::Managed*, QV4::Lookup*)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickView::setSource(QUrl const&)@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:未定义的引用 QV4::PersistentValue::operator=(QV4::ValueRef)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to QV4::ArrayData::realloc(QV4::Object*, QV4::ArrayData::Type, 无符号 整数,无符号整数,布尔)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:未定义的引用 QQmlInspectorService::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:未定义的引用 QQmlComponentPrivate::initializeObjectWithInitialProperties(QV4::ValueRef, QV4::ValueRef, QObject*)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::staticMetaObject@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:未定义的引用 QQmlValueType::QQmlValueType(int, QObject*)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::x() const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:未定义的引用 QQmlDebugStream::QQmlDebugStream(QByteArray*, QFlags<QIODevice::OpenModeFlag>)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::window() const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:未定义的引用 QV4::Object::~Object()' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickItem::mapToScene(QPointF const&) const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:未定义 参考QV4::Object::deleteProperty(QV4::Managed*, QV4::StringRef)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickView::rootContext() const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:未定义的引用 QV4::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:未定义的引用 QV4::Object::destroy(QV4::Managed*)' /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/lib/libQt5QuickTest.so: undefined reference toQQuickWindow::grabWindow()@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:未定义的引用 QQmlValueType::metaObject() const' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to QQmlAbstractBinding::weakPointer()' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:未定义的引用 QV4::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:未定义的引用 QV4::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: 未定义引用QQuickView::status() const@Qt_5' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: undefined reference to QV4::Object::construct(QV4::Managed*, QV4::呼叫数据*)' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:未定义的引用 QQmlInspectorService::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: 未定义引用QQuickItem::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:未定义的引用 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 QV4::String::simplifyString() const' /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5:未定义的引用 `QQmlInspectorService::removeView(QObject*)' collect2:错误:ld 返回 1 个退出状态 Makefile:108: 目标配方 '../../bin/qmltestrunner' 失败 make[3]: * [../../bin/qmltestrunner] 错误 1 ​​make[3]: 离开目录 '/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtdeclarative/tools/qmltestrunner' Makefile:276:目标“sub-qmltestrunner-make_first”的配方失败 make[2]: * [sub-qmltestrunner-make_first] 错误2

那么,我该如何解决这个问题?

谢谢。

【问题讨论】:

【参考方案1】:

这个问题我已经解决了,现在又有新问题了。

在 pi 上原生构建 qt 之前,我通过以下方式安装了 qt: sudo apt-get install qt5-default 和其他 qt5 软件包。

虽然我有: sudo apt-get 删除这些软件包,它可能仍然有效。

所以我格式化了 SD 卡并重新刻录了一个 Raspbian 映像,按照说明“制作”,问题就消失了。

但现在我有另一个问题。

当我“make install”时,我得到这个错误:

/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,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../.. /lib -shared -o libdeclarative_location.so .obj/location.o .obj/qdeclarativegeomapitemview.o .obj/qdeclarativegeoserviceprovider.o .obj/qdeclarativegeocodemodel.o .obj/qdeclarativegeoroutemodel.o .obj/qdeclarativegeoroute.o .obj/qdeclarativegeoroutesegment。 o .obj/qdeclarativegeomaneuver.o .obj/qdeclarativegeomap.o .obj/qdeclarativegeomaptype.o .obj/qdeclarativegeomapitembase.o .obj/qdeclarativegeomapquickitem.o .obj/qdeclarativecirclemapitem.o .obj/qdeclarativerectanglemapitem.o .obj/qdeclarativepolygonmapitem.o obj/qdeclarativepolylinemapitem.o .obj/qdeclarativeroutemapitem.o .obj/qgeomapitemgeometry.o .obj/qdeclarativegeomapcopyrightsnotice.o .obj/error_messages.o .obj/locationvaluetypehelper.o .obj/qquickgeomapgesturearea.o .obj/qquickgeocoordinateanimation.o .obj/马皮temviewdelegateincubator.o .obj/qdeclarativeplacecontentmodel.o .obj/qdeclarativesupportedcategoriesmodel.o .obj/qdeclarativesearchsuggestionmodel.o .obj/qdeclarativesearchresultmodel.o .obj/qdeclarativereviewmodel.o .obj/qdeclarativeplaceimagemodel.o .obj/qdeclarativeplaceeditorialmodel.o .obj/qdeclarativecontactdetail。 o .obj/qdeclarativecategory.o .obj/qdeclarativeplace.o .obj/qdeclarativeplaceattribute.o .obj/qdeclarativeplaceicon.o .obj/qdeclarativeplaceuser.o .obj/qdeclarativeratings.o .obj/qdeclarativesupplier.o .obj/qdeclarativesearchmodelbase.o OBJ / moc_qdeclarativecirclemapitem_p.o .OBJ / moc_qdeclarativerectanglemapitem_p.o .OBJ / moc_qdeclarativepolygonmapitem_p.o .OBJ / moc_qdeclarativepolylinemapitem_p.o .OBJ / moc_qdeclarativeroutemapitem_p.o .OBJ / moc_qdeclarativegeomapcopyrightsnotice_p.o .OBJ / moc_qquickgeocoordinateanimation_p.o .OBJ / moc_qdeclarativeplacecontentmodel.o的obj / moc_qdeclarativesupportedcategoriesmodel_p.o .obj/moc_qdeclarativesearchsuggestionmodel_p.o .obj/moc_qdec larativesearchresultmodel_p.o .OBJ / moc_qdeclarativereviewmodel_p.o .OBJ / moc_qdeclarativeplaceimagemodel_p.o .OBJ / moc_qdeclarativeplaceeditorialmodel.o .OBJ / moc_qdeclarativecontactdetail_p.o .OBJ / moc_qdeclarativecategory_p.o .OBJ / moc_qdeclarativeplace_p.o .OBJ / moc_qdeclarativeplaceattribute_p.o .OBJ / moc_qdeclarativeplaceicon_p。 o .obj/moc_qdeclarativeplaceuser_p.o .obj/moc_qdeclarativeratings_p.o .obj/moc_qdeclarativesupplier_p.o .obj/moc_qdeclarativesearchmodelbase.o -L=/opt/vc/lib -L/home/pi/download/qt-everywhere-opensource-src -5.7.1/qtlocation/lib -lQt5Location -L/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/lib -L/home/pi/download/qt-everywhere-opensource-src -5.7.1/qtdeclarative/lib -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Positioning -lQt5Core -Wl,-rpath-link,/opt/vc/lib -lGLESv2 -lpthread -lclip2tri -L/home/pi/download/qt -everywhere-opensource-src-5.7.1/qtlocation/lib -lpoly2tri -lclipper

/usr/bin/ld: 找不到 -lclip2tri

/usr/bin/ld: 找不到 -lpoly2tri

/usr/bin/ld: 找不到 -lclipper

collect2:错误:ld 返回 1 个退出状态

Makefile:273:目标“../../../qml/QtLocation/libdeclarative_location.so”的配方失败

make[4]: *** [../../../qml/QtLocation/libdeclarative_location.so] 错误 1 make[4]: 离开目录'/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/imports/location'

Makefile:80:目标“sub-location-install_subtargets”的配方失败

make[3]: *** [sub-location-install_subtargets] 错误 2

make[3]: 离开目录'/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/imports'

Makefile:135:目标“sub-imports-install_subtargets”的配方失败

make[2]: *** [sub-imports-install_subtargets] 错误 2

make[2]: 离开目录'/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src'

Makefile:56:目标“sub-src-install_subtargets”的配方失败

make[1]: *** [sub-src-install_subtargets] 错误 2

make[1]: 离开目录'/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation'

Makefile:844:目标“module-qtlocation-install_subtargets”的配方失败

make: *** [module-qtlocation-install_subtargets] 错误 2

我发现qtlocation/src/3rdparty里面有3个目录

clip2tri
clipper
poly2tri

和 qtlocation/lib 中的 3 个文件:

libclip2tri.prl
libclipper.prl
libpoly2tri.prl

但没有 lib 文件。

我查看了构建日志,qtlocation/src/3rdparty目录下的cpp文件似乎没有编译,

cd 3rdparty/ && ( test -e Makefile || /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/download/qt-everywhere-opensource -src-5.7.1/qtlocation/src/3rdparty/3rdparty.pro -qtconf /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f 生成文件安装 make[3]: 进入目录'/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty'

cd poly2tri/ && ( test -e Makefile || /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/download/qt-everywhere-opensource -src-5.7.1/qtlocation/src/3rdparty/poly2tri/poly2tri.pro -qtconf /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile) && make -f Makefile 安装

make[4]: 进入目录'/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri'

make[4]:“安装”无需执行任何操作

make[4]: 离开目录'/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/poly2tri'

cd clipper/ && ( test -e Makefile || /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/download/qt-everywhere-opensource -src-5.7.1/qtlocation/src/3rdparty/clipper/clipper.pro -qtconf /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile) && make -f Makefile 安装

make[4]: 进入目录'/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clipper'

make[4]:“安装”无需执行任何操作

make[4]: 离开目录'/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clipper'

cd clip2tri/ && ( test -e Makefile || /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/download/qt-everywhere-opensource -src-5.7.1/qtlocation/src/3rdparty/clip2tri/clip2tri.pro -qtconf /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile) && make -f Makefile 安装

make[4]: 进入目录'/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clip2tri'

make[4]:“安装”无需执行任何操作。

make[4]: 离开目录'/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty/clip2tri'

make[3]: 离开目录'/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/3rdparty'

cd location/ && ( test -e Makefile || /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qmake /home/pi/download/qt-everywhere-opensource -src-5.7.1/qtlocation/src/location/location.pro -qtconf /home/pi/download/qt-everywhere-opensource-src-5.7.1/qtbase/bin/qt.conf -o Makefile ) && make -f 生成文件安装 make[3]: 进入目录'/home/pi/download/qt-everywhere-opensource-src-5.7.1/qtlocation/src/location'

【讨论】:

您是从源代码构建 Qt 还是使用 raspbian 附带的软件包? 我在 RH6.5 上构建 Qt-5.9.1 时看到了同样的问题。对于 3 个缺失的库,我去了那些目录并手动运行 make。之后一切顺利。

以上是关于在树莓派上原生构建 qt5.7.1 得到错误:/usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5: 未定义对 `QV8Engine::toVariant 的引用的主要内容,如果未能解决你的问题,请参考以下文章

请教各位,树莓派U盘启动如何呃?谁有u-boot哈

从u盘启动树莓派3

在树莓派的交叉编译 qt 中构建应用程序时出错

树莓派3 U盘启动 配置

树莓派更改启动为u盘

树莓派U盘启动系统