OpenCV with project CLR
I created project CLR (Visual Studio 2017) with all forms and elements. On the Internet, I found the settings for the OpenCV installation, but as a result, when connecting the library #include <opencv cv.h=""> a different list of errors is issued. I added path to the system settings and connected all the directories / libraries in the settings of a particular project. I tried different versions of OpenCV (3.4.3, 2.4.13.6, 3.4.2). Then added library at the c++ project. But the result was similar. I tried change x86 to x64, but no result. I apply all the screenshots of the code, settings and errors. Here on this video the developer explicitly uses the clr project, how did he do it? https://www.youtube.com/watch?v=yg_zO...</opencv>
I will be grateful for the help! It is very necessary to deal with the problem. Thx!
i removed your screenshots, they are all useless here.
(they can't be indexed, ppl cannot quote you, you're stealing other folks bandwith, etc.)
please edit your question again, and add a text version, describing your problem instead, thank you.
and if you want my 2ct: both using opencv's deprecated c-api and clr/cli is a terrible idea. (opencv uses a c++ RAII model, while clr is gc-based, those things do not fit together at all.)
also: https://github.com/opencv/opencv/issu...
ok, I did it
But here on this video the developer explicitly uses the clr project, how did he do it? https://www.youtube.com/watch?v=yg_zO...
btw, you don't need the
opencv_ts
lib, this is only for unit tests.but that will still leave you with the mutex / c++11 problems
can there be a problem in the VS version? on the video example in the 2015 version
i've no idea, what it is exactly, but you'll for sure run into trouble using a modern opencv / VS version.
imho the only "proper" way to do this is: seperate your opencv code from the CLR one. put it into seperate translation units / files, maybe even into a dll. see, that your interfaces to this do NOT use anything from opencv
https://www.youtube.com/watch?v=LIlUI... Here is another example of using opencv in cli, but the code does not show.
I also found such an example solution using clr, but because of the VS versions it does not work. I will install 2015 https://drthitirat.wordpress.com/2013...
" but the code does not show. " -- yea youtube videos are a waste of time (imho)
and the blogpost is from 2013, using vs2010 and the DEAD c-api -- bad idea, too.
May be you use cmake with CLR now