Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想在rk3399上运行qt,使用ffmpeg #47

Open
bigpigdog opened this issue May 31, 2024 · 3 comments
Open

想在rk3399上运行qt,使用ffmpeg #47

bigpigdog opened this issue May 31, 2024 · 3 comments

Comments

@bigpigdog
Copy link

想在rk3399上运行qt,使用ffmpeg,编译器是aarch64-linux-gnu-g++,好像这个编译器无法用ffmpeg里的库,如下

contains(QT_ARCH, x86_64) {
path_lib = libwin64
} else {
path_lib = libwin32
}

那应该怎么办,有ffmpeg源码吗,可以自己生成库文件吗?

望解答,非常感谢!!!

@feiyangqingyun
Copy link
Owner

需要自己交叉编译好ffmpeg,并把这里的代码换成自己的路径

@bigpigdog
Copy link
Author

需要自己交叉编译好ffmpeg,并把这里的代码换成自己的路径

@feiyangqingyun 感谢回复!但我又遇到一些问题。QT交叉编译遇到很多报错:
0003f52fdde829316b18cb7d853997e5

而且静态库文件非常大(例如libavcodec.a有170MB),可能我编译指令有问题(我不知道哪些组建可以disable):

../configure --cross-prefix=aarch64-linux-gnu- \
            --target-os=linux \
            --arch=aarch64 \
            --enable-static \
            --enable-gpl \
            --pkg-config="pkg-config --static" \
            --prefix=/home/lhj/Desktop/QT_project/rk3399/FFmpeg/build \
            --enable-ffmpeg

我下载的源代码来自于https://github.com/FFmpeg/FFmpeg.git,不用ffmpeg的qt程序可以交叉编译并可以在开发板上运行了。请问我现在需要如何解决这个报错,是要更换ffmpeg的版本还是要更改编译指令,谢谢!

@bigpigdog
Copy link
Author

@feiyangqingyun 我看到playffmpeg目录下的readme了,我在网盘中找到了对应的版本,然后解决了问题,非常感谢!但我打不开编译步骤.txt中的网址https://feiyangqingyun.gitee.io/qwidgetdemo/video_system/##139-编译ffmpeg,所以现在我编译后的静态库还是很大(170MB),请问正确的网址是什么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants