• 223阅读
  • 0回复

[提问]ubuntu18.04搭建arm平台rk3308 32位交叉编译环境问题求助? [复制链接]

上一主题 下一主题
离线mm88751
 

只看楼主 倒序阅读 楼主  发表于: 04-26
本人新手刚刚接触qt,在ubuntu下搭建环境遇到问题,请大佬帮忙看下,谢谢!
参考:https://blog.csdn.net/weixin_44031368/article/details/108076798
我实际下载的包为:

gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf.tar
qt-everywhere-src-5.12.10.tar
qt-everywhere-src-5.12.1.zip
qt-opensource-linux-x64-5.12.10
make时候出现以下编译错误:(用5.12.10和5.12.1都编译不过)
  1. Michael Wang <yhm2046@gmail.com>
  2. 下午2:34 (35分钟前)
  3. 发送至 我
  4. mv -f libQt5WebView.so.5 ../../lib/libQt5WebView.so.5
  5. mv -f libQt5WebView.so.5.12 ../../lib/libQt5WebView.so.5.12
  6. make[3]: Leaving directory '/opt/qt-everywhere-src-5.12.1/qtwebview/src/webview'
  7. 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
  8. 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
  9. make[3]: Entering directory '/opt/qt-everywhere-src-5.12.1/qtwebview/src/plugins'
  10. make[3]: Nothing to be done for 'first'.
  11. make[3]: Leaving directory '/opt/qt-everywhere-src-5.12.1/qtwebview/src/plugins'
  12. make[3]: Entering directory '/opt/qt-everywhere-src-5.12.1/qtwebview/src/imports'
  13. 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
  14. /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
  15. 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
  16. rm -f libdeclarative_webview.so
  17. 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    
  18. mv -f libdeclarative_webview.so ../../qml/QtWebView/libdeclarative_webview.so
  19. make[3]: Leaving directory '/opt/qt-everywhere-src-5.12.1/qtwebview/src/imports'
  20. make[2]: Leaving directory '/opt/qt-everywhere-src-5.12.1/qtwebview/src'
  21. make[1]: Leaving directory '/opt/qt-everywhere-src-5.12.1/qtwebview'


快速回复
限100 字节
 
上一个 下一个