第三十七章 CentOS下的情况

CentOS支持的不是很理想

我们尝试使用下面的步骤在CentOS上编译流式系统,但是没有成功。

个人技术博客: fuqifacai.github.io

更多技术资讯下载: 2img.ai

相关配图由微信小程序【字形绘梦】免费生成

第三十七章 CentOS下的情况
StepDescription
Use Ninja to compileInstall prerequisitesum -y install git automake gcc+ gcc-c++ libtool Install Python3.7 4 How to install Python3.7 in CentOSGet git and compilegit clone https://github.com/ninja-build/ninja.gitcd ninja./configure.py --bootstrap 就可以了。然后将生成的ninja 文件,复制到/usr/bin 等系统目录中,以便于能够重启后执行到。
install GNdownload fromhttps://chrome-infra-packages.appspot.com/dl/gn/gn/linux-amd64/+/latestDownloaded file and add it to PATH environmentgn-linux-amd64.zip
Dependencyrun sudo ./build/linux/sysroot_scripts/install-sysroot.py –arch=amd641)make sure you are under /webrtc90-md/webrtc-checkout/src folder2)make sure you have give 777 for all its folderThis step will download something and take some time.If failed, please connect VPN and try again.BTW ,you could use sudo chmod R 777 webrtc-checkout/src
Compile webrtcgo to webrtc90-md/webrtc-checkout/srcrun gn gen out/CentOS64 (CentOS64 is a folder name you could use your own)或者比较完整的参数gn gen –target=x64 –args=”is_clang=false use_custom_libcxx = false use_rtti=false rtc_include_tests=false enable_iterator_debugging=true symbol_level=0 treat_warnings_as_errors=false” –ide=vs2019 out/x64/debug
Compileninja -C out/CentOS64
Add to PATHadd depot_tools folder to PATH environment PATH=”xxxx”:$PATHexport PATH
Add Libc DependenciesIn some CentOS ,we need install some dependencies for gn command (Step1)2 执行GN缺失依赖glibccurl -O http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gztar zxf glibc-2.18.tar.gzcd glibc-2.18/mkdir buildcd build/../configure –prefix=/usr(If this step display errors like missing gcc , please install gcc via sudo yum install gcc)make -j2 (this step will take lot of time)sudo make install (please sudo when you see some permission errors)Make sure Terminal display like : Your new glibc installation seems to be ok.
Done. Made 1305 targets from 276 files in 556ms
遇到很多libg++ 或者头文件找不到的编译错误

在其余的网上帖子有些不能支持CentOS

剩余内容需解锁后查看

您需要付费解锁才能查看当前内容

VIP会员免费
已付费?登录刷新

Paragoger衍生者AI训练营。发布者:稻草人,转载请注明出处:https://www.shxcj.com/archives/6617

(0)
上一篇 2024-09-30 2:43 下午
下一篇 2024-09-30 2:45 下午

相关推荐

发表回复

登录后才能评论
本文授权以下站点有原版访问授权 https://www.shxcj.com https://www.2img.ai https://www.2video.cn