编译--
进入解压后的文件夹:/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](http://img.gansulong.com/230701/032SL1T-0.png)
文章插图
【二交叉编译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
- 揭秘英国亨利二世为何被誉为欧洲法律之父
- 为什么说日本军人南云忠一是日本二战的背锅侠
- 汉武帝本想让他成为第二个卫青他却投降了匈奴
- 那些让你大开眼界奇怪的吉尼斯世界纪录 二 吉尼斯记录喝牛奶多少秒
- 《红楼梦》哪个丫环把当二奶做为终身目标?
- 为什么大观园里的人都叫贾琏二爷
- 丁戊奇荒有多悲惨?清朝二百三十年从没见过这么悲惨的天灾。
- 仅仅只有二十八年的北齐王朝,干了多少荒唐事?
- 世界前十大经济体:中国大陆第二,英国、法国落后于印度 世界十大经济
- 这个节日食五黄、十二红,还与这么多大咖有关联,可见中国人有多么浪漫 中国十大传统节日