@ajian 没看到具体的错误信息。这是我根据文档修改的程序包,你对比一下。 lv2048.tar.gz
thepresent 发布的帖子
-
回复: 移植基于 LVGL 的 2048 ,编译出错了,能帮我看看 咋回事嘛?谢谢大佬!!
-
回复: 移植基于 LVGL 的 2048 ,编译出错了,能帮我看看 咋回事嘛?谢谢大佬!!
@ajian 两个Makefile都改了吗?如果已经都改了的话make clean一下再试试。如果还不行就上传一下错误截图看一下
-
回复: 移植基于 LVGL 的 2048 ,编译出错了,能帮我看看 咋回事嘛?谢谢大佬!!
@ajian 是不是直接复制的文档中的Makefile的内容,Makefile要求缩进必须是tab,不能是空格。你把makefile中的缩进全部删掉,然后改成tab试试。像下面这里:
%.o: %.c @$(CC) $(CFLAGS) -c $< -o $@ @echo "CC $<"
-
回复: 适配Tina 5.0的eyesee-mpp移植成功
@wxid_disxysjskla
@wxid_disxysjskla 大佬,我下载了你的新的安装包,编译的时候提示Package eyesee-mpp-external is missing dependencies for the following libraries: libc.so.6 libm.so.6
我参考https://www.cnblogs.com/rockyching2009/p/10246438.html这里,修改了/openwrt/package/allwinner/eyesee-mpp/external/Makefile:
define Package/$(PKG_NAME)/install $(INSTALL_DIR) $(1)/usr/lib/eyesee-mpp $(INSTALL_DIR) $(1)/usr/bin $(CP) $(PKG_BUILD_DIR)/libc.so.6 $(1) $(CP) $(PKG_BUILD_DIR)/libm.so.6 $(1) ... define Build/Prepare mkdir -p $(PKG_BUILD_DIR) if [ -d $(SRC_COMPILE_DIR) ]; then \ rm -rf $(SRC_COMPILE_DIR); \ fi cp -rf $(SRC_CODE_DIR) $(SRC_COMPILE_DIR) cp libc.so.6 $(PKG_BUILD_DIR) cp libm.so.6 $(PKG_BUILD_DIR) endef
修改了之后可以编译了。然后又出现了下面这个错误
make[5]: Entering directory '.../out/v853/vision/openwrt/build_dir/target/eyesee-mpp-middleware/eyesee-mpp-middleware/media/LIBRARY/libADAS' make[5]: *** No rule to make target 'library/musl/libADAS.a', needed by 'out/libADAS.a'. Stop.
我把编译配置里改成编译动态库之后,可以编译成功了。不过我选择编译mpp sample的时候,没有生成ipk。
麻烦问一下,
1:后面的libADAS.a的错误怎么解决?我看到eyesee-mpp-middleware里面的Readme文件里面提到了预编译库,麻烦问一下这个预编译库是怎么编译出来的?
2:我编译的mpp sample不能生成,麻烦看一下这是怎么回事啊。
谢谢大佬!! -
回复: 适配Tina 5.0的eyesee-mpp移植成功
@wxid_disxysjskla 你好,用了你这个包,编译不成功。其中有些静态库是在你自己的电脑上编译的,我编译的时候提示找不到路径。我把这些库删除掉之后,就无法生成sample了。
rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-system/.pkgdir/eyesee-mpp-system/usr/lib/eyesee-mpp/liblog.so rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-system/.pkgdir/eyesee-mpp-system/usr/lib/eyesee-mpp/libhwdisplay.so rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-system/.pkgdir/eyesee-mpp-system/usr/lib/eyesee-mpp/libion.so rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-middleware/eyesee-mpp-middleware/media/libaw_mpp.a rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-middleware/eyesee-mpp-middleware/media/LIBRARY/libcedarx/libcore/stream/file/libcdx_file_stream.a rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-middleware/eyesee-mpp-middleware/media/LIBRARY/libcedarx/libcore/stream/base/libcdx_stream.a rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-middleware/eyesee-mpp-middleware/media/LIBRARY/libcedarx/libcore/parser/id3v2/libcdx_id3v2_parser.a rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-middleware/eyesee-mpp-middleware/media/LIBRARY/libcedarx/libcore/parser/wav/libcdx_wav_parser.a rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-middleware/eyesee-mpp-middleware/media/LIBRARY/libcedarx/libcore/parser/mov/libcdx_mov_parser.a rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-middleware/eyesee-mpp-middleware/media/LIBRARY/libcedarx/libcore/parser/base/libcdx_parser.a rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-middleware/eyesee-mpp-middleware/media/LIBRARY/libcedarx/libcore/parser/ts/libcdx_ts_parser.a rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-middleware/eyesee-mpp-middleware/media/LIBRARY/libcedarx/libcore/parser/aac/libcdx_aac_parser.a rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-middleware/eyesee-mpp-middleware/media/LIBRARY/libcedarx/libcore/parser/mpg/libcdx_mpg_parser.a rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-middleware/eyesee-mpp-middleware/media/LIBRARY/libcedarx/libcore/parser/mp3/libcdx_mp3_parser.a rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-framework/.pkgdir/eyesee-mpp-framework/usr/lib/eyesee-mpp/libcustomaw_media_utils.so rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-external/eyesee-mpp-external-1.0/jsoncpp-0.8.0/libjsoncpp0.8.a rm -f ./out/v853/vision/openwrt/build_dir/target/eyesee-mpp-external/eyesee-mpp-external-1.0/lz4-1.7.5/liblz4.a rm -f ./out/v853/vision/openwrt/staging_dir/target/usr/lib/eyesee-mpp/liblz4.a rm -f ./out/v853/vision/openwrt/staging_dir/target/usr/lib/eyesee-mpp/libjsoncpp0.8.a rm -f ./out/v853/vision/openwrt/staging_dir/target/usr/lib/eyesee-mpp/liblog.so rm -f ./out/v853/vision/openwrt/staging_dir/target/usr/lib/eyesee-mpp/libhwdisplay.so rm -f ./out/v853/vision/openwrt/staging_dir/target/usr/lib/eyesee-mpp/libcustomaw_media_utils.so rm -f ./out/v853/vision/openwrt/staging_dir/target/usr/lib/eyesee-mpp/libion.so rm -f ./out/v853/vision/openwrt/staging_dir/target/root-v853-vision/usr/lib/eyesee-mpp/liblog.so rm -f ./out/v853/vision/openwrt/staging_dir/target/root-v853-vision/usr/lib/eyesee-mpp/libhwdisplay.so rm -f ./out/v853/vision/openwrt/staging_dir/target/root-v853-vision/usr/lib/eyesee-mpp/libcustomaw_media_utils.so rm -f ./out/v853/vision/openwrt/staging_dir/target/root-v853-vision/usr/lib/eyesee-mpp/libion.so rm -f ./platform/allwinner/eyesee-mpp/framework/sun8iw21/utils/libcustomaw_media_utils.so rm -f ./platform/allwinner/eyesee-mpp/system/private/onvif/libOnvif.a rm -f ./platform/allwinner/eyesee-mpp/system/private/rtsp/libTinyServer.a rm -f ./platform/allwinner/eyesee-mpp/system/public/display/libhwdisplay.so rm -f ./platform/allwinner/eyesee-mpp/system/public/libion/libion.so rm -f ./platform/allwinner/eyesee-mpp/system/public/liblog/liblog.so rm -f ./platform/allwinner/eyesee-mpp/external/jsoncpp-0.8.0/libjsoncpp0.8.a rm -f ./platform/allwinner/eyesee-mpp/external/lz4-1.7.5/liblz4.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/librender/libcedarxrender.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/utils/libmedia_utils.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/libaw_mpp.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/libaw_mpp.a.bak rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libstream/libcedarxstream.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarc/vdecoder/libvdecoder.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarc/base/libcdc_base.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarc/memory/libMemAdapter.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarc/vencoder/base/libvenc_base.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarc/vencoder/libvencoder.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libResample/libResample.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libfilerepair/libfilerepair.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libisp/out/library/musl/libisp_math.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libisp/libISP.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarx/libcore/stream/file/libcdx_file_stream.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarx/libcore/stream/base/libcdx_stream.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarx/libcore/common/libcdx_common.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarx/libcore/base/libcdx_base.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarx/libcore/parser/id3v2/libcdx_id3v2_parser.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarx/libcore/parser/wav/libcdx_wav_parser.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarx/libcore/parser/mov/libcdx_mov_parser.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarx/libcore/parser/base/libcdx_parser.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarx/libcore/parser/ts/libcdx_ts_parser.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarx/libcore/parser/aac/libcdx_aac_parser.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarx/libcore/parser/mpg/libcdx_mpg_parser.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/libcedarx/libcore/parser/mp3/libcdx_mp3_parser.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/AudioLib/midware/encoding/libcedarx_aencoder.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/media/LIBRARY/AudioLib/midware/decoding/libadecoder.a rm -f ./platform/allwinner/eyesee-mpp/middleware/sun8iw21/sample/configfileparser/libsample_confparser.a
-
回复: 怎么编译yolov5模型验证程序
@caochenxin
sudo apt install libopencv-dev
然后执行
g++ --std=c++11 -Wfatal-errors -O3 xxx.cpp -o yyy $(pkg-config --cflags --libs opencv4)
其中xxx是上面的源码,yyy是输出的文件名。
在ubuntu20.04系统上使用g++9.4版本编译通过。