Microsoft Visual Studio 2015 (VC14) Vision works Installation : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'

Hi,

I have followed the steps mentioned below to build the samples provided under the vision works folder.

  1. Copied the Samples folder to writeable location

  1. Edited the nmake file as follows

Dependency locations

CUDA_DIR = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0
OPENCV_DIR = C:\Library\Opencv\opencv\build
OPENCV_VERSION = 2413
VISIONWORKS_DIR = C:\Program Files\NVIDIA VisionWorks

Debug build?

dbg = 2


  1. Opened the Developer Command Prompt for VS2015

  1. Ran the nmake command

I face the following issues

obj\debug\main_feature_tracker.obj : fatal error LNK1112: module machine type ‘X86’ conflicts with target machine type ‘x64’
NMAKE : fatal error U1077: ‘“C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.EXE”’ : return code ‘0x2’
Stop.

on running dumpbin.exe on the generated .lib file, I observe that they are x86.


Also I observe that the DLLs for opencv are getting copied from C:\Library\Opencv\opencv\build\x64\vc12\bin\opencv_nonfree2413d.dll
VC12 (VS2013) versions
But i would like it to get built against vc14 libraries


Requesting you to please suggest ways to overcome these 2 issues

Regards
Ajay