Very simple application fails with “multiple target patterns” from Eclipse

前端 未结 9 932
-上瘾入骨i
-上瘾入骨i 2020-12-01 21:33

Since I\'m more comfortable using Eclipse, I thought I\'d try converting my project from Visual Studio. Yesterday I tried a very simple little test. No matter what I try,

9条回答
  •  遥遥无期
    2020-12-01 22:19

    The error "multiple target patterns. Stop." will occur because src/Window.d have the paths generated by compiler in windows platform as:

    C:/Program\ Files/OpenCV/cv/include/cv.h \ C:/Program\ Files/OpenCV/cxcore/include/cxcore.h \ C:/Program\ Files/OpenCV/cxcore/include/cxtypes.h \ C:/Program\ Files/OpenCV/cxcore/include/cxerror.h \

    If you import this project into Eclipse in Linux platform, I would recommend you to give a clean build so that next build generates the path in Linux format as:

    /home/user/OpenCV/cv/include/cv.h \ /home/user/OpenCV/cxcore/include/cxcore.h \ /home/user/OpenCV/cxcore/include/cxtypes.h \ /home/user/OpenCV/cxcore/include/cxerror.h \

    The same is applicable, if you are using cygwin. The path format in cygwin is linux like format /cygdrive/c/ instead of C:/

提交回复
热议问题