error LNK2019 in visual studio
HI, I'm new in VS2015 and in Opencv_contrib. I'm trying to make a face recognition program using the cv::face::FaceRecognizer. In fase of compilation it gives me the following error:
1>FaceRecognition.obj : error LNK2019: unresolved external symbol "public: int __cdecl cv::face::FaceRecognizer::predict(class cv::_InputArray const &)const " (?predict@FaceRecognizer@face@cv@@QEBAHAEBV_InputArray@3@@Z) unresolved in function main 1>FaceRecognition.obj : error LNK2019: unresolved external symbol "struct cv::Ptr<class cv::face::basicfacerecognizer=""> __cdecl cv::face::createEigenFaceRecognizer(int,double)" (?createEigenFaceRecognizer@face@cv@@YA?AU?$Ptr@VBasicFaceRecognizer@face@cv@@@2@HN@Z) unresolved in funciont main
I know there is a problem this the linker and probably I fortgot to include some file.lib but I do not know which. Please, someone can help me?
probably opencv_face310.lib
It dosen't work. In the folder of opencv_contrib there isn't any file.lib. It's possible?
how do you build opencv?
I downloaded the opencv_contrib.zip and unpack it. Is not the correct way?
and have you build opencv_contrib using this
I try but cmake give me an error:
The C compiler identification is unknown The CXX compiler identification is unknown CMake Error in CMakeLists.txt: No CMAKE_C_COMPILER could be found.
CMake Error in CMakeLists.txt: No CMAKE_CXX_COMPILER could be found.
CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as
should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it.
Configuring incomplete, errors occurred! See also "C:/Users/elisa/Documents/opencv/build/include/opencv2/CMakeFiles/CMakeOutput.log". See also "C:/Users/elisa/Documents/opencv/build/include/opencv2/CMakeFiles/CMakeError.log".
Don't forget to delete CMakeCache.txt and don't use VS 2015 generator use VS 14 2015 win 64. With Cmake 3.7.0-rc2 it should work
Ok! Thank you very much!!