我是靠谱客的博主 善良小松鼠,最近开发中收集的这篇文章主要介绍apt-build 使用,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

环境:公司的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 使用所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(57)

评论列表共有 0 条评论

立即
投稿
返回
顶部