二 交叉编译openGL,Ubuntu20.04 to aarch64

编译--
进入解压后的文件夹:/home/huhu///--/
新建了一个build和文件夹
注意:这个生成命令与其他的不一样(没有区分g++和gcc,而是用前缀)
./ --=/home/huhu///--/ --cross--=-none-linux-gnu-(经过测试有下面那两个问题)
./ linux- --=/home/huhu///--/ --cross--=-none-linux-gnu- (亲测好用的命令:因为我自己是arm64位 linux系统)
huhu@huhu-System-Product-Name:~/third_part/openGL/openssl-openssl-master$ ./Configure --prefix=/home/huhu/third_part/openGL/openssl-openssl-master/install --cross-compile-prefix=aarch64-none-linux-gnu-Configuring OpenSSL version 3.1.0-dev for target linux-x86_64Using os-specific seed configurationCreating configdata.pmRunning configdata.pmCreating Makefile.inCreating Makefile*******************************************************************************OpenSSL has been successfully configured************If you encounter a problem while building, please open an******issue on GitHub******and include the output from the following command:************perl configdata.pm --dump************(If you are new to OpenSSL, you might want to consult the******'Troubleshooting' section in the INSTALL.md file first)*******************************************************************************
make
报错:

二  交叉编译openGL,Ubuntu20.04 to aarch64

文章插图
【二交叉编译openGL,Ubuntu20.04 to aarch64】huhu@huhu-System-Product-Name:~/third_part/openGL/openssl-openssl-master$ make/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/crypto/bn_conf.h.in > include/crypto/bn_conf.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/crypto/dso_conf.h.in > include/crypto/dso_conf.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/asn1.h.in > include/openssl/asn1.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/asn1t.h.in > include/openssl/asn1t.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/bio.h.in > include/openssl/bio.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/cmp.h.in > include/openssl/cmp.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/cms.h.in > include/openssl/cms.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/conf.h.in > include/openssl/conf.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/configuration.h.in > include/openssl/configuration.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/crmf.h.in > include/openssl/crmf.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/crypto.h.in > include/openssl/crypto.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ct.h.in > include/openssl/ct.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/err.h.in > include/openssl/err.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ess.h.in > include/openssl/ess.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/fipskey.h.in > include/openssl/fipskey.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/lhash.h.in > include/openssl/lhash.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ocsp.h.in > include/openssl/ocsp.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/opensslv.h.in > include/openssl/opensslv.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/pkcs12.h.in > include/openssl/pkcs12.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/pkcs7.h.in > include/openssl/pkcs7.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/safestack.h.in > include/openssl/safestack.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/srp.h.in > include/openssl/srp.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ssl.h.in > include/openssl/ssl.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/ui.h.in > include/openssl/ui.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509.h.in > include/openssl/x509.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509_vfy.h.in > include/openssl/x509_vfy.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/openssl/x509v3.h.in > include/openssl/x509v3.h/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" test/provider_internal_test.cnf.in > test/provider_internal_test.cnfmake depend && make _build_swmake[1]: Entering directory '/home/huhu/third_part/openGL/openssl-openssl-master'make[1]: Leaving directory '/home/huhu/third_part/openGL/openssl-openssl-master'make[1]: Entering directory '/home/huhu/third_part/openGL/openssl-openssl-master'aarch64-none-linux-gnu-gcc-I. -Iinclude -Iapps/include-fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/home/huhu/third_part/openGL/openssl-openssl-master/install/ssl\"" -DENGINESDIR="\"/home/huhu/third_part/openGL/openssl-openssl-master/install/lib64/engines-3\"" -DMODULESDIR="\"/home/huhu/third_part/openGL/openssl-openssl-master/install/lib64/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG-MMD -MF apps/lib/libapps-lib-app_libctx.d.tmp -MT apps/lib/libapps-lib-app_libctx.o -c -o apps/lib/libapps-lib-app_libctx.o apps/lib/app_libctx.caarch64-none-linux-gnu-gcc: error: unrecognized command-line option '-m64'make[1]: *** [Makefile:4245: apps/lib/libapps-lib-app_libctx.o] Error 1make[1]: Leaving directory '/home/huhu/third_part/openGL/openssl-openssl-master'make: *** [Makefile:3223:build_sw] 错误 2