where is .lib for cudaarithm.hpp?

asked 2019-08-31 09:01:41 -0600

I've built the opncv 4.1.1 with cuda and extramodules:

@echo off 

set "opencvSource=C:\opencv_cuda\opencv-4.1.1"

cd %opencvSource%

set "anaconda=C:\ProgramData\Anaconda3"


set "opencvExtraModules=C:\opencv_cuda\opencv_contrib"
set "opencvBuild=%opencvSource%\build"
set "compiler=Visual Studio 16 2019"
set "buildType=Release"

set "python3_executable=%anaconda%\python.exe"
set "python3_include_dir=%anaconda%\include"
set "python3_library=%anaconda%\libs\python37.lib"
set "python3_numpy_include_dirs=%anaconda%\lib\site-packages\numpy\core\include"
set "python3_packages_path=%anaconda%\Lib\site-packages"

echo %python3_executable%
echo %python3_include_dir%
echo %python3_library%
echo %python3_numpy_include_dirs%
echo %python3_packages_path%
echo %compiler%
echo %opencvSource%
echo %opencvBuild%
echo %opencvExtraModules%

cmake --version

cmake ^
-DOPENCV_EXTRA_MODULES_PATH="%opencvExtraModules%\modules" "%opencvSource%" ^
-B "%opencvBuild%" ^
-G "%compiler%"
-Ax64 ^
-DCMAKE_BUILD_TYPE=%buildType% ^
-DBUILD_opencv_world=ON ^
-DINSTALL_TESTS=ON ^
-DINSTALL_C_EXAMPLES=OFF ^
-DBUILD_EXAMPLES=OFF ^
-DBUILD_PROTOBUF=ON ^
-DBUILD_opencv_python_bindings_generator=ON ^
-DWITH_CUDA=ON ^
-DCUDA_FAST_MATH=ON ^
-DWITH_CUBLAS=ON ^
-DCUDA_ARCH_PTX=7.5 ^
-DBUILD_opencv_python3=ON ^
-DPYTHON3_EXECUTABLE="%python3_executable%" ^
-DOPENCV_PYTHON3_VERSION=3.7.3 ^
-DPYTHON3_INCLUDE_DIR="%python3_include_dir%" ^
-DPYTHON3_LIBRARY="%python3_library%" ^
-DPYTHON3_NUMPY_INCLUDE_DIRS="%python3_numpy_include_dirs%" ^
-DPYTHON3_PACKAGES_PATH="%python3_packages_path%"

Here is ouput:

C:\opencv_cuda\opencv-4.1.1>cd ..

C:\opencv_cuda>build_cv_cuda.bat C:\ProgramData\Anaconda3\python.exe C:\ProgramData\Anaconda3\include C:\ProgramData\Anaconda3\libs\python37.lib C:\ProgramData\Anaconda3\lib\site-packages\numpy\core\include C:\ProgramData\Anaconda3\Lib\site-packages Visual Studio 16 2019 C:\opencv_cuda\opencv-4.1.1 C:\opencv_cuda\opencv-4.1.1\build C:\opencv_cuda\opencv_contrib cmake version 3.14.4

CMake suite maintained and supported by Kitware (kitware.com/cmake). -- The CXX compiler identification is MSVC 19.22.27905.0 -- The C compiler identification is MSVC 19.22.27905.0 -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.22.27905/bin/Hostx64/x64/cl.exe -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.22.27905/bin/Hostx64/x64/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.22.27905/bin/Hostx64/x64/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.22.27905/bin/Hostx64/x64/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Detected processor: AMD64 -- Performing Test HAVE_CXX11 (check file: cmake/checks/cxx11.cpp) -- Performing Test HAVE_CXX11 - Success -- Found PythonInterp: C:/ProgramData/Anaconda3/python.exe (found suitable version "3.7.3", minimum required is "2.7") CMake Warning at cmake/OpenCVDetectPython.cmake:81 (message): CMake's 'find_host_package(PythonInterp 2.7)' founds wrong Python version:

PYTHON_EXECUTABLE=C:/ProgramData/Anaconda3/python.exe

PYTHON_VERSION_STRING=3.7.3

Consider specify 'PYTHON2_EXECUTABLE' variable via CMake command line or environment variables

Call Stack (most recent call first): cmake/OpenCVDetectPython.cmake:275 (find_python) CMakeLists.txt:702 (include)

-- Could NOT find Python2 (missing: Python2_EXECUTABLE Interpreter) -- Update variable PYTHON3_EXECUTABLE from environment: C:/ProgramData/Anaconda3/python.exe -- Found PythonInterp: C:/ProgramData/Anaconda3/python.exe (found suitable version "3.7.3", minimum required is "3.2 ... (more)

edit retag flag offensive close merge delete

Comments

But meet the error

the exact error msg, please.

berak gravatar imageberak ( 2019-08-31 13:38:51 -0600 )edit