更新记录
2024/9/11 第一版
2024/12/20 更新一些上线后发现的异常修复
2025/03/21 新增opencv的编译
2025/03/31 新增dropbear异常修复
2025/10/10 新增卡死在FIQ DEBUG
编译异常
in from _bz2 import BZ2Compressor, BZ2Decompressor ModuleNotFoundError: No module named ‘_bz2’
sudo apt-get install libbz2-dev
然后删掉
rk356x_bsp_bak/rk356x_bsp/build-iot/buildroot_output/rockchip_rk3568_iot/build/host-python3-3.10.5
重新编译
ERROR: Feature ‘webengine-system-libxml2’ was enabled, but the pre-condition ‘config.unix && libs.webengine-libxml2’ failed.
查看日志,原因的编译xml2的时候没开icu
> main.cpp:4:2: error: #error libxml icu not enabled
> 4 | #error libxml icu not enabled
> | ^~~~~
把这个libxml2-2.9.14 项目删了重新编译过就行了
error: there are no arguments to ‘uloc_openAvailableByType’ that depend on a template parameter, so a declaration of ‘uloc_openAvailableByType’ must be available [-fpermissive]
undefined reference to `icu_70::UnicodeSet::getRangeStart(int) const’
uloc_openAvailableByType(ULOC_AVAILABLE_WITH_LEGACY_ALIASES, &status);
编译的时候缺少头文件
去这里把 intl-objects.h 头文件加上
#include “unicode/uloc.h”
加上以后发现还是不行, 看了下文件路径这次编译是来源于系统的头文件,Ubuntu18.04 icu版本低,
下载
icu70 https://github.com/unicode-org/icu/releases/tag/release-70-1
icu-release-70-1/icu4c/source$ ./configure
./configure
make -12
sudo make install
//卸载掉原来系统的icu,不然依赖会错误
apt autoremove libicu-dev
unicode/uchar.h: No such file or directory
和上面一样
web_engine_context.cpp:799:23: error: ‘struct content::ContentMainParams’ has no member named ‘setup_signal_handlers’
2024-02-27T12:10:04 799 | contentMainParams.setup_signal_handlers = false;
content::ContentMainParams contentMainParams(m_mainDelegate.get());
#if defined(OS_WIN)
contentMainParams.setup_signal_handlers = false;
contentMainParams.sandbox_info = staticSandboxInterfaceInfo();
sudo chmod 666 web_engine_context.cpp
CMake support for versions ❤️.17 is deprecated since Meson 0.62.0
wget https://cmake.org/files/v3.18/cmake-3.18.0-rc1-Linux-x86_64.tar.gz
tar zxvf cmake-3.16.7-Linux-x86_64.tar.gz
sudo mv cmake-3.16.7-Linux-x86_64 /opt/cmake-3.16.7
sudo ln -sf /opt/cmake-3.16.7/bin/* /usr/bin/
cmake --version
error: Package requirements (pango >= 1.8.0 pangoxft >= 1.8.0) were not met:
/home/genvict/rk356x_bsp/buildroot/configs/rockchip/x11.config
注释掉openbox
# BR2_PACKAGE_OPENBOX=y
make: *** No rule to make target ‘xwayland’,
大致原因就是 缺少xwayland 的库 ,这个是一个独立的packet,他在新的buildroot里面可以找到
然后把它拷贝到sdk 的buildroot里面再编译
meson.build:41:2: ERROR: Problem encountered: Failed to find matched library
Message: Building for aarch64|bifrost-g52|g13p0||x11-wayland-gbm|O3
2024-03-28T21:47:35
2024-03-28T21:47:35 …/build-iot/buildroot_output/rockchip_rk3568_iot/build/rockchip-mali-master/meson.build:41:2: ERROR: Problem encountered: Failed to find matched library
找不到 x11-wayland-gbm 这个名字的库,
原厂没有默认编译出来这个库 , 拿wayland-gdm换名字先跳过
因为想要编译Xwayland ,那么 xorg又一定要开

libgtk3 Can’t find cairo-pdf.h
024-05-24T09:16:03 configure: error:
2024-05-24T09:16:03 *** Can't find cairo-pdf.h. You must build Cairo with the pdf
2024-05-24T09:16:03 *** backend enabled.
BR2_PACKAGE_CAIRO=y
BR2_PACKAGE_CAIRO_PDF=y
ffmpeg 不支持rk硬件加速
# fflpay
BR2_PACKAGE_FFMPEG_FFMPEG=y
BR2_PACKAGE_FFMPEG_GPL=y
BR2_PACKAGE_FFMPEG_NONFREE=y
BR2_PACKAGE_FFMPEG_FFPLAY=y
BR2_PACKAGE_FFMPEG_FFPROBE=y
BR2_PACKAGE_FFMPEG_XCBGRAB=y
BR2_PACKAGE_FFMPEG_AVRESAMPLE=y
BR2_PACKAGE_FFMPEG_POSTPROC=y
#额外追加
BR2_PACKAGE_FFMPEG_EXTRACONF="--enable-version3 --enable-libdrm --enable-rkmpp"
ffmpeg ERROR: rockchip_mpp not found using pkg-config
先注释掉, 后面再打开重新编译, 属于一个 编译先后顺序的问题 , 待优化
BR2_PACKAGE_FFMPEG_EXTRACONF="--enable-version3 --enable-libdrm --enable-rkmpp"
qt5x11extras安装失败
package/libgtk3/Config

910

被折叠的 条评论
为什么被折叠?



