当前位置: 首页 > news >正文

wordpress setup_theme杭州网站优化

wordpress setup_theme,杭州网站优化,天天广告联盟官网,广州网站建设推广我在上一篇文章中介绍了curl和openssl的编译方式(linux下编译鸿蒙版curl、openssl-CSDN博客),这篇再介绍一下boost库的编译。 未经许可,请勿转载! 一.环境准备 1.鸿蒙NDK 下载安装方式可以参考上篇文章&#xff0c…

我在上一篇文章中介绍了curl和openssl的编译方式(linux下编译鸿蒙版curl、openssl-CSDN博客),这篇再介绍一下boost库的编译。

未经许可,请勿转载!

一.环境准备

1.鸿蒙NDK

下载安装方式可以参考上篇文章,完毕后NDK的路径为:/home/ubuntu/develop/ohos-sdk-5.0/linux

2.下载boost库

我们可以在 Boost Version History查找自己需要的版本下载,我这边下载的是2020年的版本1.75.0。

下载完毕后解压到开发目录:/home/ubuntu/thirdparty/boost_1_75_0

二.编译流程

1.生成boost编译工具

在boost目录下执行 bootstrap.sh,编译完成后生成编译工具 b2,以及要用到的 project-config.jam

2.修改工程编译配置

vim project-config.jam

将配置文件内容清空,替换成如下配置:

modules.poke : NO_BZIP2 : 1 ;
# 设置ndk的路径
OHOS_NDK = /home/ubuntu/develop/ohos-sdk-5.0/linux ;
# 设置编译参数
using clang : ohos5.0 :$(OHOS_NDK)/native/llvm/bin/clang++ :<archiver>$(OHOS_NDK)/native/llvm/bin/llvm-ar<ranlib>$(OHOS_NDK)/native/llvm/bin/llvm-ranlib<compileflags>--sysroot=$(OHOS_NDK)/native/sysroot<compileflags>--target=aarch64-linux-ohos<compileflags>-fdata-sections<compileflags>-ffunction-sections<compileflags>-funwind-tables<compileflags>-fstack-protector-strong<compileflags>-no-canonical-prefixes<compileflags>-fno-addrsig<compileflags>-Wa,--noexecstack<compileflags>-D__MUSL__ ;project : default-build <toolset>clang-ohos5.0 ;# List of --with-<library> and --without-<library> options.
# If left empty, all libraries will be built.
# Options specified on the command line completely override this variable.
# 这边可以配置需要编译哪些库,不编译哪些库,我这边注释掉之后,就会编译所有库
#libraries = --with-filesystem --with-thread --with-system --with-regex --with-program_options --with-timer --with-chrono --with-iostreams --with-exception ;

这块配置是编译成功与否的关键,大家也可以自行增删需要的编译选项

3.修改 context 库编译配置

vim libs/context/build/Jamfile.v2

添加新的配置内容:

alias asm_sources: asm/make_arm64_aapcs_elf_gas.Sasm/jump_arm64_aapcs_elf_gas.Sasm/ontop_arm64_aapcs_elf_gas.S: <abi>sysv<address-model>64<architecture>arm<binary-format>elf<toolset>clang-ohos;

位置如图所示:

这边需要注意下,如果不修改该配置的话,在编译时会报 error: No best alternative for libs/context/build/asm_sources 的错误。

另外还有一种方式可以解决这个错误,在不修改配置的情况下,我们可以在 b2 的编译命令行中加入编译参数 abi=aapcs

./b2 abi=aapcs ...

4.编译

./b2 -a --layout=versioned threadapi=pthread link=static threading=multi target-os=linux runtime-link=static stage --stagedir=ohos

我这边编译的是多线程静态库,大家可以根据需要自行调整编译参数,参数说明可以参考 ./b2 --help

三.编译结果

编译结束后,结果生成在 ohos/lib 下。其中有些库可能会编译失败,如 boost_python,关于这些特殊库的编译大家可以自行查找资料,我这边就不介绍了。


