0
저는 C++과 VS2010을 처음 사용합니다 ... 도움이 필요합니다! openCV를 사용하여 일부 얼굴 탐지를 수행하는 "visual-control"오픈 소스 코드를 다운로드했습니다 ... Visual Studio 2010에서 프로젝트를 실행하려고하는데 지침을 따르고 있습니다 (라이브러리 포함) .... 이후 QT, TBB, openCV, cMake 설치 ...)를 설치했지만 여전히 다음과 같은 오류가 발생합니다.VS10의 C++ facedetection 오류
도움을 주시면 감사하겠습니다!
"'Moc'ing visualcontrol.h...
1> Moc'ing webcamwidget.h...
1>ClCompile:
1> detailedfacedetector.cpp
1> facedetector.cpp
1> eigenfacerecognizer.cpp
1> trainerimage.cpp
1> logger.cpp
1> main.cpp
1> moc_visualcontrol.cpp
1> moc_webcamwidget.cpp
1> framecapture.cpp
1> detector.cpp
1> visualcontrol.cpp
1> webcamwidget.cpp
1> Generating Code...
1> qrc_visualcontrol.cpp
1>logger.obj : warning LNK4217: locally defined symbol [email protected]@[email protected] (public: __thiscall QString::~QString(void)) imported in function "public: void __thiscall Logger::log (class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" ([email protected]@@[email protected][email protected]@[email protected]@V? [email protected]@[email protected]@[email protected]@@Z)
1>visualcontrol.obj : warning LNK4049: locally defined symbol [email protected]@[email protected] (public: __thiscall QString::~QString(void)) imported
1>webcamwidget.obj : warning LNK4049: locally defined symbol
........... .. . . . . .. . .
1>webcamwidget.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QString & __thiscall QString::setNum(float,char,int)" (__imp_? [email protected]@@[email protected]@Z) referenced in function "protected: virtual void __thiscall gui::WebcamWidget::paintEvent(class QPaintEvent *)" (? [email protected]@[email protected]@[email protected]@@Z)
1>webcamwidget.obj : error LNK2019: unresolved external symbol "__declspec (dllimport) public: class QString & __this'"
ummm ... 당신이 그것을하지 않고, 정확한 답변을 드릴 수 없습니까? –
코드에 구문 오류가 없습니다. https : //에서 다운로드 할 수 있습니다. code.google.com/p/visual-control/downloads/detail?name=visual-control.zip&can=2&q= 어쨌든 여기 visualcontrol.cpp 클래스의 일부 행이 있습니다. cv :: Mat frame; cognition :: Detector :: RectVector faces; faceDetector-> loadCascade (DetailedFaceDetector :: EYES, "haarcascades/haarcascade_eye.xml"); QMessageBox :: information ("인식기가 훈련되지 않았습니다", "인식기가 훈련되지 않았거나 .... – user2274358
외부 종속성을 추가해야 할 수도 있습니다. 속성> 구성> 링커> 입력> 추가 종속성을 선택하고 필요한 ddls ... –