ubuntu手动编译opencv 4.9.0遇到的问题汇总
编译流程
以4.9.0版本为例,可参考:https://docs.opencv.org/4.9.0/d2/de6/tutorial_py_setup_in_ubuntu.html
编译加速
https://blog.csdn.net/tfb760/article/details/104030841
ippicv_2021.10.0_lnx_intel64_20230919_general.tgz下载慢
可参考:https://blog.csdn.net/orDream/article/details/84311697
ubuntu20.04下编译opencv4.9.0时报错
/usr/bin/ld: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined reference to ffi_type_uint32@LIBFFI_BASE_7.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined reference to
ffi_type_sint32@LIBFFI_BASE_7.0’
/usr/bin/ld: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined reference to ffi_type_pointer@LIBFFI_BASE_7.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined reference to
ffi_type_void@LIBFFI_BASE_7.0’
/usr/bin/ld: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined reference to ffi_prep_cif@LIBFFI_BASE_7.0' /usr/bin/ld: /lib/x86_64-linux-gnu/libwayland-client.so.0: undefined reference to
ffi_call@LIBFFI_BASE_7.0’
可参考:https://blog.csdn.net/special00/article/details/135100639
有时使用export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libffi.so.7
也可以解决