gst-omx编译报错
-
SDK1.01打上了最新的补丁
编译gst-omx报错
错误信息如下:oot@allwinner-VirtualBox:/home/allwinner/d1/D1/package/multimedia/gst1-omx# mm make package/multimedia/gst1-omx/install V=s make[1]: Entering directory `/home/allwinner/d1/D1' make[2]: Entering directory `/home/allwinner/d1/D1/package/multimedia/gst1-omx' make -C /home/allwinner/d1/D1/out/d1-nezha/compile_dir/target/gst-omx-1.16.3/ ARCH="riscv" AR="riscv64-unknown-linux-gnu-ar" CC="riscv64-unknown-linux-gnu-gcc" CXX="riscv64-unknown-linux-gnu-g++" CFLAGS="-Os -pipe -mcmodel=medany -mabi=lp64d -march=rv64gcxthead -g3 -fno-caller-saves -Wno-format-truncation -Wno-unused-result -Wformat -Werror=format-security -Wl,-z,now -Wl,-z,relro" LDFLAGS="-L/home/allwinner/d1/D1/out/d1-nezha/staging_dir/target/usr/lib -L/home/allwinner/d1/D1/out/d1-nezha/staging_dir/target/lib -L/home/allwinner/d1/D1/prebuilt/gcc/linux-x86/riscv/toolchain-thead-glibc/riscv64-glibc-gcc-thead_20200702/usr/lib -L/home/allwinner/d1/D1/prebuilt/gcc/linux-x86/riscv/toolchain-thead-glibc/riscv64-glibc-gcc-thead_20200702/lib -znow -zrelro -Wl,-rpath-link=/home/allwinner/d1/D1/out/d1-nezha/staging_dir/target/rootfs/lib " TARGET_BOARD="d1" make[3]: Entering directory `/home/allwinner/d1/D1/out/d1-nezha/compile_dir/target/gst-omx-1.16.3' make all-recursive make[4]: Entering directory `/home/allwinner/d1/D1/out/d1-nezha/compile_dir/target/gst-omx-1.16.3' Making all in common make[5]: Entering directory `/home/allwinner/d1/D1/out/d1-nezha/compile_dir/target/gst-omx-1.16.3/common' Making all in m4 make[6]: Entering directory `/home/allwinner/d1/D1/out/d1-nezha/compile_dir/target/gst-omx-1.16.3/common/m4' make[6]: Nothing to be done for `all'. make[6]: Leaving directory `/home/allwinner/d1/D1/out/d1-nezha/compile_dir/target/gst-omx-1.16.3/common/m4' make[6]: Entering directory `/home/allwinner/d1/D1/out/d1-nezha/compile_dir/target/gst-omx-1.16.3/common' make[6]: Nothing to be done for `all-am'. make[6]: Leaving directory `/home/allwinner/d1/D1/out/d1-nezha/compile_dir/target/gst-omx-1.16.3/common' make[5]: Leaving directory `/home/allwinner/d1/D1/out/d1-nezha/compile_dir/target/gst-omx-1.16.3/common' Making all in omx make[5]: Entering directory `/home/allwinner/d1/D1/out/d1-nezha/compile_dir/target/gst-omx-1.16.3/omx' CCLD libgstomx.la gcc: error: unrecognized argument in option '-mcmodel=medany' gcc: note: valid arguments to '-mcmodel=' are: 32 kernel large medium small gcc: error: unrecognized argument in option '-mabi=lp64d' gcc: note: valid arguments to '-mabi=' are: ms sysv make[5]: *** [libgstomx.la] Error 1 make[5]: Leaving directory `/home/allwinner/d1/D1/out/d1-nezha/compile_dir/target/gst-omx-1.16.3/omx' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/allwinner/d1/D1/out/d1-nezha/compile_dir/target/gst-omx-1.16.3' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/allwinner/d1/D1/out/d1-nezha/compile_dir/target/gst-omx-1.16.3' make[2]: *** [/home/allwinner/d1/D1/out/d1-nezha/compile_dir/target/gst-omx-1.16.3/.built] Error 2 make[2]: Leaving directory `/home/allwinner/d1/D1/package/multimedia/gst1-omx' make[1]: *** [package/multimedia/gst1-omx/install] Error 2 make[1]: Leaving directory `/home/allwinner/d1/D1' make: *** [package/multimedia/gst1-omx/install] Error 2 root@allwinner-VirtualBox:/home/allwinner/d1/D1/package/multimedia/gst1-omx#
在文件out/d1-nezha/compile_dir/target/gst-omx-1.16.3/omx/Makefile 可以看到
这些变量 CC CCAS 被错误得指定为了gcc 其他文件的CC CCAS都是riscv64-unknown-linux-gnu-gcc 所以上面报了个gcc认不得-mcmodel=medany的错 实际上riscv是认得的
现在问题就是不知道哪里导致Makefile一些本该指定为riscv64-unknown-linux-gnu-gcc 指定为了gcc 当然在Makefile直接把gcc手动改为riscv64-unknown-linux-gnu-gcc也不行和这个贴一样的
https://bbs.aw-ol.com/topic/293/ -
我测试过,默认的编译确实就是这个错误。
试一试 patch
D1_open_tina_multimedia_update_0730.tar.gz
Tina_支持gstreamer,更新多媒体中间件:
1、Tina升级gstreamer主包及其各插件包到1.16.3版本,支持RV架构;
2、gstreamer显示插件sunxifbsink支持g2d硬件旋转;
3、更新多媒体中间件。2021-07-30 20:50:38
44.222MB -
@ubuntu
这个0730补丁我打过了
里面一些源文件我对比了 发现确实是打上了
后面发现唯独package/multidedia/gst-omx/Makefile没变成打完补丁后的 然后我替换了补丁里面的 编译通过了
总之可以了
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号