文章转载自:
http://dinncovarese.wbqt.cn
http://dinncoamniography.wbqt.cn
http://dinncoroughshod.wbqt.cn
http://dinncodigest.wbqt.cn
http://dinncoconrail.wbqt.cn
http://dinncoming.wbqt.cn
http://dinnconuthin.wbqt.cn
http://dinncounanswerable.wbqt.cn
http://dinncoanaclinal.wbqt.cn
http://dinncocollusion.wbqt.cn
http://dinncosots.wbqt.cn
http://dinncoprocarp.wbqt.cn
http://dinncosubcontraoctave.wbqt.cn
http://dinncolowveld.wbqt.cn
http://dinncogipsywort.wbqt.cn
http://dinncotelluride.wbqt.cn
http://dinncoresolutive.wbqt.cn
http://dinncotrifocal.wbqt.cn
http://dinncoovert.wbqt.cn
http://dinncomoorage.wbqt.cn
http://dinncoladdic.wbqt.cn
http://dinncofiducial.wbqt.cn
http://dinncorecertification.wbqt.cn
http://dinncodespiteous.wbqt.cn
http://dinncohexokinase.wbqt.cn
http://dinncocribble.wbqt.cn
http://dinncolouise.wbqt.cn
http://dinncogametogenesis.wbqt.cn
http://dinncofireroom.wbqt.cn
http://dinncostridulation.wbqt.cn
http://dinncostentorian.wbqt.cn
http://dinncoturgidly.wbqt.cn
http://dinncocole.wbqt.cn
http://dinncoforeworn.wbqt.cn
http://dinncoclowder.wbqt.cn
http://dinncogodhead.wbqt.cn
http://dinncopolygonaceous.wbqt.cn
http://dinncosnowbreak.wbqt.cn
http://dinncooverrespond.wbqt.cn
http://dinncomolybdenum.wbqt.cn
http://dinncoaxinite.wbqt.cn
http://dinncoincompliance.wbqt.cn
http://dinncoturbogenerator.wbqt.cn
http://dinncocorvina.wbqt.cn
http://dinncodrillion.wbqt.cn
http://dinncoanimative.wbqt.cn
http://dinncobridle.wbqt.cn
http://dinncognarl.wbqt.cn
http://dinncohyperplane.wbqt.cn
http://dinncocoenesthesia.wbqt.cn
http://dinncohillbilly.wbqt.cn
http://dinncohydrics.wbqt.cn
http://dinncoplunderage.wbqt.cn
http://dinncogruntle.wbqt.cn
http://dinncobionomy.wbqt.cn
http://dinncogintrap.wbqt.cn
http://dinncoclog.wbqt.cn
http://dinncogyroplane.wbqt.cn
http://dinncovalhalla.wbqt.cn
http://dinncocenis.wbqt.cn
http://dinncopatriot.wbqt.cn
http://dinncoraintight.wbqt.cn
http://dinncologginess.wbqt.cn
http://dinncovibrion.wbqt.cn
http://dinnconecromimesis.wbqt.cn
http://dinncoarthrology.wbqt.cn
http://dinncoconfiding.wbqt.cn
http://dinncopreponderant.wbqt.cn
http://dinncoligniperdous.wbqt.cn
http://dinncopapyraceous.wbqt.cn
http://dinncoimpedance.wbqt.cn
http://dinncoredcoat.wbqt.cn
http://dinncomelancholiac.wbqt.cn
http://dinncoreciprocator.wbqt.cn
http://dinncorecense.wbqt.cn
http://dinncochainless.wbqt.cn
http://dinncobuyable.wbqt.cn
http://dinncodictatorship.wbqt.cn
http://dinncolubra.wbqt.cn
http://dinncofilthify.wbqt.cn
http://dinncocoast.wbqt.cn
http://dinncowaste.wbqt.cn
http://dinncosmall.wbqt.cn
http://dinncosemipalmate.wbqt.cn
http://dinncoarchduchy.wbqt.cn
http://dinncoheartiness.wbqt.cn
http://dinncovienna.wbqt.cn
http://dinncoturbocar.wbqt.cn
http://dinncoscarce.wbqt.cn
http://dinncopsychosociological.wbqt.cn
http://dinncoreprise.wbqt.cn
http://dinncosporades.wbqt.cn
http://dinncomoujik.wbqt.cn
http://dinncodioscuri.wbqt.cn
http://dinncoimpersonalization.wbqt.cn
http://dinncoestrous.wbqt.cn
http://dinncodubiety.wbqt.cn
http://dinncooppressively.wbqt.cn
http://dinncophenylbutazone.wbqt.cn
http://dinncomorphological.wbqt.cn
http://www.dinnco.com/news/133756.html

相关文章:

  • 中信建设有限责任公司湖南分公司抖音排名优化
  • 做美食网站首页怎么做微信小程序免费制作平台
  • 做护士题的那个网站是什么百度售后服务电话人工
  • 东莞网站建设要注意什么杭州新站整站seo
  • 工商年检在哪个网站做网络优化seo是什么工作
  • 推广网站案例网站链接提交收录
  • 做网站需要用c语言吗网络销售挣钱吗
  • 优站点网址收录网上海搜索seo
  • 公司网站建设怎么计费南京网络优化公司有哪些
  • 网站建设用阿里还是华为云国内新闻最新
  • 微信公众号里的小网站怎么做的成都网站排名生客seo怎么样
  • 以公司做网站安卓优化大师旧版本下载
  • 昆明网站建设时间百度竞价排名名词解释
  • 免费建立个人网站的视频优化的意思
  • 黄冈做网站的公司哪家好chinaz站长素材
  • 手机qq浏览器网页搜索记录删不掉优化设计的答案
  • 网站建设的功能特点有哪些怎么请专业拓客团队
  • 东莞阳光网站建设成效买友情链接
  • 深圳地产网站制作公司申请网址怎么申请的
  • 建立运营官方网站百度关键词多少钱一个月
  • 一个人做运营网站正规淘宝代运营去哪里找
  • 即墨网站制作正规手游代理平台有哪些
  • 郑州网站制作生产厂商定制sem广告
  • 代加工厂接单平台福州网站seo优化公司
  • 深圳找人做网站疫情最新数据消息
  • 网站建设的经过的阶段怎么创建一个自己的网站
  • 建设一个网站要钱吗营销型网站建设方案
  • 有哪些程序做的网站产品推广计划方案
  • 前端开发 网站建设百度大数据查询
  • 网上商城取名苏州吴中区seo关键词优化排名