Comments (4)
It seems to be an environment variable or configure setting issue. Please refer to the official documentation, as well as BtbN/FFmpeg-Builds to learn how to cross-compile FFmpeg correctly.
from ffmpeg-rockchip.
sudo apt install pkg-config
from ffmpeg-rockchip.
@Kevin111369 You can try something like this. I tested on WSL2 (Ubuntu 22.04).
PKG_CONFIG_SYSROOT_DIR=/root/mtea-tech/rk3568l/buildroot/output/rockchip_rk3568/host/aarch64-buildroot-linux-gnu/sysroot \
PKG_CONFIG_PATH=/root/mtea-tech/rk3568l/buildroot/output/rockchip_rk3568/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/pkgconfig \
./configure --prefix=prefix --enable-gpl --enable-version3 --enable-libdrm --enable-rkmpp --enable-rkrga \
--cross-prefix=/root/mtea-tech/rk3588l/buildroot/output/rockchip_rk3588/host/bin/aarch64-linux- \
--arch=aarch64 --target-os=linux --enable-cross-compile --target-os=linux --disable-shared --pkg-config=pkg-config
from ffmpeg-rockchip.
@jacobbtbailey I added the paths to libdrm and mpp when configuring configure, and then successfully compiled ffmpeg-rockchip. The compilation script is as follows:
#!/bin/bash
# 设置路径变量
LIBDRM_PATH="/home/rk/linux/3rdparty/output/libdrm"
MPP_PATH="/home/rk/linux/3rdparty/output/mpp"
RGA_PATH="/home/rk/linux/3rdparty/output/librga"
TOOLCHAIN_PATH="/home/rk/linux/rk3588_sdk/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-"
PREFIX_PATH="/home/rk/linux/3rdparty/output/ffmpeg"
# 设置 PKG_CONFIG_PATH
export PKG_CONFIG_PATH="$LIBDRM_PATH/lib/pkgconfig:$MPP_PATH/lib/pkgconfig:$PKG_CONFIG_PATH"
# 运行 configure 脚本
./configure \
--enable-shared \
--enable-static \
--prefix=$PREFIX_PATH \
--enable-cross-compile \
--cross-prefix=$TOOLCHAIN_PATH \
--arch=aarch64 \
--target-os=linux \
--enable-gpl \
--enable-version3 \
--enable-libdrm \
--enable-rkmpp \
--extra-cflags="-I$RGA_PATH/include" \
--extra-ldflags="-L$RGA_PATH/lib" \
--enable-rkrga \
--disable-stripping \
--pkg-config="pkg-config --static"
Thank you for your reply!
from ffmpeg-rockchip.
Related Issues (20)
- [hevc_rkmpp] Zerolatency encoding HOT 2
- consider supporting RV1126? HOT 4
- Green screen with the attached video sample HOT 36
- MJPEG/JPEG HOT 1
- SEI information support HOT 1
- 请教使用scale_rkrga进行YUV420P/nv12转BGR24 HOT 2
- 解码后的图像颜色不对 HOT 2
- Test filter error HOT 3
- `Internal bug, should not have happened` 在同时编码与解码的时候 HOT 3
- Using with Photoprism HOT 1
- use scale_rkrga filter error in rk3588(ubuntu22.02 desktop) HOT 2
- use filter scale_rkrga failed in rk3588(ubuntu22.02 desktop) HOT 1
- 使用av_read_frame进行rtsp拉流阻塞的问题 HOT 2
- crashes - various errors HOT 4
- Compile into static form HOT 1
- Error native compilation in Armbian 5.10.160-legacy-rk35xx HOT 1
- 当摄像头设备分辨率为1920x1080时,tbr帧率识别错误? HOT 1
- undefined reference to ff_h264_* HOT 4
- Segmentation fault: mpp_buffer_group_init HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpeg-rockchip.