Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

oh my, so cmake got both runtime and arch wrong. (x64 does not even exist)

i don't think, it's your fault, it all looks quite correct.

it's probably easier, to setup some "template" project manually now, and re-use that later, than fighting cmake.

  • create an empty project.
  • add C:\OpenCV34\opencv\build\include to "additional include dirs" (compiler)
  • add C:\OpenCV34\opencv\build\x64\vc15 to "additional library dirs" (linker)
  • add opencv_world.lib to "additional libraries" (linker, idk, how it's called exactly) for RELEASE
  • add opencv_worldd.lib to "additional libraries" (linker) for DEBUG
  • add your cpp file to the project

oh my, so cmake got both runtime and arch wrong. (x64 (x86 does not even exist)exist, no more 32bit prebuilt libs)

i don't think, it's your fault, it all looks quite correct.

it's probably easier, to setup some "template" project manually now, and re-use that later, than fighting cmake.

  • create an empty project.
  • add C:\OpenCV34\opencv\build\include to "additional include dirs" (compiler)
  • add C:\OpenCV34\opencv\build\x64\vc15 to "additional library dirs" (linker)
  • add opencv_world.lib to "additional libraries" (linker, idk, how it's called exactly) for RELEASE
  • add opencv_worldd.lib to "additional libraries" (linker) for DEBUG
  • add your cpp file to the project

oh my, so cmake got both runtime and arch wrong. (x86 does not even exist, no more 32bit prebuilt libs)

i don't think, it's your fault, it all looks quite correct.

it's probably easier, to setup some "template" project manually now, and re-use that later, than fighting cmake.

  • create an empty project.
  • add C:\OpenCV34\opencv\build\include to "additional include dirs" (compiler)
  • add C:\OpenCV34\opencv\build\x64\vc15C:\OpenCV34\opencv\build\x64\vc15\lib to "additional library dirs" (linker)
  • add opencv_world.lib to "additional libraries" (linker, idk, how it's called exactly) for RELEASE
  • add opencv_worldd.lib to "additional libraries" (linker) for DEBUG
  • add your cpp file to the project
  • you also need to expand the PATH with C:\OpenCV34\opencv\build\x64\vc15\bin, so your exe can find the opencv_world.dll later