libIlmImf动态库包含在libopenexr

root@c11cf9e6b275:/home/dong/color-detector/build# apt-cache search libopenexr
libopenexr-dev - development files for the OpenEXR image library
libopenexr22 - runtime files for the OpenEXR image library


解决

2)

apt-get update #更新安装源
apt-get install libopenexr-dev #安装依赖套件

安装结果

root@c11cf9e6b275:/home/dong/color-detector/build# find / -name libIlmImf*   
/usr/lib/x86_64-linux-gnu/libIlmImf-2_2.so.22
/usr/lib/x86_64-linux-gnu/libIlmImfUtil-2_2.so.22
/usr/lib/x86_64-linux-gnu/libIlmImfUtil.a
/usr/lib/x86_64-linux-gnu/libIlmImf-2_2.so.22.0.0
/usr/lib/x86_64-linux-gnu/libIlmImf.so
/usr/lib/x86_64-linux-gnu/libIlmImf.a
/usr/lib/x86_64-linux-gnu/libIlmImfUtil.so
/usr/lib/x86_64-linux-gnu/libIlmImfUtil-2_2.so.22.0.0


注意:

1)网上提供了apt-cache search IlmImf搜索指令,实际上在新版本Ubuntu 5.4.0-6ubuntu1~16.04.10已经搜索不到任何的内容

2)error while loading shared libraries: libIlmImf-2_2.so.22: cannot open shared object file: No such file or directory,解决方案如上,更新系统之后,也会出现动态库不一致的问题