liblapack.so.3: undefined symbol: icamin_k错误及解决办法

 

OpenCV编译完成后,测试出现lapack错误

Python 3.7.1 | packaged by conda-forge | (default, Feb 18 2019, 01:34:39)

[GCC 7.3.0] :: Anaconda, Inc. on linux

Type "help", "copyright", "credits" or "license" for more information.

>>> import cv2

Traceback (most recent call last):

File "", line 1, in

ImportError: /usr/lib/aarch64-linux-gnu/liblapack.so.3: undefined symbol: icamin_k

原因:

/usr/lib/aarch64-linux-gnu/liblapack.so.3 的版本与编译opencv使用的版本不一样,需要指向正确的版本。

 

处理:

# cd /usr/lib/aarch64-linux-gnu

 

# ln -s /usr/lib/aarch64-linux-gnu/lapack/liblapack.so.3 liblapack.so.3

# ln -s /usr/lib/aarch64-linux-gnu/lapack/liblapack.so.3 liblapack.so

 

 

你可能感兴趣的:(python)