opencv webcam

i cant find where the program is targeting X86 systems
error:
1
2
  opencv_world300d.lib(opencv_world300d.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <iostream>
#include <string>
#include <opencv\highgui.h>
#include <opencv2/opencv.hpp>

using namespace std;
using namespace cv;

const int FRAME_WIDTH = 640;
const int FRAME_HEIGHT = 480;
int H_MIN = 0;
int H_MAX = 256;
int S_MIN = 0;
int S_MAX = 256;
int V_MIN = 0;
int V_MAX = 256;
const string windowName = "WebCam";

int main(int argc, char* argv[])
{
	Mat cameraFeed;
	int x = 0, y = 0;
	VideoCapture capture;
	capture.open(0);
	capture.set(CV_CAP_PROP_FRAME_WIDTH, FRAME_WIDTH);
	capture.set(CV_CAP_PROP_FRAME_HEIGHT, FRAME_HEIGHT);
	while (1)
	{ 
		imshow(windowName, cameraFeed);
		waitKey(30);
	}
	return 0;
}
Program is not targetting (ad cannot target) anything. You have a mismatch in linking options/library versions. http://msdn.microsoft.com/en-US/library/21ksa10x.aspx

I suppose you are either linking wrong library module or messes up compilation setings.
ok i set it up with 64 bit now but it says that the opencv_world300d.dll is missing
Topic archived. No new replies allowed.