Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ALL_BUILD error when building OpenCV from source

Hello all

I am trying to build the latest OpenCV which i downloaded from Github with Visual Studio 2013 on a Windows 7 64-bit machine using cmake GUI.The build options i am using are;

  • WITH_CUDA: ON
  • WITH_OPENCL: OFF
  • WITH_TBB: ON
  • CUDA_ARCH_BIN: 6.1 (MY CARD IS A GTX 1070)
  • CUDA_ARCH_PTX: 6.1

the rest is on default.When i right click ALL_BUILD and wait for it to finish i get the following output;

image description

How can i resolve this issue? Any help is much appreciated :)

ALL_BUILD error when building OpenCV from source

Hello all

I am trying to build the latest OpenCV which i downloaded from Github with Visual Studio 2013 on a Windows 7 64-bit machine using cmake GUI.The build options i am using are;

  • WITH_CUDA: ON
  • WITH_OPENCL: OFF
  • WITH_TBB: ON
  • CUDA_ARCH_BIN: 6.1 (MY CARD IS A GTX 1070)
  • CUDA_ARCH_PTX: 6.1

the rest is on default.When i right click ALL_BUILD and wait for it to finish i get the following output;

image description

  • C:\Users\can\Desktop\training\opencv-master\modules\dnn\src\torch\THDiskFile.cpp(330): error C2065: 'int32_t' : undeclared identifier
  • C:\Users\can\Desktop\training\opencv-master\modules\dnn\src\torch\THDiskFile.cpp(330): error C2065: 'buffer' : undeclared identifier
  • C:\Users\can\Desktop\training\opencv-master\modules\dnn\src\torch\THDiskFile.cpp(330): error C2059: syntax error : ')'
  • C:\Users\can\Desktop\training\opencv-master\modules\dnn\src\torch\THDiskFile.cpp(331): error C2065: 'buffer' : undeclared identifier
  • C:\Users\can\Desktop\training\opencv-master\modules\dnn\src\torch\THDiskFile.cpp(333): error C2065: 'buffer' : undeclared identifier
  • C:\Users\can\Desktop\training\opencv-master\modules\dnn\src\torch\THDiskFile.cpp(336): error C2065: 'buffer' : undeclared identifier
  • C:\Users\can\Desktop\training\opencv-master\modules\dnn\src\torch\THDiskFile.cpp(337): error C2065: 'buffer' : undeclared identifier
  • LINK : fatal error LNK1104: cannot open file '....\lib\Debug\opencv_dnn330d.lib'
  • LINK : fatal error LNK1104: cannot open file '....\lib\Debug\opencv_dnn330d.lib'

How can i resolve this issue? Any help is much appreciated :)