Opencv in Visual studio 2017
If you want to VC141 libs you need to build by CMAKE and Visual studio 2017 like in my older tutorial.. Same approach but switch visual studio version..
Build opencv for new version of Visual Studio in cmake
Opencv visual studio 2017 and older toolset
The best approach is set the toolset in Visual studio project to V140 and use a prebuild version of opencv libs for VS 2015 or use Nuget packages in simple 2 minutes installation also for version 2015 and enjoy coding in Visual studio 2017 until somebody solves and builds the libs in VS 2017.
Follow and enjoy coding. Build own opencv is necessary in case using the embedded and specific HW. In case of coding on windows its better to wait for prebuild libs than install CMake on windows machine..
Opencv Visual studio 2017 Step by step image tutorial
Opencv nuget package console Visual studio 2017
Previous step are really simple. Just openc empty project in C++ and add one source file source.cpp.. There is no magic and nothing to block you to start coding.. Just follow the pictures and let me know if any problems occurred.
Add some program, for example this for capture video from web camera.. If you try to build and link.. You will failed with no resolve dependency.. Now is the time to add. Opencv library.. Nuget is the simplest option..
Now open the Nuget packages console TOOLS-NUGET Package Manager and Package Manager console.. Do not afraid of console..
In console just write PM> Install-Package opencvdefault
ONLY part start with Install.. and wait until your includes in visual studio is resolved and we see that the packages are successfully installed. We are not finished!!
Now, if you try to build and link you will have trouble with linking.. Right click to Project name Opencv and go to general settings and change platform support to v140 to 2015.. If you do not have this V140 you need to install something like compatibility pack.. platform toolchain for VS140..