概述
环境:公司的arm设备
1.修改配置:
修改/etc/apt/apt-build.conf
将 mtune= 修改为自己的CPU类型
此处我修改为:
build-dir = /home/scale/apt-build/build
repository-dir = /home/scale/apt-build/repository
mtune = -mtune=cortex-a53
2.测试编译:
apt-build build-source tree
3.编译tigervnc:
apt-build build-source tigervnc --patch myTigervnc02.patch --nowrapper
报错1:
cc1: error: unknown value ‘armv7’ for -mtune
cc1: note: valid arguments are: cortex-a35 cortex-a53 cortex-a57 cortex-a72 cortex-a73 thunderx thunderxt88p1 thunderxt88 thunderxt81 thunderxt83 xgene1 falkor qdf24xx exynos-m1 thunderx2t99p1 vulcan thunderx2t99 cortex-a55 cortex-a75 saphira cortex-a57.cortex-a53 cortex-a72.cortex-a53 cortex-a73.cortex-a35 cortex-a73.cortex-a53 cortex-a75.cortex-a55 generic
解决方案:
修改/etc/apt/apt-build.conf
将 mtune= 修改为自己的CPU类型
此处我修改为:
build-dir = /home/scale/apt-build/build
repository-dir = /home/scale/apt-build/repository
mtune = -mtune=cortex-a53
报错2:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/lib/apt-build/cc
-- Check for working C compiler: /usr/lib/apt-build/cc -- broken
解决方案:
--nowrapper
报错3:
no dependency information found for libjpegxxxxxx
解决方案:
export DEB_DH_SHLIBDEPS_ARGS_ALL=--dpkg-shlibdeps-params=--ignore-missing-info
最后
以上就是善良小松鼠为你收集整理的apt-build 使用的全部内容,希望文章能够帮你解决apt-build 使用所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复