0
我是C++和VS2010的新手......我需要一些幫助! 我下載了一個開放源代碼「視覺控制」,它使用openCV做了一些人臉檢測...... 我試圖在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(「Recognizer is not trained」,「Recognizer is not trained or .... – user2274358
您可能需要添加一些外部依賴項。Properties> Config> Linker> Input> Additional Dependencies,然後選擇需要ddls ... –