搭建海思3559A-Qt5.8.0+Openssl开发环境

1.参考4.8.7环境搭建

2.主要区别

①解压Qt5.8.0源码文件后,进入到 qtbase/mkspecs目录下

②拷贝linux-arm-gnueabi-g++文件目录,更名为linux-aarch64-himix100

③进入到linux-aarch64-himix100目录下,修改qmake.conf文件,内容如下:

#
# qmake configuration for building with aarch64-linux-gnu-g++
#

MAKEFILE_GENERATOR      = UNIX
CONFIG                 += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)

# modifications to g++.conf
QMAKE_CC                = aarch64-himix100-linux-gcc
QMAKE_CXX               = aarch64-himix100-linux-g++
QMAKE_LINK              = aarch64-himix100-linux-g++
QMAKE_LINK_SHLIB        = aarch64-himix100-linux-g++

# modifications to linux.conf
QMAKE_AR                = aarch64-himix100-linux-ar cqs
QMAKE_OBJCOPY           = aarch64-himix100-linux-objcopy
QMAKE_NM                = aarch64-himix100-linux-nm -P
QMAKE_STRIP             = aarch64-himix100-linux-strip
load(qt_config)

④回到qt-everywhere-opensource-src-5.8.0目录下,建立shell脚本qt.sh,内容如下

#!/bin/sh

./configure \
		-prefix /home/admin/Qt-5.8.0-arm/ \
		-release \
		-opensource \
		-make libs \
		-xplatform linux-aarch64-himix100 \
		-optimized-qmake \
		-pch \
		-linuxfb \
		-qt-libjpeg \
		-qt-zlib \
		-qt-xcb \
		-xcb-xlib \
		-no-glib \
		-no-opengl \
		-no-sse2 \
		-no-cups \
		-no-iconv \
		-no-accessibility \
		-skip qt3d \
		-skip qtcanvas3d \
		-skip qtpurchasing \
		-skip qtactiveqt \
		-skip qtandroidextras \
		-skip qtcharts \
		-skip qtconnectivity \
		-skip qtdatavis3d \
		-skip qtdeclarative \
		-skip qtgamepad \
		-skip qtvirtualkeyboard \
		-nomake examples \
		-nomake tools \
		-nomake tests \
		-recheck-all \
		-openssl-linked \
		-I/home/admin/openssl-arm/include/openssl \
		-L/home/admin/openssl-arm/lib/libssl.a \
		-L/home/admin/openssl-arm/lib/libcrypto.a

exit

⑤sh qt.sh执行脚本,生成makefile

⑥make && make install

你可能感兴趣的:(嵌入式)