OpenVisualCloud / Video-Super-Resolution-Library

BSD 3-Clause "New" or "Revised" License
38 stars 6 forks source link

Docker build fails #4

Open arianaa30 opened 1 month ago

arianaa30 commented 1 month ago

I was trying to build the docker image. But it failed:

Error at loading of ippIP library
Your application is dynamically linked with Intel(R) IPP libraries version 2021.9.0 (r0x4ff293fb)
No DLL from the list below is found on the system search path:
libippil9.so.10.8 (the most suitable for your CPU)
libippie9.so.10.8 (optional)
libippiy8.so.10.8 (optional)
libippin8.so.10.8 (optional)
libippim7.so.10.8 (optional)
Please provide a path to at least one of them
The command '/bin/sh -c ldd ${PREFIX}/bin/ffmpeg | cut -d ' ' -f 3 | xargs -i cp {} /usr/local/lib/ &&         cp /opt/intel/oneapi/ipp/latest/lib/intel64/libippik0.so.10.8 /usr/local/lib &&         cp /opt/intel/oneapi/ipp/latest/lib/intel64/libippsk0.so.10.8 /usr/local/lib &&         cp /opt/intel/oneapi/ipp/latest/lib/intel64/libippsn0.so.10.8 /usr/local/lib &&         cp /opt/intel/oneapi/ipp/latest/lib/intel64/libippsl9.so.10.8 /usr/local/lib &&         cp /opt/intel/oneapi/ipp/latest/lib/intel64/libippse9.so.10.8 /usr/local/lib &&         cp /opt/intel/oneapi/ipp/latest/lib/intel64/libippsy8.so.10.8 /usr/local/lib &&         cp /opt/intel/oneapi/ipp/latest/lib/intel64/libippsn8.so.10.8 /usr/local/lib &&         cp /opt/intel/oneapi/ipp/latest/lib/intel64/libippsm7.so.10.8 /usr/local/lib &&         cp -r ${PREFIX}/bin/* /usr/local/bin/ &&         cp -r ${PREFIX}/share/ffmpeg /usr/local/share/ &&         LD_LIBRARY_PATH=/usr/local/lib ffmpeg -buildconf &&         cp -r ${PREFIX}/include/libav* ${PREFIX}/include/libpostproc ${PREFIX}/include/libsw* /usr/local/include &&         mkdir -p /usr/local/lib/pkgconfig &&         for pc in ${PREFIX}/lib/pkgconfig/libav*.pc ${PREFIX}/lib/pkgconfig/libpostproc.pc ${PREFIX}/lib/pkgconfig/libsw*.pc; do           sed "s:${PREFIX}:/usr/local:g" <"$pc" >/usr/local/lib/pkgconfig/"${pc##*/}";         done' returned a non-zero code: 1
cabirdme commented 1 month ago

If the ipp libraries are not being located, you might try poking through whichever dockerfile you are using ( e.g. Dockerfile.ubuntu22.04 ). You could try modifying the ./configure param for building ffmpeg to include --extra-ldflags="-L/path-to-ipp's lib folder" or --extra-cflags="-I/path-to-ipp-headers If you're still encountering issues, it could be helpful to share more about your system environment so that we can more easily reproduce. Things like what is your host OS, docker version, any arguments passed to docker_build.sh, anything else you can think to add.