I have this strange error in Qt: LNK1104: cannot open file 'C:\OpenCV246PC\build\x86\vc10\lib.obj'
Settings in Qt are all the same as in VS2010 (where they work fine), but here Qt is complain about the file it can't find even that I see no obvious reference to x86 libraries at all!
Here are my *.pro settings:
#-------------------------------------------------
#
# Project created by QtCreator 2013-07-12T14:50:04
#
#-------------------------------------------------
QT += core
QT -= gui
TARGET = myQtConsoleProject
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
INCLUDEPATH += C:\OpenCV246PC\build\include
LIBS += -LC:\OpenCV246PC\build\x86\vc10\lib \
-lopencv_core246d \
-lopencv_highgui246d \
-lopencv_imgproc246d \
-lopencv_features2d246d \
-lopencv_calib3d246d
And this is simple code I am trying to compile
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
int main ()
{
// read an image
cv::Mat image = cv::imread("img.jpg");
// create image window named "My Image"
cv::namedWindow("My Image");
// show the image window
cv::imshow("My Image", image);
// wait key for 5000 ms
cv::waitKey(5000);
return 1;
}