【算能】stream的docker编译报错:

Could not find a package configuration file provided by "LIBSOPHON” withany of the following names:

LIBSOPHONConfig.cmakelibsophon-config.cmake

Add the installation prefix of "LIBSOPHON to CMAKE PREFIX PATH or set"LIBSOPHON DIR to a directory containing one of the above files. f"LIBSOPHON” provides a separate development package or SDK, be sure it hasbeen installed.

【算能】stream的docker编译报错:_第1张图片分析cmakelists可以知道:
在framework的这个地方有对应的需求链接:

【算能】stream的docker编译报错:_第2张图片现在的解决办法有两种:

方法一:

#添加cmake config文件:

mkdir -p /usr/lib/cmake/libsophon

cp /opt/sophon/libsophon-current/data/libsophon-config.cmake /usr/lib/cmake/libsophon/

方法二:

在最开始的时候,将宿主机的这个目录挂载上去

这里的-v /usr/lib/cmake/libsophon:/usr/lib/cmake/libsophon

docker run --privileged --name stream_pcie -v /data:/data -v /opt/sophon:/opt/sophon -v /dev:/dev -v /usr/lib/cmake/libsophon:/usr/lib/cmake/libsophon -it yifan996/stream_dev:latest /data/master/sophon-testhub/pytest/stream_build/stream_build.sh bytetrack pcie /data/sdk/v23.05.01/soc-sdk-allin /data/StreamBuildbytetrack_SC7

你可能感兴趣的:(docker,java,容器)