修改rga库

This commit is contained in:
zengqile 2026-01-19 03:02:25 +00:00
parent e9435bb774
commit f1dd9a9b7b
2 changed files with 12 additions and 6 deletions

View File

@ -12,6 +12,8 @@ RUN apt-get update && \
sudo \
build-essential \
cmake \
meson \
ninja-build \
git \
gdb \
vim \
@ -57,12 +59,15 @@ RUN apt-get update && \
alsa-utils && \
rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 https://github.com/airockchip/librga.git /tmp/librga && \
cd /tmp/librga && \
mkdir build && cd build && \
cmake -DCMAKE_INSTALL_PREFIX=/usr .. && \
make -j$(nproc) && \
make install && \
RUN git config --global http.version HTTP/1.1 && \
git clone --depth 1 https://github.com/airockchip/librga.git /tmp/librga && \
# 1. 复制头文件
cp -r /tmp/librga/include/* /usr/include/ && \
# 2. 复制适用于 RK3588 (aarch64) 的预编译库
cp -r /tmp/librga/libs/Linux/gcc-aarch64/* /usr/lib/ && \
# 3. 确保软链接正确
ln -sf /usr/lib/librga.so /usr/lib/librga.so.2 && \
# 4. 清理并刷新库缓存
rm -rf /tmp/librga && \
ldconfig
# -----------------------------------------------------------------------------

1
librga Submodule

@ -0,0 +1 @@
Subproject commit 6664094b919d069ae7caf90833ed4d5cc2729585