Matrix_blas_bindings.h:359:81: error: cannot convert ‘float*’ to ‘openblas_complex_float*

when I build c++ demo with dlib (github latest release), got the error:matrix_blas_bindings.h:359:81: error: cannot convert ‘float*’ to ‘openblas_complex_float* {aka complex float*}’ for argument ‘6’ to ‘void cblas_cdotu_sub(blasint, const float*, blasint, const float*, blasint, openblas_complex_float*)’

have no idea now.

the cmake log:

– The C compiler identification is GNU 7.5.0
– The CXX compiler identification is GNU 7.5.0
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: /usr/bin/cc - skipped
– Detecting C compile features
– Detecting C compile features - done
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Check for working CXX compiler: /usr/bin/c++ - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
– Looking for pthread.h
– Looking for pthread.h - found
– Performing Test CMAKE_HAVE_LIBC_PTHREAD
– Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
– Looking for pthread_create in pthreads
– Looking for pthread_create in pthreads - not found
– Looking for pthread_create in pthread
– Looking for pthread_create in pthread - found
– Found Threads: TRUE
– Found CUDA: /usr/local/cuda (found suitable exact version “10.2”)
– Found OpenCV: /usr/local (found version “4.3.0”)
– Found CUDA: /usr/local/cuda (found version “10.2”)
– CUDA version: 10.2
– CUDA 10 detected, enabling SM_72
CUDA_TOOLKIT_ROOT_DIR = /usr/local/cuda
– Found TensorRT headers at /usr/include/aarch64-linux-gnu
– Find TensorRT libs at /usr/lib/aarch64-linux-gnu/libnvinfer.so;/usr/lib/aarch64-linux-gnu/libnvinfer_plugin.so;/usr/lib/aarch64-linux-gnu/libnvparsers.so
– Found TENSORRT: /usr/include/aarch64-linux-gnu
– Found TensorRT headers at /usr/include/aarch64-linux-gnu
– Find TensorRT libs at /usr/lib/aarch64-linux-gnu/libnvinfer.so;/usr/lib/aarch64-linux-gnu/libnvinfer_plugin.so;/usr/lib/aarch64-linux-gnu/libnvparsers.so
TENSORRT =
DEFAULT_MSG =
– Using CMake version: 3.18.1
– Compiling dlib version: 19.21.99
– Found X11: /usr/include
– Looking for XOpenDisplay in /usr/lib/aarch64-linux-gnu/libX11.so;/usr/lib/aarch64-linux-gnu/libXext.so
– Looking for XOpenDisplay in /usr/lib/aarch64-linux-gnu/libX11.so;/usr/lib/aarch64-linux-gnu/libXext.so - found
– Looking for gethostbyname
– Looking for gethostbyname - found
– Looking for connect
– Looking for connect - found
– Looking for remove
– Looking for remove - found
– Looking for shmat
– Looking for shmat - found
– Looking for IceConnectionNumber in ICE
– Looking for IceConnectionNumber in ICE - found
– Found system copy of libpng: /usr/lib/aarch64-linux-gnu/libpng.so;/usr/lib/aarch64-linux-gnu/libz.so
– Found system copy of libjpeg: /usr/lib/aarch64-linux-gnu/libjpeg.so
– Searching for BLAS and LAPACK
– Searching for BLAS and LAPACK
– Found PkgConfig: /usr/bin/pkg-config (found version “0.29.1”)
– Checking for module ‘cblas’
– No package ‘cblas’ found
– Checking for module ‘lapack’
– Found lapack, version 0.2.20+ds
– Looking for sys/types.h
– Looking for sys/types.h - found
– Looking for stdint.h
– Looking for stdint.h - found
– Looking for stddef.h
– Looking for stddef.h - found
– Check size of void*
– Check size of void* - done
– Found OpenBLAS library
– Looking for sgetrf_single
– Looking for sgetrf_single - found
– Using OpenBLAS’s built in LAPACK
– Looking for cblas_ddot
– Looking for cblas_ddot - found
– Looking for sgesv
– Looking for sgesv - not found
– Looking for sgesv_
– Looking for sgesv_ - not found
– Found CUDA: /usr/local/cuda (found suitable version “10.2”, minimum required is “7.5”)
– Looking for cuDNN install…
– Found cuDNN: /usr/lib/aarch64-linux-gnu/libcudnn.so
– Building a CUDA test project to see if your compiler is compatible with CUDA…
– Building a cuDNN test project to check if you have the right version of cuDNN installed…
– Enabling CUDA support for dlib. DLIB WILL USE CUDA
– C++11 activated.

Done!