I am trying to run some code using Visual Studios 2013, OpenCV 2.4.9 and Qt 5.4 on an x64 Windows 7 Desktop computer. The code runs fine when I set the solution platform to Win32. However, in order for me to continue this project, I need to next implement Microsoft´s Magnification API which has be run on my computer´s native OS type because of some bug they haven´t resolved. But when I configure all the settings to run on x64, I get the following error:
1>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl INTRAFACE::FaceAlignment::FaceAlignment(char const *,char const *,class INTRAFACE::XXDescriptor const *,class cv::Rect_<double> const &)" (__imp_??0FaceAlignment@INTRAFACE@@QEAA@PEBD0PEBVXXDescriptor@1@AEBV?$Rect_@N@cv@@@Z) referenced in function "private: void __cdecl MainWindow::detect(class cv::VideoCapture,bool)" (?detect@MainWindow@@AEAAXVVideoCapture@cv@@_N@Z)
1>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: enum INTRAFACE::IFRESULT __cdecl INTRAFACE::FaceAlignment::Track(class cv::Mat const &,class cv::Mat const &,class cv::Mat &,float &)" (__imp_?Track@FaceAlignment@INTRAFACE@@QEAA?AW4IFRESULT@2@AEBVMat@cv@@0AEAV45@AEAM@Z) referenced in function "private: void __cdecl MainWindow::detect(class cv::VideoCapture,bool)" (?detect@MainWindow@@AEAAXVVideoCapture@cv@@_N@Z)
1>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: enum INTRAFACE::IFRESULT __cdecl INTRAFACE::FaceAlignment::Detect(class cv::Mat const &,class cv::Rect_<int> const &,class cv::Mat &,float &)" (__imp_?Detect@FaceAlignment@INTRAFACE@@QEAA?AW4IFRESULT@2@AEBVMat@cv@@AEBV?$Rect_@H@5@AEAV45@AEAM@Z) referenced in function "private: void __cdecl MainWindow::detect(class cv::VideoCapture,bool)" (?detect@MainWindow@@AEAAXVVideoCapture@cv@@_N@Z)
1>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: enum INTRAFACE::IFRESULT __cdecl INTRAFACE::FaceAlignment::EstimateHeadPose(class cv::Mat const &,struct INTRAFACE::HeadPose &)" (__imp_?EstimateHeadPose@FaceAlignment@INTRAFACE@@QEAA?AW4IFRESULT@2@AEBVMat@cv@@AEAUHeadPose@2@@Z) referenced in function "private: void __cdecl MainWindow::detect(class cv::VideoCapture,bool)" (?detect@MainWindow@@AEAAXVVideoCapture@cv@@_N@Z)
1>mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl INTRAFACE::FaceAlignment::~FaceAlignment(void)" (__imp_??1FaceAlignment@INTRAFACE@@QEAA@XZ) referenced in function "private: void __cdecl MainWindow::detect(class cv::VideoCapture,bool)" (?detect@MainWindow@@AEAAXVVideoCapture@cv@@_N@Z)
1>Q:\eyegaze\x64\Release\\EyeGazeDemo.exe : fatal error LNK1120: 5 unresolved externals
INTRAFACE::FaceAlignment comes from an Intraface library (which is x86) Is this whats causing the problem? If so, how can I go about fixing this?
Thanks!