|
本人 新手刚刚接触qt,在ubuntu下搭建环境遇到 问题,请大佬帮忙看下,谢谢! 参考: https://blog.csdn.net/weixin_44031368/article/details/108076798我实际 下载的包为: gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf.tarqt-everywhere-src-5.12.10.tarqt-everywhere-src-5.12.1.zipqt-opensource-linux-x64-5.12.10到 make时候出现以下 编译错误:(用5.12.10和5.12.1都编译不过) - Michael Wang <yhm2046@gmail.com>
- 下午2:34 (35分钟前)
- 发送至 我
- mv -f libQt5WebView.so.5 ../../lib/libQt5WebView.so.5
- mv -f libQt5WebView.so.5.12 ../../lib/libQt5WebView.so.5.12
- make[3]: Leaving directory '/opt/qt-everywhere-src-5.12.1/qtwebview/src/webview'
- cd plugins/ && ( test -e Makefile || /opt/qt-everywhere-src-5.12.1/qtbase/bin/qmake -o Makefile /opt/qt-everywhere-src-5.12.1/qtwebview/src/plugins/plugins.pro ) && make -f Makefile
- cd imports/ && ( test -e Makefile || /opt/qt-everywhere-src-5.12.1/qtbase/bin/qmake -o Makefile /opt/qt-everywhere-src-5.12.1/qtwebview/src/imports/imports.pro ) && make -f Makefile
- make[3]: Entering directory '/opt/qt-everywhere-src-5.12.1/qtwebview/src/plugins'
- make[3]: Nothing to be done for 'first'.
- make[3]: Leaving directory '/opt/qt-everywhere-src-5.12.1/qtwebview/src/plugins'
- make[3]: Entering directory '/opt/qt-everywhere-src-5.12.1/qtwebview/src/imports'
- arm-linux-gnueabihf-g++ -pipe -O2 -march=armv8-a -lts -O2 -march=armv8-a -lts -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -dM -E -o .moc/moc_predefs.h /opt/qt-everywhere-src-5.12.1/qtbase/mkspecs/features/data/dummy.cpp
- /opt/qt-everywhere-src-5.12.1/qtbase/bin/moc -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_WEBVIEW_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /opt/qt-everywhere-src-5.12.1/qtwebview/src/imports/.moc/moc_predefs.h -I/opt/qt-everywhere-src-5.12.1/qtbase/mkspecs/linux-arm-gnueabihf-g++ -I/opt/qt-everywhere-src-5.12.1/qtwebview/src/imports -I/opt/qt-everywhere-src-5.12.1/qtwebview/include/QtWebView/5.12.1 -I/opt/qt-everywhere-src-5.12.1/qtwebview/include/QtWebView/5.12.1/QtWebView -I/opt/qt-everywhere-src-5.12.1/qtdeclarative/include/QtQuick/5.12.1 -I/opt/qt-everywhere-src-5.12.1/qtdeclarative/include/QtQuick/5.12.1/QtQuick -I/opt/qt-everywhere-src-5.12.1/qtdeclarative/include -I/opt/qt-everywhere-src-5.12.1/qtdeclarative/include/QtQuick -I/opt/qt-everywhere-src-5.12.1/qtwebview/include -I/opt/qt-everywhere-src-5.12.1/qtwebview/include/QtWebView -I/opt/qt-everywhere-src-5.12.1/qtbase/include/QtGui/5.12.1 -I/opt/qt-everywhere-src-5.12.1/qtbase/include/QtGui/5.12.1/QtGui -I/opt/qt-everywhere-src-5.12.1/qtbase/include -I/opt/qt-everywhere-src-5.12.1/qtbase/include/QtGui -I/opt/qt-everywhere-src-5.12.1/qtdeclarative/include/QtQml/5.12.1 -I/opt/qt-everywhere-src-5.12.1/qtdeclarative/include/QtQml/5.12.1/QtQml -I/opt/qt-everywhere-src-5.12.1/qtdeclarative/include/QtQml -I/opt/qt-everywhere-src-5.12.1/qtbase/include/QtNetwork -I/opt/qt-everywhere-src-5.12.1/qtbase/include/QtCore/5.12.1 -I/opt/qt-everywhere-src-5.12.1/qtbase/include/QtCore/5.12.1/QtCore -I/opt/qt-everywhere-src-5.12.1/qtbase/include/QtCore -I/usr/arm-linux-gnueabihf/include/c++/7 -I/usr/arm-linux-gnueabihf/include/c++/7/arm-linux-gnueabihf -I/usr/arm-linux-gnueabihf/include/c++/7/backward -I/usr/lib/gcc-cross/arm-linux-gnueabihf/7/include -I/usr/lib/gcc-cross/arm-linux-gnueabihf/7/include-fixed -I/usr/arm-linux-gnueabihf/include -I/usr/include -Muri=QtWebView webview.cpp -o .moc/webview.moc
- arm-linux-gnueabihf-g++ -c -pipe -O2 -march=armv8-a -lts -O2 -march=armv8-a -lts -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -D_REENTRANT -fPIC -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_WEBVIEW_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../include/QtWebView/5.12.1 -I../../include/QtWebView/5.12.1/QtWebView -I/opt/qt-everywhere-src-5.12.1/qtdeclarative/include/QtQuick/5.12.1 -I/opt/qt-everywhere-src-5.12.1/qtdeclarative/include/QtQuick/5.12.1/QtQuick -I/opt/qt-everywhere-src-5.12.1/qtdeclarative/include -I/opt/qt-everywhere-src-5.12.1/qtdeclarative/include/QtQuick -I../../include -I../../include/QtWebView -I/opt/qt-everywhere-src-5.12.1/qtbase/include/QtGui/5.12.1 -I/opt/qt-everywhere-src-5.12.1/qtbase/include/QtGui/5.12.1/QtGui -I/opt/qt-everywhere-src-5.12.1/qtbase/include -I/opt/qt-everywhere-src-5.12.1/qtbase/include/QtGui -I/opt/qt-everywhere-src-5.12.1/qtdeclarative/include/QtQml/5.12.1 -I/opt/qt-everywhere-src-5.12.1/qtdeclarative/include/QtQml/5.12.1/QtQml -I/opt/qt-everywhere-src-5.12.1/qtdeclarative/include/QtQml -I/opt/qt-everywhere-src-5.12.1/qtbase/include/QtNetwork -I/opt/qt-everywhere-src-5.12.1/qtbase/include/QtCore/5.12.1 -I/opt/qt-everywhere-src-5.12.1/qtbase/include/QtCore/5.12.1/QtCore -I/opt/qt-everywhere-src-5.12.1/qtbase/include/QtCore -I.moc -I/opt/qt-everywhere-src-5.12.1/qtbase/mkspecs/linux-arm-gnueabihf-g++ -o .obj/webview.o webview.cpp
- rm -f libdeclarative_webview.so
- arm-linux-gnueabihf-g++ -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../../lib -shared -o libdeclarative_webview.so .obj/webview.o -L/opt/qt-everywhere-src-5.12.1/qtdeclarative/lib -lQt5Quick -L/opt/qt-everywhere-src-5.12.1/qtbase/lib -L/opt/qt-everywhere-src-5.12.1/qtwebview/lib -lQt5WebView -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lpthread
- mv -f libdeclarative_webview.so ../../qml/QtWebView/libdeclarative_webview.so
- make[3]: Leaving directory '/opt/qt-everywhere-src-5.12.1/qtwebview/src/imports'
- make[2]: Leaving directory '/opt/qt-everywhere-src-5.12.1/qtwebview/src'
- make[1]: Leaving directory '/opt/qt-everywhere-src-5.12.1/qtwebview'
|