1. 查看依赖的库:
objdump -x xxoo.so | grep NEEDED
2. 查看缺失的库:
ldd xxoo.so
如果某个依赖的库不存在,会输出类似 OOXX.so not found 字样。
root@9d222bb7c629:~/MaixPy3/ext_modules/libmaix/examples/camera# objdump -x ./dist/lib/libopencv_features2d.so | grep NEEDED
NEEDED libopencv_flann.so.4.1
NEEDED libopencv_highgui.so.4.1
NEEDED libopencv_videoio.so.4.1
NEEDED libopencv_imgcodecs.so.4.1
NEEDED libopencv_imgproc.so.4.1
NEEDED libopencv_core.so.4.1
NEEDED libstdc++.so.6
NEEDED libgcc_s.so.1
NEEDED libc.so
root@9d222bb7c629:~/MaixPy3/ext_modules/libmaix/examples/camera#