Cross Compilation Qt 6.5.3 Error
Unsolved
Qt 6
-
I used the following compiler to compile the Qt 6.5.3 source code on my end, but it did not pass the compilation
root@wisdom-virtual-machine:/home/wisdom# arm-openwrt-linux-gnueabi-gcc --version arm-openwrt-linux-gnueabi-gcc.bin (OpenWrt/CodeSourcery GCC 8.3.0 2021.08) 8.3.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I use the following script to compile Qt
#!/bin/bash PWD=`pwd` ./configure -prefix $PWD/arm-qt6-t113 \ -opensource \ -confirm-license \ -release \ -strip \ -shared \ -device linux-arm-gnueabi-g++ \ -platform linux-arm-gnueabi-g++ \ -no-rpath \ -optimized-qmake \ -c++std c++11 \ -pch \ -qt-host-path /home/wisdom/Qt/6.5.3 \ -skip qt3d \ -skip qtactiveqt \ -skip qtandroidextras \ -skip qtcanvas3d \ -skip qtconnectivity \ -skip qtdatavis3d \ -skip qtdoc \ -skip qtgamepad \ -skip qtlocation \ -skip qtmacextras \ -skip qtnetworkauth \ -skip qtpurchasing \ -skip qtremoteobjects \ -skip qtscript \ -skip qtscxml \ -skip qtsensors \ -skip qtspeech \ -skip qttools \ -skip qttranslations \ -skip qtwayland \ -skip qtwebengine \ -skip qtwebview \ -skip qtwinextras \ -skip qtx11extras \ -skip qtxmlpatterns \ -skip qtgrpc \ -nomake examples \ -nomake tests \ -gui \ -syslog \ -widgets \ -dbus-runtime \ --glib=no \ --pcre=qt \ --zlib=qt \ -no-openssl \ -no-accessibility \ --freetype=qt \ --harfbuzz=qt \ -no-opengl \ -no-gstreamer \ -linuxfb \ --xcb=no \ -tslib \ -gif \ -ico \ --libpng=qt \ --libjpeg=qt \ --sqlite=qt \ -plugin-sql-sqlite \ -I$PWD/../tslib-1.22/ipkg-install/usr/include \ -L$PWD/../tslib-1.22/ipkg-arm_cortex-a7_neon/tslib/usr/lib
I have modified this file:qt-everywhere-src-6.5.3/qtbase/mkspecs/linux-arm-gnueabi-g++/qmake.conf
# # qmake configuration for building with arm-openwrt-linux-gnueabi-g++ # MAKEFILE_GENERATOR = UNIX CONFIG += incremental QMAKE_INCREMENTAL_STYLE = sublib QT_QPA_DEFAULT_PLATFORM = linuxfb QMAKE_CFLAGS += -O2 -march=armv7-a -mtune=cortex-a7 -mfpu=neon -mfloat-abi=hard QMAKE_CXXFLAGS += -O2 -march=armv7-a -mtune=cortex-a7 -mfpu=neon -mfloat-abi=hard include(../common/linux.conf) include(../common/gcc-base-unix.conf) include(../common/g++-unix.conf) # modifications to g++.conf QMAKE_CC = arm-openwrt-linux-gnueabi-gcc QMAKE_CXX = arm-openwrt-linux-gnueabi-g++ QMAKE_LINK = arm-openwrt-linux-gnueabi-g++ QMAKE_LINK_SHLIB = arm-openwrt-linux-gnueabi-g++ # modifications to linux.conf QMAKE_AR = arm-openwrt-linux-gnueabi-ar cqs QMAKE_OBJCOPY = arm-openwrt-linux-gnueabi-objcopy QMAKE_NM = arm-openwrt-linux-gnueabi-nm -P QMAKE_STRIP = arm-openwrt-linux-gnueabi-strip load(qt_config)
I have uploaded the error log and the cross compilation tool I used on my end to the cloud storage. Could you please help me check where the configuration is incorrect? Thank you
分享文件:2023-12-30.zip
链接:https://pan.xunlei.com/s/VNmu-mr2WBdJ1xlvGfV-mAplA1?pwd=2sja#
复制这段内容后打开手机迅雷App,查看更方便