完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
在盒子上编译sophon-sail,下载了对应版本的sophon-sail源码,执行cmake -DBUILD_PYSAIL=OFF ..
报错: linaro@bm1684:/data/sail/sophon-sail/build$ cmake -DBUILD_PYSAIL=OFF ..-- The C compiler identification is GNU 9.3.0-- The CXX compiler identification is GNU 9.3.0-- Check for working C compiler: /usr/bin/cc-- Check for working C compiler: /usr/bin/cc -- works-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Detecting C compile features-- Detecting C compile features - done-- Check for working CXX compiler: /usr/bin/c++-- Check for working CXX compiler: /usr/bin/c++ -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Detecting CXX compile features-- Detecting CXX compile features - done-- WITH_OPENCV: ON-- WITH_FFMPEG: ON-- WITH_BMCV: ON-- CMAKE_INSTALL_PREFIX: /opt/sophon-- LIBSOPHON_INCLUDE_DIRS: /opt/sophon/libsophon-current/includeCMake Error at build_unix.cmake:116 (find_package): By not providing "FindFFMPEG.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "FFMPEG", but CMake did not find one. Could not find a package configuration file provided by "FFMPEG" with any of the following names: FFMPEGConfig.cmake ffmpeg-config.cmake Add the installation prefix of "FFMPEG" to CMAKE_PREFIX_PATH or set "FFMPEG_DIR" to a directory containing one of the above files. If "FFMPEG" provides a separate development package or SDK, be sure it has been installed.Call Stack (most recent call first): CMakeLists.txt:9 (include)-- Configuring incomplete, errors occurred!See also "/data/sail/sophon-sail/build/CMakeFiles/CMakeOutput.log".linaro@bm1684:/data/sail/sophon-sail/build$ 但是盒子上/opt/sophon是有对应的FFMPEG linaro@bm1684:/opt/sophon$ lltotal 20drwxr-xr-x 5 root root 4096 Dec 27 11:04 ./drwxr-xr-x 5 root root 4096 Feb 22 16:24 ../drwxr-xr-x 6 root root 4096 Dec 27 11:04 libsophon-0.5.1/lrwxrwxrwx 1 root root 27 Dec 27 11:04 libsophon-current -> /opt/sophon/libsophon-0.5.1/lrwxrwxrwx 1 root root 32 Dec 27 11:04 sophon-ffmpeg-latest -> /opt/sophon/sophon-ffmpeg_0.12.0/drwxr-xr-x 5 root root 4096 Dec 27 11:04 sophon-ffmpeg_0.12.0/lrwxrwxrwx 1 root root 32 Dec 27 11:04 sophon-opencv-latest -> /opt/sophon/sophon-opencv_0.12.0/drwxr-xr-x 7 root root 4096 Dec 27 11:04 sophon-opencv_0.12.0/盒子版本: linaro@bm1684:/opt/sophon$ bm_versionSophonSDK version: v23.09 LTS-SP4sophon-soc-libsophon : 0.5.1sophon-soc-libsophon-dev : 0.5.1sophon-mw-soc-sophon-ffmpeg : 0.12.0sophon-mw-soc-sophon-opencv : 0.12.0BL2 v2.8(release):b3e005d Built : 10:53:36, Dec 27 2024BL31 v2.8(release):b3e005d Built : 10:53:36, Dec 27 2024U-Boot 2022.10 b3e005d (Dec 27 2024 - 10:53:31 +0800) Sophon BM1684KernelVersion : Linux bm1684 5.4.217-bm1684-g01adf91564c4 #1 SMP Fri Dec 27 10:53:44 CST 2024 aarch64 aarch64 aarch64 GNU/LinuxHWVersion: 0x11MCUVersion: 0x39 |
|
相关推荐
1个回答
|
|
|
在编译sophon-sail时遇到CMake报错,可能是以下原因导致的。以下是逐步排查和解决方案: 1. 检查CMake版本sophon-sail对CMake版本可能有最低要求(通常>=3.10)。执行以下命令确认版本:
2. 确认依赖项安装sophon-sail依赖库如OpenCV、FFmpeg、Python头文件等。确保已安装: 3. 检查源码和构建目录
4. 查看完整错误日志
5. 可能的特定问题
6. 尝试干净的构建环境7. 参考官方文档或社区
请根据上述步骤逐一排查,若仍有问题,请提供完整的CMake输出日志,以便进一步定位错误。 |
|
|
|
|
只有小组成员才能发言,加入小组>>
H264硬编码CVI_VENC_StartRecvFrame报错的原因?怎么解决?
971浏览 2评论
523浏览 1评论
639浏览 1评论
645浏览 1评论
使用sophon-demo_v0.1.8_dbb4632_20231116下面的YOLOv8中的yolov8_bmcv历程出现段错误的原因?
860浏览 1评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-3 08:08 , Processed in 4.266798 second(s), Total 76, Slave 58 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
703
