Cannot Compile OpenCV 2.4.5 with VS 2013 RTM

后端 未结 3 1597
长发绾君心
长发绾君心 2021-01-06 02:12

Has anyone had any luck compiling openCV with VS 2013 RTM? I have tried and get a bunch of "min doesn\'t belong to namespace std" "max doesn\'t belong to name

3条回答
  •  温柔的废话
    2021-01-06 02:34

    I've managed to compile OpenCV 2.4.6 on VS2013 RC, but initially it had the same errors as in question. I've opened VS solution and fixed all error in two steps:

    1) Replaced (Ctrl+H)

    #include \ 
    

    to

    #include \n#include 
    

    in entire solution (be sure to enable RegExp in replace dialog)

    2) In "modules/opencv_features2d/Src/features2d_init.cpp" changed line 184 to:

    obj.info()->addParam(obj, "detector", (Ptr&) obj.detector);
    

    (search for "GridAdaptedFeatureDetector" in this file for other OpenCV versions)

提交回复
热议问题