Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Trouble Compiling OpenCV 2.4.6 from source

Hi, I've been at this for a while and can't seem to get OpenCV compiled from source for a 64 bit environment so I need some help. CUDA Toolkit 5.5 is installed (64 bit), along with CMake, and Python (ActiveState).

Video Card: Quadro 3000M (Fermi Arch)

Here is the output from Cmake

Checking for Windows Platform SDK Checking for Visual Studio 2012 CUDA detected: 5.5 CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21

General configuration for OpenCV 2.9.0 ===================================== Version control: 2.4.6.1-1718-gfc37df0

Platform: Host: Windows 6.1 AMD64 CMake: 2.8.11.2 CMake generator: Visual Studio 11 Win64 CMake build tool: C:/PROGRA~2/MICROS~1.0/Common7/IDE/devenv.com MSVC: 1700

C/C++: Built as dynamic libs?: YES C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe (ver 17.0.60315.1) C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /MD /O2 /Ob2 /D NDEBUG /Zi C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MD /O2 /Ob2 /D NDEBUG /Zi C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 Linker flags (Release): /machine:x64 /INCREMENTAL:NO /debug Linker flags (Debug): /machine:x64 /debug /INCREMENTAL Precompiled headers: YES

OpenCV modules: To be built: cudev core imgproc highgui flann features2d ml objdetect video calib3d ocl bioinspired contrib gpulegacy gpuarithm gpuwarping gpu legacy gpufilters gpuimgproc gpubgsegm gpucodec gpufeatures2d gpuoptflow gpustereo nonfree optim photo softcascade stitching superres ts videostab Disabled: world Disabled by dependency: - Unavailable: androidcamera java python

Windows RT support: NO

GUI: QT: NO Win32 UI: YES OpenGL support: NO

Media I/O: ZLib: build (ver 1.2.8) JPEG: build (ver 90) WEBP: build (ver 0.3.1) PNG: build (ver 1.5.12) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1)

Video I/O: Video for Windows: YES DC1394 1.x: NO DC1394 2.x: NO FFMPEG: YES (prebuilt binaries) codec: YES (ver 53.61.100) format: YES (ver 53.32.100) util: YES (ver 51.35.100) swscale: YES (ver 2.1.100) gentoo-style: YES OpenNI: NO OpenNI PrimeSensor Modules: NO PvAPI: NO GigEVisionSDK: NO DirectShow: YES Media Foundation: NO XIMEA: NO

Other third-party libraries: Use IPP: NO Use Eigen: NO Use TBB: NO Use OpenMP: NO Use GCD NO Use Concurrency YES Use C=: NO Use Cuda: YES (ver 5.5) Use OpenCL: YES

NVIDIA CUDA Use CUFFT: YES Use CUBLAS: NO USE NVCUVID: NO NVIDIA GPU arch: 20 21 NVIDIA PTX archs: Use fast math: NO

OpenCL Include path: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v5.5/include libraries: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v5.5/lib/x64/OpenCL.lib Use AMDFFT: NO Use AMDBLAS: NO

Python: Interpreter: C:/Python27/python2.7.exe (ver 2.7.2)

Java: ant: NO JNI: C:/Program Files/Java/jdk1.7.0_25/include C:/Program Files/Java/jdk1.7.0_25/include/win32 C:/Program Files/Java/jdk1.7.0_25/include Java tests: NO

Documentation: Build Documentation: NO Sphinx: NO PdfLaTeX compiler: NO

Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: NO

*Install path: C:/Users/matthep/Documents/Code/opencv_64bit/install

cvconfig.h is in: C:/Users/matthep/Documents/Code/opencv_64bit*

Configuring done Generating done

I open the solution in Visual studio. The only setting I change is opening one of the projects, selecting the configuration to effect all projects and turning on multi-processing compilation in C++/General. If I just try building the core I get a range of errors and I'm not sure how to address them. I previously had different errors, but read that you needed to disable the 1.x CUDA_ARCH_BIN versions so now my settings are as follows; CUDA_ARCH_BIN: 2.0 2.1(2.0) CUDA_GENERATION: Fermi

