Skip to content

Instantly share code, notes, and snippets.

@nszceta
Created November 16, 2017 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nszceta/cb8db63c0b743a3da5692347414218de to your computer and use it in GitHub Desktop.
Save nszceta/cb8db63c0b743a3da5692347414218de to your computer and use it in GitHub Desktop.
OpenCV 3 missing LAPACK/BLAS symbols broken by C++ name mangling
Edit OpenCVFindLAPACK.cmake
Change:
if(NOT " ${__content_str}" STREQUAL " ${_lapack_include_str}")
file(WRITE "${CBLAS_H_PROXY_PATH}" "${_lapack_include_str}")
endif()
To:
if(NOT " ${__content_str}" STREQUAL " ${_lapack_include_str}")
file(WRITE "${CBLAS_H_PROXY_PATH}" "extern 'C' { ${_lapack_include_str} }")
endif()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment