0

I'm using OpenCV 3.1.0 with CUDA enabled and Windows 10 Home editon. I try to compile the code from this link using Microsoft Visual Studio 14 (2015). That link uses this command:

g++ testgpu.cpp -o test pkg-config --cflags --libs opencv -lopencv_gpu (OS Ubuntu).

My question is where paramaters (pkg-config, cflags, etc) should go in Visual Studio? How to set them in Ms. Visual Studio 2015?

Any help will be appreciated. Thanks

donto
  • 141
  • 1
  • 12
  • Related: https://stackoverflow.com/questions/20416956/what-is-the-significance-of-pkg-config-in-gcc – πάντα ῥεῖ Feb 24 '19 at 11:12
  • That link asks the meaning of the parameters, while I am asking about where to putting those parameters in VS 2015 – donto Feb 24 '19 at 11:15
  • In short: `pkg-config` isn't a g++ parameter, but a tool by it's own. It resolves library dependencies that are needed for a particular package. – πάντα ῥεῖ Feb 24 '19 at 11:17
  • Start to searching pkg-config for Windows, found this (https://stackoverflow.com/questions/1710922/how-to-install-pkg-config-in-windows). Then, how to use it altogether with Ms. Visual Studio 2015? – donto Feb 24 '19 at 11:23
  • I am afraid it would be hard to integrate with a standard MS Visual Studio toolchain. – πάντα ῥεῖ Feb 24 '19 at 11:25
  • So, how to accomplish the aforementioned command in VS2015? How to compile code in this link (https://stackoverflow.com/questions/19368244/compiling-error-cvgpu) in VS2015? – donto Feb 24 '19 at 13:06

0 Answers0