Release version (x64) of darknet_no_gpu can be built successfully. I compared all Options of configuration properties window between the release and debug. All looks normal to me.
All errors from lines 58 and 448 of cvdef.h Any quick suggestion on this?? Thanks,
#if (defined(_MSC_VER) && (defined(DEBUG) || defined(_DEBUG))) || \
(defined(_GLIBCXX_DEBUG) || defined(_GLIBCXX_DEBUG_PEDANTIC))
// Guard to prevent using of binary incompatible binaries / runtimes
// https://github.com/opencv/opencv/pull/9161
namespace cv { namespace debug_build_guard { } using namespace debug_build_guard; }

Try to build it without OpenCV. Just remove OPENCV; from definitions for x64 & Debug.
\darknet_no_gpu.sln -> (right click on project) -> properties -> C/C++ -> Preprocessor -> Preprocessor Definitions, and remove this: OPENCV;
This is an OpenCV issue. OpenCV no longer supports C-API. I will replace C-API with C++-API later.
@AlexeyAB
I am curious why the debug version of darknet with CUDA could be built successfully.
Do you mean that you are going to replace C-API with C++ -API for all OpenCV APIs in Darknet?
Thanks,
Do you mean that you are going to replace C-API with C++ -API for all OpenCV APIs in Darknet?
Yes.
@AlexeyAB
One extended question on OpenCV APIs. There are a number of GitHub repos, which implements YOLO by Python and some other deep-learning frameworks such as TensorFlow and Caffe. I wonder if those YOLOs are a good code-base (easy to debug and convenient OpenCV APIs ?) for the development of the real-time (with video) object detection application. Thanks in advance for any ideas and thoughts on this discussion.
@WeiZRPW
It is a good idea to use TensorRT or Darknet with real-time object detection application.
All other frameworks require skills: C++ + Python/Lua/...
There is simple C in this repository, you can build it as SO/DLL library, or you can just add C-files (with entire Yolo v3 inference) to your C-project:
Most helpful comment
Try to build it without OpenCV. Just remove
OPENCV;from definitions for x64 & Debug.\darknet_no_gpu.sln-> (right click on project) -> properties -> C/C++ -> Preprocessor -> Preprocessor Definitions, and remove this:OPENCV;This is an OpenCV issue. OpenCV no longer supports C-API. I will replace C-API with C++-API later.