Error 1 error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::release(void)" (?release@GpuMat@gpu@cv@@QEAAXXZ) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 2 error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::release(void)" (?release@GpuMat@gpu@cv@@QEAAXXZ) referenced in function "public: __cdecl cv::gpu::GpuMat::~GpuMat(void)" (??1GpuMat@gpu@cv@@QEAA@XZ) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\gpu_cuda_mem.obj opencv_core Error 3 error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::release(void)" (?release@GpuMat@gpu@cv@@QEAAXXZ) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\gpu_mat.obj opencv_core Error 4 error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::release(void)" (?release@GpuMat@gpu@cv@@QEAAXXZ) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\matrix.obj opencv_core Error 5 error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::release(void)" (?release@GpuMat@gpu@cv@@QEAAXXZ) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opengl.obj opencv_core Error 6 error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::create(int,int,int)" (?create@GpuMat@gpu@cv@@QEAAXHHH@Z) referenced in function "void __cdecl `anonymous namespace'::createContinuousImpl<class cv::gpu::gpumat="">(int,int,int,class cv::gpu::GpuMat &)" (??$createContinuousImpl@VGpuMat@gpu@cv@@@?A0xf2a7b0a4@@YAXHHHAEAVGpuMat@gpu@cv@@@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\gpu_mat.obj opencv_core Error 7 error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::create(int,int,int)" (?create@GpuMat@gpu@cv@@QEAAXHHH@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\matrix.obj opencv_core Error 8 error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::create(int,int,int)" (?create@GpuMat@gpu@cv@@QEAAXHHH@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 9 error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::upload(class cv::_InputArray const &)" (?upload@GpuMat@gpu@cv@@QEAAXAEBV_InputArray@3@@Z) referenced in function "public: __cdecl cv::gpu::GpuMat::GpuMat(class cv::_InputArray const &)" (??0GpuMat@gpu@cv@@QEAA@AEBV_InputArray@2@@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 10 error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::download(class cv::_OutputArray const &)const " (?download@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@@Z) referenced in function "public: __cdecl cv::Mat::Mat(class cv::gpu::GpuMat const &)" (??0Mat@cv@@QEAA@AEBVGpuMat@gpu@1@@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 11 error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::copyTo(class cv::_OutputArray const &)const " (?copyTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@@Z) referenced in function "public: class cv::gpu::GpuMat __cdecl cv::gpu::GpuMat::clone(void)const " (?clone@GpuMat@gpu@cv@@QEBA?AV123@XZ) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 12 error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::copyTo(class cv::_OutputArray const &,class cv::_InputArray const &,class cv::gpu::Stream &)const " (?copyTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@AEBV_InputArray@3@AEAVStream@23@@Z) referenced in function "public: void __cdecl cv::gpu::GpuMat::copyTo(class cv::_OutputArray const &,class cv::_InputArray const &)const " (?copyTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@AEBV_InputArray@3@@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 13 error LNK2019: unresolved external symbol "public: class cv::gpu::GpuMat & __cdecl cv::gpu::GpuMat::setTo(class cv::Scalar_<double>,class cv::gpu::Stream &)" (?setTo@GpuMat@gpu@cv@@QEAAAEAV123@V?$Scalar_@N@3@AEAVStream@23@@Z) referenced in function "public: class cv::gpu::GpuMat & __cdecl cv::gpu::GpuMat::setTo(class cv::Scalar_<double>)" (?setTo@GpuMat@gpu@cv@@QEAAAEAV123@V?$Scalar_@N@3@@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 14 error LNK2019: unresolved external symbol "public: class cv::gpu::GpuMat & __cdecl cv::gpu::GpuMat::setTo(class cv::Scalar_<double>,class cv::_InputArray const &,class cv::gpu::Stream &)" (?setTo@GpuMat@gpu@cv@@QEAAAEAV123@V?$Scalar_@N@3@AEBV_InputArray@3@AEAVStream@23@@Z) referenced in function "public: class cv::gpu::GpuMat & __cdecl cv::gpu::GpuMat::setTo(class cv::Scalar_<double>,class cv::_InputArray const &)" (?setTo@GpuMat@gpu@cv@@QEAAAEAV123@V?$Scalar_@N@3@AEBV_InputArray@3@@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 15 error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::convertTo(class cv::_OutputArray const &,int,class cv::gpu::Stream &)const " (?convertTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@HAEAVStream@23@@Z) referenced in function "public: void __cdecl cv::gpu::GpuMat::convertTo(class cv::_OutputArray const &,int)const " (?convertTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@H@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 16 error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::convertTo(class cv::_OutputArray const &,int,double,double,class cv::gpu::Stream &)const " (?convertTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@HNNAEAVStream@23@@Z) referenced in function "public: void __cdecl cv::gpu::GpuMat::convertTo(class cv::_OutputArray const &,int,double,class cv::gpu::Stream &)const " (?convertTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@HNAEAVStream@23@@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 17 error LNK1120: 10 unresolved externals C:\Users\matthep\Documents\Code\opencv_64bit\bin\Debug\opencv_core290d.dll opencv_core

Any help would be appreciated... I'm sure its something stupid and simple. Sincerely, Paul.

Trouble Compiling OpenCV 2.4.6 from source

Hi, I've been at this for a while and can't seem to get OpenCV compiled from source for a 64 bit environment so I need some help. CUDA Toolkit 5.5 is installed (64 bit), along with CMake, and Python (ActiveState).

Video Card: Quadro 3000M (Fermi Arch)

Here is the output from Cmake

 Checking for Windows Platform SDK
Checking for Visual Studio 2012
CUDA detected: 5.5
CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21

-gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21 General configuration for OpenCV 2.9.0 ===================================== Version control: 2.4.6.1-1718-gfc37df0

2.4.6.1-1718-gfc37df0 Platform: Host: Windows 6.1 AMD64 CMake: 2.8.11.2 CMake generator: Visual Studio 11 Win64 CMake build tool: C:/PROGRA~2/MICROS~1.0/Common7/IDE/devenv.com MSVC: 1700

1700 C/C++: Built as dynamic libs?: YES C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe (ver 17.0.60315.1) C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /MD /O2 /Ob2 /D NDEBUG /Zi C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /wd4251 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MD /O2 /Ob2 /D NDEBUG /Zi C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 Linker flags (Release): /machine:x64 /INCREMENTAL:NO /debug Linker flags (Debug): /machine:x64 /debug /INCREMENTAL Precompiled headers: YES

YES OpenCV modules: To be built: cudev core imgproc highgui flann features2d ml objdetect video calib3d ocl bioinspired contrib gpulegacy gpuarithm gpuwarping gpu legacy gpufilters gpuimgproc gpubgsegm gpucodec gpufeatures2d gpuoptflow gpustereo nonfree optim photo softcascade stitching superres ts videostab Disabled: world Disabled by dependency: - Unavailable: androidcamera java python

python Windows RT support: NO

NO GUI: QT: NO Win32 UI: YES OpenGL support: NO

NO Media I/O: ZLib: build (ver 1.2.8) JPEG: build (ver 90) WEBP: build (ver 0.3.1) PNG: build (ver 1.5.12) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1)

1.7.1) Video I/O: Video for Windows: YES DC1394 1.x: NO DC1394 2.x: NO FFMPEG: YES (prebuilt binaries) codec: YES (ver 53.61.100) format: YES (ver 53.32.100) util: YES (ver 51.35.100) swscale: YES (ver 2.1.100) gentoo-style: YES OpenNI: NO OpenNI PrimeSensor Modules: NO PvAPI: NO GigEVisionSDK: NO DirectShow: YES Media Foundation: NO XIMEA: NO

NO Other third-party libraries: Use IPP: NO Use Eigen: NO Use TBB: NO Use OpenMP: NO Use GCD NO Use Concurrency YES Use C=: NO Use Cuda: YES (ver 5.5) Use OpenCL: YES

YES NVIDIA CUDA Use CUFFT: YES Use CUBLAS: NO USE NVCUVID: NO NVIDIA GPU arch: 20 21 NVIDIA PTX archs: Use fast math: NO

NO OpenCL Include path: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v5.5/include libraries: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v5.5/lib/x64/OpenCL.lib Use AMDFFT: NO Use AMDBLAS: NO

NO Python: Interpreter: C:/Python27/python2.7.exe (ver 2.7.2)

2.7.2) Java: ant: NO JNI: C:/Program Files/Java/jdk1.7.0_25/include C:/Program Files/Java/jdk1.7.0_25/include/win32 C:/Program Files/Java/jdk1.7.0_25/include Java tests: NO

NO Documentation: Build Documentation: NO Sphinx: NO PdfLaTeX compiler: NO

NO Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: NO

NO *Install path: C:/Users/matthep/Documents/Code/opencv_64bit/install

C:/Users/matthep/Documents/Code/opencv_64bit/install cvconfig.h is in: C:/Users/matthep/Documents/Code/opencv_64bit*

C:/Users/matthep/Documents/Code/opencv_64bit* ----------------------------------------------------------------- Configuring done Generating done

I </code> **I open the solution in Visual studio. The only setting I change is opening one of the projects, selecting the configuration to effect all projects and turning on multi-processing compilation in C++/General. If I just try building the core I get a range of errors and I'm not sure how to address them. I previously had different errors, but read that you needed to disable the 1.x CUDA_ARCH_BIN versions so now my settings are as follows; CUDA_ARCH_BIN: 2.0 2.1(2.0) CUDA_GENERATION: Fermi

Fermi** <code> Error 1 error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::release(void)" (?release@GpuMat@gpu@cv@@QEAAXXZ) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 2 error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::release(void)" (?release@GpuMat@gpu@cv@@QEAAXXZ) referenced in function "public: __cdecl cv::gpu::GpuMat::~GpuMat(void)" (??1GpuMat@gpu@cv@@QEAA@XZ) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\gpu_cuda_mem.obj opencv_core Error 3 error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::release(void)" (?release@GpuMat@gpu@cv@@QEAAXXZ) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\gpu_mat.obj opencv_core Error 4 error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::release(void)" (?release@GpuMat@gpu@cv@@QEAAXXZ) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\matrix.obj opencv_core Error 5 error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::release(void)" (?release@GpuMat@gpu@cv@@QEAAXXZ) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opengl.obj opencv_core Error 6 error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::create(int,int,int)" (?create@GpuMat@gpu@cv@@QEAAXHHH@Z) referenced in function "void __cdecl `anonymous namespace'::createContinuousImpl<class cv::gpu::gpumat="">(int,int,int,class cv::gpu::GpuMat>(int,int,int,class cv::gpu::GpuMat &)" (??$createContinuousImpl@VGpuMat@gpu@cv@@@?A0xf2a7b0a4@@YAXHHHAEAVGpuMat@gpu@cv@@@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\gpu_mat.obj opencv_core Error 7 error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::create(int,int,int)" (?create@GpuMat@gpu@cv@@QEAAXHHH@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\matrix.obj opencv_core Error 8 error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::create(int,int,int)" (?create@GpuMat@gpu@cv@@QEAAXHHH@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 9 error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::upload(class cv::_InputArray const &)" (?upload@GpuMat@gpu@cv@@QEAAXAEBV_InputArray@3@@Z) referenced in function "public: __cdecl cv::gpu::GpuMat::GpuMat(class cv::_InputArray const &)" (??0GpuMat@gpu@cv@@QEAA@AEBV_InputArray@2@@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 10 error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::download(class cv::_OutputArray const &)const " (?download@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@@Z) referenced in function "public: __cdecl cv::Mat::Mat(class cv::gpu::GpuMat const &)" (??0Mat@cv@@QEAA@AEBVGpuMat@gpu@1@@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 11 error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::copyTo(class cv::_OutputArray const &)const " (?copyTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@@Z) referenced in function "public: class cv::gpu::GpuMat __cdecl cv::gpu::GpuMat::clone(void)const " (?clone@GpuMat@gpu@cv@@QEBA?AV123@XZ) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 12 error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::copyTo(class cv::_OutputArray const &,class cv::_InputArray const &,class cv::gpu::Stream &)const " (?copyTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@AEBV_InputArray@3@AEAVStream@23@@Z) referenced in function "public: void __cdecl cv::gpu::GpuMat::copyTo(class cv::_OutputArray const &,class cv::_InputArray const &)const " (?copyTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@AEBV_InputArray@3@@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 13 error LNK2019: unresolved external symbol "public: class cv::gpu::GpuMat & __cdecl cv::gpu::GpuMat::setTo(class cv::Scalar_<double>,class cv::gpu::Stream &)" (?setTo@GpuMat@gpu@cv@@QEAAAEAV123@V?$Scalar_@N@3@AEAVStream@23@@Z) referenced in function "public: class cv::gpu::GpuMat & __cdecl cv::gpu::GpuMat::setTo(class cv::Scalar_<double>)" (?setTo@GpuMat@gpu@cv@@QEAAAEAV123@V?$Scalar_@N@3@@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 14 error LNK2019: unresolved external symbol "public: class cv::gpu::GpuMat & __cdecl cv::gpu::GpuMat::setTo(class cv::Scalar_<double>,class cv::_InputArray const &,class cv::gpu::Stream &)" (?setTo@GpuMat@gpu@cv@@QEAAAEAV123@V?$Scalar_@N@3@AEBV_InputArray@3@AEAVStream@23@@Z) referenced in function "public: class cv::gpu::GpuMat & __cdecl cv::gpu::GpuMat::setTo(class cv::Scalar_<double>,class cv::_InputArray const &)" (?setTo@GpuMat@gpu@cv@@QEAAAEAV123@V?$Scalar_@N@3@AEBV_InputArray@3@@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 15 error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::convertTo(class cv::_OutputArray const &,int,class cv::gpu::Stream &)const " (?convertTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@HAEAVStream@23@@Z) referenced in function "public: void __cdecl cv::gpu::GpuMat::convertTo(class cv::_OutputArray const &,int)const " (?convertTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@H@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 16 error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::convertTo(class cv::_OutputArray const &,int,double,double,class cv::gpu::Stream &)const " (?convertTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@HNNAEAVStream@23@@Z) referenced in function "public: void __cdecl cv::gpu::GpuMat::convertTo(class cv::_OutputArray const &,int,double,class cv::gpu::Stream &)const " (?convertTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@HNAEAVStream@23@@Z) C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj opencv_core Error 17 error LNK1120: 10 unresolved externals C:\Users\matthep\Documents\Code\opencv_64bit\bin\Debug\opencv_core290d.dll opencv_coreopencv_core

Any help would be appreciated... I'm sure its something stupid and simple. Sincerely, Paul.

Trouble Compiling OpenCV 2.4.6 from source

Hi, I've been at this for a while and can't seem to get OpenCV compiled from source for a 64 bit environment so I need some help. CUDA Toolkit 5.5 is installed (64 bit), along with CMake, and Python (ActiveState).

Video Card: Quadro 3000M (Fermi Arch)

Here is the output from Cmake

Checking for Windows Platform SDK
Checking for Visual Studio 2012
CUDA detected: 5.5
CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21

General configuration for OpenCV 2.9.0 =====================================
  Version control:               2.4.6.1-1718-gfc37df0

  Platform:
    Host:                        Windows 6.1 AMD64
    CMake:                       2.8.11.2
    CMake generator:             Visual Studio 11 Win64
    CMake build tool:            C:/PROGRA~2/MICROS~1.0/Common7/IDE/devenv.com
    MSVC:                        1700

  C/C++:
    Built as dynamic libs?:      YES
    C++ Compiler:                C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe  (ver 17.0.60315.1)
    C++ flags (Release):         /DWIN32 /D_WINDOWS /W4 /GR /EHa  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /wd4251 /MD /O2 /Ob2 /D NDEBUG  /Zi
    C++ flags (Debug):           /DWIN32 /D_WINDOWS /W4 /GR /EHa  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /wd4251 /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 
    C Compiler:                  C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe
    C flags (Release):           /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /MD /O2 /Ob2 /D NDEBUG  /Zi
    C flags (Debug):             /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 
    Linker flags (Release):      /machine:x64   /INCREMENTAL:NO  /debug
    Linker flags (Debug):        /machine:x64   /debug /INCREMENTAL 
    Precompiled headers:         YES

  OpenCV modules:
    To be built:                 cudev core imgproc highgui flann features2d ml objdetect video calib3d ocl bioinspired contrib gpulegacy gpuarithm gpuwarping gpu legacy gpufilters gpuimgproc gpubgsegm gpucodec gpufeatures2d gpuoptflow gpustereo nonfree optim photo softcascade stitching superres ts videostab
    Disabled:                    world
    Disabled by dependency:      -
    Unavailable:                 androidcamera java python

  Windows RT support:            NO

  GUI: 
    QT:                          NO
    Win32 UI:                    YES
    OpenGL support:              NO

  Media I/O: 
    ZLib:                        build (ver 1.2.8)
    JPEG:                        build (ver 90)
    WEBP:                        build (ver 0.3.1)
    PNG:                         build (ver 1.5.12)
    TIFF:                        build (ver 42 - 4.0.2)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     build (ver 1.7.1)

  Video I/O:
    Video for Windows:           YES
    DC1394 1.x:                  NO
    DC1394 2.x:                  NO
    FFMPEG:                      YES (prebuilt binaries)
      codec:                     YES (ver 53.61.100)
      format:                    YES (ver 53.32.100)
      util:                      YES (ver 51.35.100)
      swscale:                   YES (ver 2.1.100)
      gentoo-style:              YES
    OpenNI:                      NO
    OpenNI PrimeSensor Modules:  NO
    PvAPI:                       NO
    GigEVisionSDK:               NO
    DirectShow:                  YES
    Media Foundation:            NO
    XIMEA:                       NO

  Other third-party libraries:
    Use IPP:                     NO
    Use Eigen:                   NO
    Use TBB:                     NO
    Use OpenMP:                  NO
    Use GCD                      NO
    Use Concurrency              YES
    Use C=:                      NO
    Use Cuda:                    YES (ver 5.5)
    Use OpenCL:                  YES

  NVIDIA CUDA
    Use CUFFT:                   YES
    Use CUBLAS:                  NO
    USE NVCUVID:                 NO
    NVIDIA GPU arch:             20 21
    NVIDIA PTX archs:
    Use fast math:               NO

  OpenCL
    Include path:                C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v5.5/include
    libraries:                   C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v5.5/lib/x64/OpenCL.lib
    Use AMDFFT:                  NO
    Use AMDBLAS:                 NO

  Python:
    Interpreter:                 C:/Python27/python2.7.exe (ver 2.7.2)

  Java:
    ant:                         NO
    JNI:                         C:/Program Files/Java/jdk1.7.0_25/include C:/Program Files/Java/jdk1.7.0_25/include/win32 C:/Program Files/Java/jdk1.7.0_25/include
    Java tests:                  NO

  Documentation:
    Build Documentation:         NO
    Sphinx:                      NO
    PdfLaTeX compiler:           NO

  Tests and samples:
    Tests:                       YES
    Performance tests:           YES
    C/C++ Examples:              NO

  *Install path:                  C:/Users/matthep/Documents/Code/opencv_64bit/install
  cvconfig.h is in:              C:/Users/matthep/Documents/Code/opencv_64bit*
-----------------------------------------------------------------

Configuring done
Generating done
</code>

**I open the solution in Visual studio. The only setting I change is opening one of the projects, selecting the configuration to effect all projects and turning on multi-processing compilation in C++/General. C++/General.

If I just try building the core I get a range of errors and I'm not sure how to address them. I previously had different errors, but read that you needed to disable the 1.x CUDA_ARCH_BIN versions so now my settings are as follows; follows;

CUDA_ARCH_BIN: 2.0 2.1(2.0)
CUDA_GENERATION: Fermi**


<code>
Error   1   error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::release(void)" (?release@GpuMat@gpu@cv@@QEAAXXZ)   C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj   opencv_core
Error   2   error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::release(void)" (?release@GpuMat@gpu@cv@@QEAAXXZ) referenced in function "public: __cdecl cv::gpu::GpuMat::~GpuMat(void)" (??1GpuMat@gpu@cv@@QEAA@XZ)   C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\gpu_cuda_mem.obj  opencv_core
Error   3   error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::release(void)" (?release@GpuMat@gpu@cv@@QEAAXXZ)   C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\gpu_mat.obj   opencv_core
Error   4   error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::release(void)" (?release@GpuMat@gpu@cv@@QEAAXXZ)   C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\matrix.obj    opencv_core
Error   5   error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::release(void)" (?release@GpuMat@gpu@cv@@QEAAXXZ)   C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opengl.obj    opencv_core
Error   6   error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::create(int,int,int)" (?create@GpuMat@gpu@cv@@QEAAXHHH@Z) referenced in function "void __cdecl `anonymous namespace'::createContinuousImpl<class cv::gpu::GpuMat>(int,int,int,class cv::gpu::GpuMat &)" (??$createContinuousImpl@VGpuMat@gpu@cv@@@?A0xf2a7b0a4@@YAXHHHAEAVGpuMat@gpu@cv@@@Z)    C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\gpu_mat.obj   opencv_core
Error   7   error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::create(int,int,int)" (?create@GpuMat@gpu@cv@@QEAAXHHH@Z)   C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\matrix.obj    opencv_core
Error   8   error LNK2001: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::create(int,int,int)" (?create@GpuMat@gpu@cv@@QEAAXHHH@Z)   C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj   opencv_core
Error   9   error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::upload(class cv::_InputArray const &)" (?upload@GpuMat@gpu@cv@@QEAAXAEBV_InputArray@3@@Z) referenced in function "public: __cdecl cv::gpu::GpuMat::GpuMat(class cv::_InputArray const &)" (??0GpuMat@gpu@cv@@QEAA@AEBV_InputArray@2@@Z)    C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj   opencv_core
Error   10  error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::download(class cv::_OutputArray const &)const " (?download@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@@Z) referenced in function "public: __cdecl cv::Mat::Mat(class cv::gpu::GpuMat const &)" (??0Mat@cv@@QEAA@AEBVGpuMat@gpu@1@@Z)   C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj   opencv_core
Error   11  error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::copyTo(class cv::_OutputArray const &)const " (?copyTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@@Z) referenced in function "public: class cv::gpu::GpuMat __cdecl cv::gpu::GpuMat::clone(void)const " (?clone@GpuMat@gpu@cv@@QEBA?AV123@XZ)  C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj   opencv_core
Error   12  error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::copyTo(class cv::_OutputArray const &,class cv::_InputArray const &,class cv::gpu::Stream &)const " (?copyTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@AEBV_InputArray@3@AEAVStream@23@@Z) referenced in function "public: void __cdecl cv::gpu::GpuMat::copyTo(class cv::_OutputArray const &,class cv::_InputArray const &)const " (?copyTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@AEBV_InputArray@3@@Z)    C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj   opencv_core
Error   13  error LNK2019: unresolved external symbol "public: class cv::gpu::GpuMat & __cdecl cv::gpu::GpuMat::setTo(class cv::Scalar_<double>,class cv::gpu::Stream &)" (?setTo@GpuMat@gpu@cv@@QEAAAEAV123@V?$Scalar_@N@3@AEAVStream@23@@Z) referenced in function "public: class cv::gpu::GpuMat & __cdecl cv::gpu::GpuMat::setTo(class cv::Scalar_<double>)" (?setTo@GpuMat@gpu@cv@@QEAAAEAV123@V?$Scalar_@N@3@@Z)  C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj   opencv_core
Error   14  error LNK2019: unresolved external symbol "public: class cv::gpu::GpuMat & __cdecl cv::gpu::GpuMat::setTo(class cv::Scalar_<double>,class cv::_InputArray const &,class cv::gpu::Stream &)" (?setTo@GpuMat@gpu@cv@@QEAAAEAV123@V?$Scalar_@N@3@AEBV_InputArray@3@AEAVStream@23@@Z) referenced in function "public: class cv::gpu::GpuMat & __cdecl cv::gpu::GpuMat::setTo(class cv::Scalar_<double>,class cv::_InputArray const &)" (?setTo@GpuMat@gpu@cv@@QEAAAEAV123@V?$Scalar_@N@3@AEBV_InputArray@3@@Z)  C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj   opencv_core
Error   15  error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::convertTo(class cv::_OutputArray const &,int,class cv::gpu::Stream &)const " (?convertTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@HAEAVStream@23@@Z) referenced in function "public: void __cdecl cv::gpu::GpuMat::convertTo(class cv::_OutputArray const &,int)const " (?convertTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@H@Z)  C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj   opencv_core
Error   16  error LNK2019: unresolved external symbol "public: void __cdecl cv::gpu::GpuMat::convertTo(class cv::_OutputArray const &,int,double,double,class cv::gpu::Stream &)const " (?convertTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@HNNAEAVStream@23@@Z) referenced in function "public: void __cdecl cv::gpu::GpuMat::convertTo(class cv::_OutputArray const &,int,double,class cv::gpu::Stream &)const " (?convertTo@GpuMat@gpu@cv@@QEBAXAEBV_OutputArray@3@HNAEAVStream@23@@Z)    C:\Users\matthep\Documents\Code\opencv_64bit\modules\core\opencv_core_pch.obj   opencv_core
Error   17  error LNK1120: 10 unresolved externals  C:\Users\matthep\Documents\Code\opencv_64bit\bin\Debug\opencv_core290d.dll  opencv_core

Any help would be appreciated... appreciated... I'm sure its something stupid and simple. simple.

Sincerely, Paul.