Giter Club home page Giter Club logo

Comments (27)

fengyuentau avatar fengyuentau commented on July 19, 2024 3

Hi, @fengyuentau sorry but still have:

/Users/thewoz/Dropbox/Research/Github/opencv/modules/calib3d/src/usac/dls_solver.cpp:162:9: error: no matching function for call to 'dgeev_'
        OCV_LAPACK_FUNC(dgeev)(&jobvl, &jobvr, &mat_order, (double*)solution_polynomial.data, &lda, wr, wi, nullptr, &ldvl,
        ^~~~~~~~~~~~~~~~~~~~~~
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^~~~
<scratch space>:46:1: note: expanded from here
dgeev_
^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/lapack.h:23405:1: note: candidate function not viable: no known conversion from 'int *' to 'const __LAPACK_int * _Nonnull' (aka 'const long *') for 3rd argument
dgeev_(
^
1 error generated.

Thank you for the report. I reproduced your issue. Will submit a new fix later. cc @asmorkalov

from opencv.

fengyuentau avatar fengyuentau commented on July 19, 2024 1

Also is -DACCELERATE_NEW_LAPACK - which appears in compilation warnings - part of this

It should be taken care of already in the latest code. Did you observe the following output when you run cmake?

$ cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_ZLIB=OFF -DCMAKE_INSTALL_PREFIX=build/install .
...
-- LAPACK(LAPACK/Apple): LAPACK_LIBRARIES: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/Accelerate.framework;-lm;-ldl
-- LAPACK(LAPACK/Apple): Accelerate New LAPACK is enabled.
-- LAPACK(LAPACK/Apple): Support is enabled.
...

from opencv.

Daniil-Osokin avatar Daniil-Osokin commented on July 19, 2024 1

Hi! Just have built from the latest d7f04a9, cannot reproduce (built successfully). MacOS 14.2.1, Core i5-8500B, logs attached:

cmake -DCMAKE_BUILD_TYPE=RELEASE -DWITH_TBB=ON -DENABLE_FAST_MATH=1 -DBUILD_EXAMPLES=OFF -DBUILD_DOCS=OFF -DBUILD_TESTS=OFF -DENABLE_PRECOMPILED_HEADERS=OFF -DOPENCV_GENERATE_PKGCONFIG=ON -DBUILD_ZLIB=OFF -DWITH_OPENXR=OFF -DBUILD_opencv_gapi=OFF ../opencv

opencv_cmake_output.log
opencv_build_output.log

from opencv.

fengyuentau avatar fengyuentau commented on July 19, 2024 1

Hi! Just have built from the latest d7f04a9, cannot reproduce (built successfully). MacOS 14.2.1, Core i5-8500B, logs attached:

cmake -DCMAKE_BUILD_TYPE=RELEASE -DWITH_TBB=ON -DENABLE_FAST_MATH=1 -DBUILD_EXAMPLES=OFF -DBUILD_DOCS=OFF -DBUILD_TESTS=OFF -DENABLE_PRECOMPILED_HEADERS=OFF -DOPENCV_GENERATE_PKGCONFIG=ON -DBUILD_ZLIB=OFF -DWITH_OPENXR=OFF -DBUILD_opencv_gapi=OFF ../opencv

opencv_cmake_output.log opencv_build_output.log

Cheers! Looks like my followup patch #25625 did solve the problem. Thank you!

from opencv.

thewoz avatar thewoz commented on July 19, 2024 1

I'am on a Mac mini intel i7
macOS 14.4.1
Xcode Version 15.4 (15F31d)

cmake -DCMAKE_BUILD_TYPE=RELEASE -DWITH_QT=ON -DWITH_TBB=ON -DENABLE_FAST_MATH=1 -DBUILD_EXAMPLES=OFF -DBUILD_DOCS=OFF -DBUILD_TESTS=OFF -DENABLE_PRECOMPILED_HEADERS=OFF -DOPENCV_GENERATE_PKGCONFIG=ON -DBUILD_ZLIB=OFF -DWITH_OPENXR=OFF -DBUILD_opencv_gapi=OFF ..

here the log of cmake
cmake.log

here the log of make
make.log

from opencv.

fengyuentau avatar fengyuentau commented on July 19, 2024 1

I'am on a Mac mini intel i7 macOS 14.4.1 Xcode Version 15.4 (15F31d)

cmake -DCMAKE_BUILD_TYPE=RELEASE -DWITH_QT=ON -DWITH_TBB=ON -DENABLE_FAST_MATH=1 -DBUILD_EXAMPLES=OFF -DBUILD_DOCS=OFF -DBUILD_TESTS=OFF -DENABLE_PRECOMPILED_HEADERS=OFF -DOPENCV_GENERATE_PKGCONFIG=ON -DBUILD_ZLIB=OFF -DWITH_OPENXR=OFF -DBUILD_opencv_gapi=OFF ..

here the log of cmake cmake.log

here the log of make make.log

Thank you @thewoz ! I just submitted a PR (#25682) to fix this issue.

from opencv.

codtiger avatar codtiger commented on July 19, 2024

I can confirm I received the same error on a fresh M3 Mac with the exact same OS version and compiler. Looks like an updated LAPack signature update from Apple's side?

from opencv.

asmorkalov avatar asmorkalov commented on July 19, 2024

@thewoz @codtiger could you try #25625 ?

from opencv.

fengyuentau avatar fengyuentau commented on July 19, 2024

Do you build opencv and use it on another host?

from opencv.

thewoz avatar thewoz commented on July 19, 2024

Hi @asmorkalov
I pulled the 4.x branch and called cmake in this way:

cmake -DCMAKE_BUILD_TYPE=RELEASE -DWITH_QT=ON -DWITH_TBB=ON -DENABLE_FAST_MATH=1 -DBUILD_EXAMPLES=OFF -DBUILD_DOCS=OFF -DBUILD_TESTS=OFF -DENABLE_PRECOMPILED_HEADERS=OFF -DOPENCV_GENERATE_PKGCONFIG=ON -DBUILD_ZLIB=OFF -DWITH_OPENXR=OFF -DBUILD_opencv_gapi=OFF ..

I still keep getting the same error as before.

May be I need to specify one of this?

-DCMAKE_OSX_DEPLOYMENT_TARGET=15.0 -DOCV_OSX_USE_ACCELERATE_NEW_LAPACK=ON

i tried but nothing changes

from opencv.

fengyuentau avatar fengyuentau commented on July 19, 2024

Is it lastest? #25625 was just merged. Make sure you have this patch.


I also noticed that you are on x86_64 macOS. It may be a different case from ARM. Unfortunately I do not have a x86_64 mac now, but I will try to reproduce the issue on my M1 macbook.

from opencv.

fengyuentau avatar fengyuentau commented on July 19, 2024

I can confirm I received the same error on a fresh M3 Mac with the exact same OS version and compiler. Looks like an updated LAPack signature update from Apple's side?

@codtiger Could you post your build command so that I can reproduce your issue?

from opencv.

codtiger avatar codtiger commented on July 19, 2024

@fengyuentau Sure. I tried this on branch 4.x of both opencv with opencv_contrib in a new directory.

cmake -D CMAKE_BUILD_TYPE=RELEASE -D ENABLE_NEON=ON -D ENABLE_TBB=ON -D ENABLE_IPP=ON -D ENABLE_VFVP3=ON -D WITH_OPENMP=ON -D BUILD_DOCS=ON -D WITH_FFMPEG=ON -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ../opencv

Afterwards I follow with make -j12 and I receive the same error OP posted, though I believe he truncated this note which points to the third argument mismatch in opencv/modules/calib3d/src/usac/essential_solver.cpp:265:13::

dgeev_
^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/vecLib.framework/Headers/lapack.h:23405:1:
 note: candidate function not viable: no known conversion from 'int *' to 'const __LAPACK_int * _Nonnull' (aka 'const long *') for 3rd argument
dgeev_(

from opencv.

fengyuentau avatar fengyuentau commented on July 19, 2024

@codtiger I cannot reproduce your issue on my m1 macbook with macos 14.4.1. Could you make sure that you have the latest opencv 4.x? We just merge a patch 7e9ef4d that might fix your problem. If the issue stll presists, would you please post your build information (the output after you run the cmake command)?

from opencv.

codtiger avatar codtiger commented on July 19, 2024

@fengyuentau I pulled the latest change and it compiles! Thank you!

Also is -DACCELERATE_NEW_LAPACK - which appears in compilation warnings - part of this? I tried configuring with that flag enabled but it did not suppress the warnings.

from opencv.

thewoz avatar thewoz commented on July 19, 2024

@fengyuentau
I'm on a x86_64 machine and I keep getting the following error:

/Users/thewoz/Dropbox/Research/Github/opencv/modules/calib3d/src/usac/dls_solver.cpp:162:9: error: no matching function for call to 'dgeev_'
        OCV_LAPACK_FUNC(dgeev)(&jobvl, &jobvr, &mat_order, (double*)solution_polynomial.data, &lda, wr, wi, nullptr, &ldvl,
        ^~~~~~~~~~~~~~~~~~~~~~
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^~~~
<scratch space>:46:1: note: expanded from here
dgeev_
^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/lapack.h:23405:1: note: candidate function not viable: no known conversion from 'int *' to 'const __LAPACK_int * _Nonnull' (aka 'const long *') for 3rd argument
dgeev_(
^
1 error generated.
make[2]: *** [modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/usac/dls_solver.cpp.o] Error 1

I updated OpenCV again for safety and am using a clean directory.

with -DOCV_OSX_USE_ACCELERATE_NEW_LAPACK=ON

I get:

-- LAPACK(LAPACK/Apple): LAPACK_LIBRARIES: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/Accelerate.framework;-lm;-ldl
-- LAPACK(LAPACK/Apple): Accelerate New LAPACK is enabled.
-- LAPACK(LAPACK/Apple): Support is enabled.

but the error still remains.

from opencv.

fengyuentau avatar fengyuentau commented on July 19, 2024

@thewoz Thank you for the verification. I need to somehow have a check on a x86_64 macOS, which unfortunately I do not have. Could you try to append ARM AND at line 13 in cmake/OpenCVFindLAPACK.cmake to see whether it fixes your problem?

if(DEFINED _apple_device_min_target_os_version AND
("${CMAKE_OSX_DEPLOYMENT_TARGET}" VERSION_GREATER "${_apple_device_min_target_os_version}" OR
"${CMAKE_OSX_DEPLOYMENT_TARGET}" VERSION_EQUAL "${_apple_device_min_target_os_version}"))
set(_apple_device_has_required_min_os_version ON)
else()
set(_apple_device_has_required_min_os_version OFF)
endif()

Make it:

if(DEFINED _apple_device_min_target_os_version AND ARM AND

from opencv.

fengyuentau avatar fengyuentau commented on July 19, 2024

I guess Apple did not bring new lapack for x86_86 macOS. Could you also do the following change on your code and paste the extra output if possible?

Current code:

try_compile(__VALID_LAPACK
"${OpenCV_BINARY_DIR}"
"${OpenCV_SOURCE_DIR}/cmake/checks/lapack_check.cpp"
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES:STRING=${LAPACK_INCLUDE_DIR}\;${CMAKE_BINARY_DIR}"
"-DLINK_DIRECTORIES:STRING=${__link_directories}"
COMPILE_DEFINITIONS ${LAPACK_TRY_COMPILE_DEF}
LINK_LIBRARIES ${LAPACK_LIBRARIES}
OUTPUT_VARIABLE TRY_OUT
)

Modifications:

    try_compile(__VALID_LAPACK
        "${OpenCV_BINARY_DIR}"
        "${OpenCV_SOURCE_DIR}/cmake/checks/lapack_check.cpp"
        CMAKE_FLAGS "-DINCLUDE_DIRECTORIES:STRING=${LAPACK_INCLUDE_DIR}\;${CMAKE_BINARY_DIR}"
                    "-DLINK_DIRECTORIES:STRING=${__link_directories}"
-        COMPILE_DEFINITIONS ${LAPACK_TRY_COMPILE_DEF}
        LINK_LIBRARIES ${LAPACK_LIBRARIES}
        OUTPUT_VARIABLE TRY_OUT
    )
+    message(STATUS "LAPACK check (try_compile): ${TRY_OUT}")

Just want to see whether it produces build warnings as shown in #24660.


Or you can checkout back to before my patch #24804 which causes your problem. Try to build opencv at that point and see whether it has build warnings.

from opencv.

thewoz avatar thewoz commented on July 19, 2024

Hi @fengyuentau ,
so you want me to make this change:
if(DEFINED _apple_device_min_target_os_version AND ARM AND
and this one:

    try_compile(__VALID_LAPACK
        "${OpenCV_BINARY_DIR}"
        "${OpenCV_SOURCE_DIR}/cmake/checks/lapack_check.cpp"
        CMAKE_FLAGS "-DINCLUDE_DIRECTORIES:STRING=${LAPACK_INCLUDE_DIR}\;${CMAKE_BINARY_DIR}"
                    "-DLINK_DIRECTORIES:STRING=${__link_directories}"
-        COMPILE_DEFINITIONS ${LAPACK_TRY_COMPILE_DEF}
        LINK_LIBRARIES ${LAPACK_LIBRARIES}
        OUTPUT_VARIABLE TRY_OUT
    )
+    message(STATUS "LAPACK check (try_compile): ${TRY_OUT}")

and then run cmake with -DOCV_OSX_USE_ACCELERATE_NEW_LAPACK=ON ??

from opencv.

thewoz avatar thewoz commented on July 19, 2024

hi @fengyuentau
Meanwhile, I saw that promoting from int to long the variables in:

  • file dls_solver.cpp at line 158
  • file essential_solver.cpp at line 262

compilation is completed without error even without defining -DOCV_OSX_USE_ACCELERATE_NEW_LAPACK=ON

from opencv.

fengyuentau avatar fengyuentau commented on July 19, 2024

Hi @fengyuentau , so you want me to make this change: if(DEFINED _apple_device_min_target_os_version AND ARM AND and this one:

    try_compile(__VALID_LAPACK
        "${OpenCV_BINARY_DIR}"
        "${OpenCV_SOURCE_DIR}/cmake/checks/lapack_check.cpp"
        CMAKE_FLAGS "-DINCLUDE_DIRECTORIES:STRING=${LAPACK_INCLUDE_DIR}\;${CMAKE_BINARY_DIR}"
                    "-DLINK_DIRECTORIES:STRING=${__link_directories}"
-        COMPILE_DEFINITIONS ${LAPACK_TRY_COMPILE_DEF}
        LINK_LIBRARIES ${LAPACK_LIBRARIES}
        OUTPUT_VARIABLE TRY_OUT
    )
+    message(STATUS "LAPACK check (try_compile): ${TRY_OUT}")

and then run cmake with -DOCV_OSX_USE_ACCELERATE_NEW_LAPACK=ON ??

The first one with ARM AND can be a fix for your build problem, which worths a try.

The second one is a verification to see whether opencv without my patch (which causes your build problem) has build warnings on a x86_64 macOS.

from opencv.

fengyuentau avatar fengyuentau commented on July 19, 2024

hi @fengyuentau Meanwhile, I saw that promoting from int to long the variables in:

  • file dls_solver.cpp at line 158
  • file essential_solver.cpp at line 262

compilation is completed without error even without defining -DOCV_OSX_USE_ACCELERATE_NEW_LAPACK=ON

What condition is it? Is the code clean and up-to-date?

from opencv.

thewoz avatar thewoz commented on July 19, 2024

What condition is it? Is the code clean and up-to-date?

yes

from opencv.

thewoz avatar thewoz commented on July 19, 2024

I try

if(DEFINED _apple_device_min_target_os_version AND ARM AND

and the I run cmake without -DOCV_OSX_USE_ACCELERATE_NEW_LAPACK=ON

I got a lot of warning:

/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:134:17: warning: 'sgesv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                sgesv_(&_m, &_n, (float*)a, &lda, piv, (float*)b, &_m, _info);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5618:5: note: 'sgesv_' has been explicitly marked deprecated here
int sgesv_(__CLPK_integer *__n, __CLPK_integer *__nrhs, __CLPK_real *__a,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:136:17: warning: 'dgesv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                dgesv_(&_m, &_n, (double*)a, &lda, piv, (double*)b, &_m, _info);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2727:5: note: 'dgesv_' has been explicitly marked deprecated here
int dgesv_(__CLPK_integer *__n, __CLPK_integer *__nrhs, __CLPK_doublereal *__a,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:146:17: warning: 'sgesv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                sgesv_(&_m, &_n, (float*)a, &lda, piv, (float*)tmpB, &_m, _info);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5618:5: note: 'sgesv_' has been explicitly marked deprecated here
int sgesv_(__CLPK_integer *__n, __CLPK_integer *__nrhs, __CLPK_real *__a,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:148:17: warning: 'dgesv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                dgesv_(&_m, &_n, (double*)a, &lda, piv, (double*)tmpB, &_m, _info);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2727:5: note: 'dgesv_' has been explicitly marked deprecated here
int dgesv_(__CLPK_integer *__n, __CLPK_integer *__nrhs, __CLPK_doublereal *__a,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:157:13: warning: 'sgetrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            sgetrf_(&_m, &_m, (float*)a, &lda, piv, _info);
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5659:5: note: 'sgetrf_' has been explicitly marked deprecated here
int sgetrf_(__CLPK_integer *__m, __CLPK_integer *__n, __CLPK_real *__a,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:159:13: warning: 'dgetrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            dgetrf_(&_m, &_m, (double*)a, &lda, piv, _info);
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2770:5: note: 'dgetrf_' has been explicitly marked deprecated here
int dgetrf_(__CLPK_integer *__m, __CLPK_integer *__n, __CLPK_doublereal *__a,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:198:17: warning: 'sposv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(sposv)(L, &_m, &_n, (float*)a, &lda, (float*)b, &_m, &lapackStatus);
                ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:124:1: note: expanded from here
sposv_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:7076:5: note: 'sposv_' has been explicitly marked deprecated here
int sposv_(char *__uplo, __CLPK_integer *__n, __CLPK_integer *__nrhs,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:200:17: warning: 'dposv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(dposv)(L, &_m, &_n, (double*)a, &lda, (double*)b, &_m, &lapackStatus);
                ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:125:1: note: expanded from here
dposv_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:4340:5: note: 'dposv_' has been explicitly marked deprecated here
int dposv_(char *__uplo, __CLPK_integer *__n, __CLPK_integer *__nrhs,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:209:17: warning: 'sposv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(sposv)(L, &_m, &_n, (float*)a, &lda, (float*)tmpB, &_m, &lapackStatus);
                ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:126:1: note: expanded from here
sposv_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:7076:5: note: 'sposv_' has been explicitly marked deprecated here
int sposv_(char *__uplo, __CLPK_integer *__n, __CLPK_integer *__nrhs,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:211:17: warning: 'dposv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(dposv)(L, &_m, &_n, (double*)a, &lda, (double*)tmpB, &_m, &lapackStatus);
                ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:127:1: note: expanded from here
dposv_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:4340:5: note: 'dposv_' has been explicitly marked deprecated here
int dposv_(char *__uplo, __CLPK_integer *__n, __CLPK_integer *__nrhs,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:220:13: warning: 'spotrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            OCV_LAPACK_FUNC(spotrf)(L, &_m, (float*)a, &lda, &lapackStatus);
            ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:128:1: note: expanded from here
spotrf_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:7097:5: note: 'spotrf_' has been explicitly marked deprecated here
int spotrf_(char *__uplo, __CLPK_integer *__n, __CLPK_real *__a,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:222:13: warning: 'dpotrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            OCV_LAPACK_FUNC(dpotrf)(L, &_m, (double*)a, &lda, &lapackStatus);
            ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:129:1: note: expanded from here
dpotrf_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:4362:5: note: 'dpotrf_' has been explicitly marked deprecated here
int dpotrf_(char *__uplo, __CLPK_integer *__n, __CLPK_doublereal *__a,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:275:9: warning: 'sgesdd_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
        OCV_LAPACK_FUNC(sgesdd)(mode, &_m, &_n, (float*)a, &lda, (float*)w, (float*)u, &ldu, (float*)vt, &ldv, (float*)&work1, &lwork, iworkBuf, _info);
        ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:130:1: note: expanded from here
sgesdd_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5610:5: note: 'sgesdd_' has been explicitly marked deprecated here
int sgesdd_(char *__jobz, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:277:9: warning: 'dgesdd_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
        OCV_LAPACK_FUNC(dgesdd)(mode, &_m, &_n, (double*)a, &lda, (double*)w, (double*)u, &ldu, (double*)vt, &ldv, (double*)&work1, &lwork, iworkBuf, _info);
        ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:131:1: note: expanded from here
dgesdd_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2719:5: note: 'dgesdd_' has been explicitly marked deprecated here
int dgesdd_(char *__jobz, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:288:9: warning: 'sgesdd_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
        OCV_LAPACK_FUNC(sgesdd)(mode, &_m, &_n, (float*)a, &lda, (float*)w, (float*)u, &ldu, (float*)vt, &ldv, (float*)buffer, &lwork, iworkBuf, _info);
        ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:132:1: note: expanded from here
sgesdd_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5610:5: note: 'sgesdd_' has been explicitly marked deprecated here
int sgesdd_(char *__jobz, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:290:9: warning: 'dgesdd_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
        OCV_LAPACK_FUNC(dgesdd)(mode, &_m, &_n, (double*)a, &lda, (double*)w, (double*)u, &ldu, (double*)vt, &ldv, (double*)buffer, &lwork, iworkBuf, _info);
        ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:133:1: note: expanded from here
dgesdd_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2719:5: note: 'dgesdd_' has been explicitly marked deprecated here
int dgesdd_(char *__jobz, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:366:17: warning: 'sgels_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(sgels)(mode, &_m, &_n, &_k, (float*)tmpA, &ldtmpA, (float*)b, &_m, (float*)&work1, &lwork, _info);
                ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:134:1: note: expanded from here
sgels_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5515:5: note: 'sgels_' has been explicitly marked deprecated here
int sgels_(char *__trans, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:368:17: warning: 'dgels_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(dgels)(mode, &_m, &_n, &_k, (double*)tmpA, &ldtmpA, (double*)b, &_m, (double*)&work1, &lwork, _info);
                ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:135:1: note: expanded from here
dgels_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2616:5: note: 'dgels_' has been explicitly marked deprecated here
int dgels_(char *__trans, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:375:17: warning: 'sgels_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(sgels)(mode, &_m, &_n, &_k, (float*)tmpA, &ldtmpA, (float*)b, &_m, (float*)buffer, &lwork, _info);
                ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:136:1: note: expanded from here
sgels_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5515:5: note: 'sgels_' has been explicitly marked deprecated here
int sgels_(char *__trans, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:377:17: warning: 'dgels_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(dgels)(mode, &_m, &_n, &_k, (double*)tmpA, &ldtmpA, (double*)b, &_m, (double*)buffer, &lwork, _info);
                ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:137:1: note: expanded from here
dgels_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2616:5: note: 'dgels_' has been explicitly marked deprecated here
int dgels_(char *__trans, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:387:17: warning: 'sgels_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(sgels)(mode, &_m, &_n, &_k, (float*)tmpA, &ldtmpA, (float*)tmpB, &_m, (float*)&work1, &lwork, _info);
                ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:138:1: note: expanded from here
sgels_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5515:5: note: 'sgels_' has been explicitly marked deprecated here
int sgels_(char *__trans, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:389:17: warning: 'dgels_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(dgels)(mode, &_m, &_n, &_k, (double*)tmpA, &ldtmpA, (double*)tmpB, &_m, (double*)&work1, &lwork, _info);
                ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:139:1: note: expanded from here
dgels_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2616:5: note: 'dgels_' has been explicitly marked deprecated here
int dgels_(char *__trans, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:396:17: warning: 'sgels_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(sgels)(mode, &_m, &_n, &_k, (float*)tmpA, &ldtmpA, (float*)tmpB, &_m, (float*)buffer, &lwork, _info);
                ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:140:1: note: expanded from here
sgels_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5515:5: note: 'sgels_' has been explicitly marked deprecated here
int sgels_(char *__trans, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:398:17: warning: 'dgels_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
                OCV_LAPACK_FUNC(dgels)(mode, &_m, &_n, &_k, (double*)tmpA, &ldtmpA, (double*)tmpB, &_m, (double*)buffer, &lwork, _info);
                ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:141:1: note: expanded from here
dgels_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2616:5: note: 'dgels_' has been explicitly marked deprecated here
int dgels_(char *__trans, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:406:13: warning: 'sgeqrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            sgeqrf_(&_m, &_n, (float*)tmpA, &ldtmpA, (float*)dst, (float*)&work1, &lwork, _info);
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5579:5: note: 'sgeqrf_' has been explicitly marked deprecated here
int sgeqrf_(__CLPK_integer *__m, __CLPK_integer *__n, __CLPK_real *__a,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:408:13: warning: 'dgeqrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            dgeqrf_(&_m, &_n, (double*)tmpA, &ldtmpA, (double*)dst, (double*)&work1, &lwork, _info);
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2686:5: note: 'dgeqrf_' has been explicitly marked deprecated here
int dgeqrf_(__CLPK_integer *__m, __CLPK_integer *__n, __CLPK_doublereal *__a,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:415:13: warning: 'sgeqrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            sgeqrf_(&_m, &_n, (float*)tmpA, &ldtmpA, (float*)dst, (float*)buffer, &lwork, _info);
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5579:5: note: 'sgeqrf_' has been explicitly marked deprecated here
int sgeqrf_(__CLPK_integer *__m, __CLPK_integer *__n, __CLPK_real *__a,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:417:13: warning: 'dgeqrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            dgeqrf_(&_m, &_n, (double*)tmpA, &ldtmpA, (double*)dst, (double*)buffer, &lwork, _info);
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2686:5: note: 'dgeqrf_' has been explicitly marked deprecated here
int dgeqrf_(__CLPK_integer *__m, __CLPK_integer *__n, __CLPK_doublereal *__a,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:507:9: warning: 'cblas_sgemm' is deprecated: first deprecated in macOS 13.3 - An updated CBLAS interface supporting ILP64 is available.  Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [-Wdeprecated-declarations]
        cblas_sgemm(CblasRowMajor, transA, transB, a_m, d_n, a_n, (float)alpha, (float*)src1, ldsrc1, (float*)src2, ldsrc2, (float)beta, (float*)dst, lddst);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/cblas.h:610:6: note: 'cblas_sgemm' has been explicitly marked deprecated here
void cblas_sgemm(const enum CBLAS_ORDER __Order,
     ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:509:9: warning: 'cblas_dgemm' is deprecated: first deprecated in macOS 13.3 - An updated CBLAS interface supporting ILP64 is available.  Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [-Wdeprecated-declarations]
        cblas_dgemm(CblasRowMajor, transA, transB, a_m, d_n, a_n, (double)alpha, (double*)src1, ldsrc1, (double*)src2, ldsrc2, (double)beta, (double*)dst, lddst);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/cblas.h:647:6: note: 'cblas_dgemm' has been explicitly marked deprecated here
void cblas_dgemm(const enum CBLAS_ORDER __Order,
     ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:603:9: warning: 'cblas_cgemm' is deprecated: first deprecated in macOS 13.3 - An updated CBLAS interface supporting ILP64 is available.  Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [-Wdeprecated-declarations]
        cblas_cgemm(CblasRowMajor, transA, transB, a_m, d_n, a_n, (float*)reinterpret_cast<fptype(&)[2]>(cAlpha), (float*)src1, ldsrc1, (float*)src2, ldsrc2, (float*)reinterpret_cast<fptype(&)[2]>(cBeta), (float*)dst, lddst);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/cblas.h:684:6: note: 'cblas_cgemm' has been explicitly marked deprecated here
void cblas_cgemm(const enum CBLAS_ORDER __Order,
     ^
/Users/thewoz/Dropbox/Research/Github/opencv/modules/core/src/hal_internal.cpp:605:9: warning: 'cblas_zgemm' is deprecated: first deprecated in macOS 13.3 - An updated CBLAS interface supporting ILP64 is available.  Please compile with -DACCELERATE_NEW_LAPACK to access the new headers and -DACCELERATE_LAPACK_ILP64 for ILP64 support. [-Wdeprecated-declarations]
        cblas_zgemm(CblasRowMajor, transA, transB, a_m, d_n, a_n, (double*)reinterpret_cast<fptype(&)[2]>(cAlpha), (double*)src1, ldsrc1, (double*)src2, ldsrc2, (double*)reinterpret_cast<fptype(&)[2]>(cBeta), (double*)dst, lddst);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/cblas.h:719:6: note: 'cblas_zgemm' has been explicitly marked deprecated here
void cblas_zgemm(const enum CBLAS_ORDER __Order,
     ^
32 warnings generated.

and.

/Users/thewoz/Dropbox/Research/Github/opencv/modules/calib3d/src/usac/dls_solver.cpp:162:9: warning: 'dgeev_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
        OCV_LAPACK_FUNC(dgeev)(&jobvl, &jobvr, &mat_order, (double*)solution_polynomial.data, &lda, wr, wi, nullptr, &ldvl,
        ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:66:1: note: expanded from here
dgeev_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2543:5: note: 'dgeev_' has been explicitly marked deprecated here
int dgeev_(char *__jobvl, char *__jobvr, __CLPK_integer *__n,

/Users/thewoz/Dropbox/Research/Github/opencv/modules/calib3d/src/usac/essential_solver.cpp:265:13: warning: 'dgeev_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
            OCV_LAPACK_FUNC(dgeev)(&jobvl, &jobvr, &mat_order, action_mat_data, &lda, wr, wi, eig_vecs, &ldvl,
            ^
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^
<scratch space>:66:1: note: expanded from here
dgeev_
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:2543:5: note: 'dgeev_' has been explicitly marked deprecated here
int dgeev_(char *__jobvl, char *__jobvr, __CLPK_integer *__n,

but no error.
Note the last two warnings are the two lines that before gave the error.

from opencv.

thewoz avatar thewoz commented on July 19, 2024

Hi @fengyuentau,
I also tried the first and second suggestions together without -DOCV_OSX_USE_ACCELERATE_NEW_LAPACK=ON

this is the extra message

-- Found LAPACK: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/Accelerate.framework;-lm;-ldl  
-- LAPACK(LAPACK/Apple): LAPACK_LIBRARIES: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/Accelerate.framework;-lm;-ldl
-- Looking for Accelerate/Accelerate.h
-- Looking for Accelerate/Accelerate.h - found
-- Looking for Accelerate/Accelerate.h
-- Looking for Accelerate/Accelerate.h - found
-- LAPACK check (try_compile): Change Dir: '/Users/thewoz/Dropbox/Research/Github/opencv/build/CMakeFiles/CMakeTmp'

Run Build Command(s): /usr/local/Cellar/cmake/3.27.7/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_eaa10/fast
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/cmTC_eaa10.dir/build.make CMakeFiles/cmTC_eaa10.dir/build
Building CXX object CMakeFiles/cmTC_eaa10.dir/lapack_check.cpp.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -I/Users/thewoz/Dropbox/Research/Github/opencv/build/CMakeFiles/CMakeTmp -I/Users/thewoz/Dropbox/Research/Github/opencv/build -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks -fsigned-char -ffast-math -fno-finite-math-only -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -ffunction-sections -fdata-sections  -fvisibility=hidden -fvisibility-inlines-hidden  -O3 -DNDEBUG  -DNDEBUG -std=c++11 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -mmacosx-version-min=14.4 -fPIE -MD -MT CMakeFiles/cmTC_eaa10.dir/lapack_check.cpp.o -MF CMakeFiles/cmTC_eaa10.dir/lapack_check.cpp.o.d -o CMakeFiles/cmTC_eaa10.dir/lapack_check.cpp.o -c /Users/thewoz/Dropbox/Research/Github/opencv/cmake/checks/lapack_check.cpp
/Users/thewoz/Dropbox/Research/Github/opencv/cmake/checks/lapack_check.cpp:4:33: warning: 'sgesv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
static char* check_fn1 = (char*)sgesv_;
                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5618:5: note: 'sgesv_' has been explicitly marked deprecated here
int sgesv_(__CLPK_integer *__n, __CLPK_integer *__nrhs, __CLPK_real *__a,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/cmake/checks/lapack_check.cpp:5:33: warning: 'sposv_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
static char* check_fn2 = (char*)sposv_;
                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:7076:5: note: 'sposv_' has been explicitly marked deprecated here
int sposv_(char *__uplo, __CLPK_integer *__n, __CLPK_integer *__nrhs,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/cmake/checks/lapack_check.cpp:6:33: warning: 'spotrf_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
static char* check_fn3 = (char*)spotrf_;
                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:7097:5: note: 'spotrf_' has been explicitly marked deprecated here
int spotrf_(char *__uplo, __CLPK_integer *__n, __CLPK_real *__a,
    ^
/Users/thewoz/Dropbox/Research/Github/opencv/cmake/checks/lapack_check.cpp:7:33: warning: 'sgesdd_' is deprecated: first deprecated in macOS 13.3 - The CLAPACK interface is deprecated.  Please compile with -DACCELERATE_NEW_LAPACK to access the new lapack headers. [-Wdeprecated-declarations]
static char* check_fn4 = (char*)sgesdd_;
                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/clapack.h:5610:5: note: 'sgesdd_' has been explicitly marked deprecated here
int sgesdd_(char *__jobz, __CLPK_integer *__m, __CLPK_integer *__n,
    ^
4 warnings generated.
Linking CXX executable cmTC_eaa10
/usr/local/Cellar/cmake/3.27.7/bin/cmake -E cmake_link_script CMakeFiles/cmTC_eaa10.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++    -fsigned-char -ffast-math -fno-finite-math-only -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -ffunction-sections -fdata-sections  -fvisibility=hidden -fvisibility-inlines-hidden  -O3 -DNDEBUG  -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -mmacosx-version-min=14.4 -Wl,-search_paths_first -Wl,-headerpad_max_install_names   -Wl,-dead_strip  CMakeFiles/cmTC_eaa10.dir/lapack_check.cpp.o -o cmTC_eaa10   -L/usr/local/lib  -Wl,-rpath,/usr/local/lib -Xlinker -framework -Xlinker Accelerate -lm -ldl 


-- LAPACK(LAPACK/Apple): Support is enabled.

I received all the warnings from earlier and the compilation ends without error.

same behavior if I run cmake with -DOCV_OSX_USE_ACCELERATE_NEW_LAPACK=ON

from opencv.

fengyuentau avatar fengyuentau commented on July 19, 2024

What condition is it? Is the code clean and up-to-date?

yes

Basically you can finish the build successfully with the latest code. So I think the issue has been solved via #25625.


Also thank you for your feedback on the experiments! Looks like Apple does ship the new LAPACK to x86_64 as well. So I guess your build issue has been solved. You could close this one if you confirm that.

from opencv.

thewoz avatar thewoz commented on July 19, 2024

Hi, @fengyuentau
sorry but still have:

/Users/thewoz/Dropbox/Research/Github/opencv/modules/calib3d/src/usac/dls_solver.cpp:162:9: error: no matching function for call to 'dgeev_'
        OCV_LAPACK_FUNC(dgeev)(&jobvl, &jobvr, &mat_order, (double*)solution_polynomial.data, &lda, wr, wi, nullptr, &ldvl,
        ^~~~~~~~~~~~~~~~~~~~~~
/Users/thewoz/Dropbox/Research/Github/opencv/build/opencv_lapack.h:25:28: note: expanded from macro 'OCV_LAPACK_FUNC'
#define OCV_LAPACK_FUNC(f) f##_
                           ^~~~
<scratch space>:46:1: note: expanded from here
dgeev_
^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/vecLib.framework/Headers/lapack.h:23405:1: note: candidate function not viable: no known conversion from 'int *' to 'const __LAPACK_int * _Nonnull' (aka 'const long *') for 3rd argument
dgeev_(
^
1 error generated.

from opencv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.