解决:Requested 'libdrm_radeon >= 2.4.56' but version of libdrm_radeon is 2.4.52

当遇到请求libdrm_radeon版本至少为2.4.56但实际只有2.4.52的问题时,可以采取手动下载libdrm-2.4.58源代码并编译安装的方式来解决。
checking for NOUVEAU... yes
checking for RADEON... no
configure: error: Package requirements (libdrm_radeon >= 2.4.56) were not met:
Requested 'libdrm_radeon >= 2.4.56' but version of libdrm_radeon is 2.4.52

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables RADEON_CFLAGS
and RADEON_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


解决方法:

下载源代码,编译安装libdrm。点此下载libdrm-2.4.58.tar.gz,安装步骤:

mc.lcx@raspberrypi:~/libcamera $ sudo apt update sudo apt install -y cmake build-essential libboost-program-options-dev libdrm-dev libexif-dev Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. W: http://raspbian.raspberrypi.org/raspbian/dists/bullseye/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian bullseye InRelease' doesn't support architecture 'arm64' N: Skipping acquire of configured file 'contrib/binary-arm64/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian bullseye InRelease' doesn't support architecture 'arm64' N: Skipping acquire of configured file 'non-free/binary-arm64/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian bullseye InRelease' doesn't support architecture 'arm64' N: Skipping acquire of configured file 'rpi/binary-arm64/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian bullseye InRelease' doesn't support architecture 'arm64' Reading package lists... Done Building dependency tree... Done Reading state information... Done build-essential is already the newest version (12.9). Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: cmake : Depends: libjsoncpp24 (>= 1.9.4) but it is not installable Depends: librhash0 (>= 1.2.6) but it is not installable Depends: libuv1 (>= 1.11.0) but it is not installable libasan6:armhf : Depends: libc6:armhf (>= 2.28) but it is not installable Depends: libgcc-s1:armhf (>= 4.3) but it is not installable libboost-program-options1.74.0:armhf : Depends: libc6:armhf (>= 2.4) but it is not installable Depends: libgcc-s1:armhf (>= 3.5) but it is not installable Depends: libstdc++6:armhf (>= 5.2) but it is not installable libdrm-amdgpu1:armhf : Depends: libc6:armhf (>= 2.28) but it is not installable libdrm-etnaviv1:armhf : Depends: libc6:armhf (>= 2.17) but it is not installable libdrm-exynos1:armhf : Depends: libc6:armhf (>= 2.4) but it is not installable libdrm-freedreno1:armhf : Depends: libc6:armhf (>= 2.17) but it is not installable libdrm-nouveau2:armhf : Depends: libc6:armhf (>= 2.4) but it is not installable libdrm-omap1:armhf : Depends: libc6:armhf (>= 2.4) but it is not installable libdrm-radeon1:armhf : Depends: libc6:armhf (>= 2.4) but it is not installable libdrm-tegra0:armhf : Depends: libc6:armhf (>= 2.4) but it is not installable libdrm2:armhf : Depends: libc6:armhf (>= 2.17) but it is not installable libexif-dev:armhf : Depends: libc6-dev:armhf but it is not installable libexif12:armhf : Depends: libc6:armhf (>= 2.29) but it is not installable libgcc-10-dev:armhf : Depends: libgcc-s1:armhf (>= 10.2.1-6+rpi1) but it is not installable Depends: libgomp1:armhf (>= 10.2.1-6+rpi1) but it is not installable Depends: libatomic1:armhf (>= 10.2.1-6+rpi1) but it is not installable Depends: libubsan1:armhf (>= 10.2.1-6+rpi1) but it is not installable Recommends: libc6-dev:armhf (>= 2.30-1~) but it is not installable libstdc++-10-dev:armhf : Depends: libstdc++6:armhf (>= 10.2.1-6+rpi1) but it is not installable Depends: libc6-dev:armhf (>= 2.30-1~) but it is not installable E: Unable to correct problems, you have held broken packages.
06-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值