Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dest_align build error #6

Closed
AnaZou opened this issue Aug 12, 2016 · 6 comments
Closed

dest_align build error #6

AnaZou opened this issue Aug 12, 2016 · 6 comments

Comments

@AnaZou
Copy link

AnaZou commented Aug 12, 2016

Hello,i have download your src code,and i follow your inductions。First,use cmake to build;After that i build it on vs2013,but i have come a problem with dest_align。It show the LNK2001 with dest.lib,how can i solve the problem

@cheind
Copy link
Owner

cheind commented Aug 12, 2016

Hi, could you please post the full error log. The error you got means that dest itself didn't build, so dest_align cannot link it.

@AnaZou
Copy link
Author

AnaZou commented Aug 15, 2016

The follows is the full error log.
1>dest_align.obj : error LNK2019: 无法解析的外部符号 "void __cdecl cv::fastFree(void *)" (?fastFree@cv@@YAXPEAX@Z),该符号在函数 "public: __cdecl cv::Mat::~Mat(void)" (??1Mat@cv@@qeaa@XZ) 中被引用
1>dest.lib(draw.obj) : error LNK2001: 无法解析的外部符号 "void __cdecl cv::fastFree(void *)" (?fastFree@cv@@YAXPEAX@Z)
1>dest.lib(face_detector.obj) : error LNK2001: 无法解析的外部符号 "void __cdecl cv::fastFree(void *)" (?fastFree@cv@@YAXPEAX@Z)
1>dest_align.obj : error LNK2019: 无法解析的外部符号 "private: char * __cdecl cv::String::allocate(unsigned __int64)" (?allocate@String@cv@@AEAAPEAD_K@Z),该符号在函数 "public: __cdecl cv::String::String(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (??0String@cv@@qeaa@AEBV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@@z) 中被引用
1>dest.lib(draw.obj) : error LNK2001: 无法解析的外部符号 "private: char * __cdecl cv::String::allocate(unsigned __int64)" (?allocate@String@cv@@AEAAPEAD_K@Z)
1>dest.lib(face_detector.obj) : error LNK2001: 无法解析的外部符号 "private: char * __cdecl cv::String::allocate(unsigned __int64)" (?allocate@String@cv@@AEAAPEAD_K@Z)
1>dest_align.obj : error LNK2019: 无法解析的外部符号 "private: void __cdecl cv::String::deallocate(void)" (?deallocate@String@cv@@AEAAXXZ),该符号在函数 "public: __cdecl cv::String::~String(void)" (??1String@cv@@qeaa@XZ) 中被引用
1>dest.lib(draw.obj) : error LNK2001: 无法解析的外部符号 "private: void __cdecl cv::String::deallocate(void)" (?deallocate@String@cv@@AEAAXXZ)
1>dest.lib(face_detector.obj) : error LNK2001: 无法解析的外部符号 "private: void __cdecl cv::String::deallocate(void)" (?deallocate@String@cv@@AEAAXXZ)
1>dest_align.obj : error LNK2019: 无法解析的外部符号 "void __cdecl cv::error(int,class cv::String const &,char const *,char const *,int)" (?error@cv@@YAXHAEBVString@1@PEBD1H@Z),该符号在函数 "public: unsigned char * __cdecl cv::Mat::ptr(int)" (??$ptr@E@Mat@cv@@QEAAPEAEH@Z) 中被引用
1>dest.lib(draw.obj) : error LNK2001: 无法解析的外部符号 "void __cdecl cv::error(int,class cv::String const &,char const *,char const *,int)" (?error@cv@@YAXHAEBVString@1@PEBD1H@Z)
1>dest.lib(face_detector.obj) : error LNK2001: 无法解析的外部符号 "void __cdecl cv::error(int,class cv::String const &,char const *,char const *,int)" (?error@cv@@YAXHAEBVString@1@PEBD1H@Z)
1>dest_align.obj : error LNK2019: 无法解析的外部符号 "public: void __cdecl cv::Mat::deallocate(void)" (?deallocate@Mat@cv@@QEAAXXZ),该符号在函数 "public: void __cdecl cv::Mat::release(void)" (?release@Mat@cv@@QEAAXXZ) 中被引用
1>dest.lib(draw.obj) : error LNK2001: 无法解析的外部符号 "public: void __cdecl cv::Mat::deallocate(void)" (?deallocate@Mat@cv@@QEAAXXZ)
1>dest.lib(face_detector.obj) : error LNK2001: 无法解析的外部符号 "public: void __cdecl cv::Mat::deallocate(void)" (?deallocate@Mat@cv@@QEAAXXZ)
1>dest_align.obj : error LNK2019: 无法解析的外部符号 "public: void __cdecl cv::Mat::copySize(class cv::Mat const &)" (?copySize@Mat@cv@@QEAAXAEBV12@@z),该符号在函数 "public: class cv::Mat & __cdecl cv::Mat::operator=(class cv::Mat const &)" (??4Mat@cv@@QEAAAEAV01@AEBV01@@z) 中被引用
1>dest.lib(draw.obj) : error LNK2001: 无法解析的外部符号 "public: void __cdecl cv::Mat::copySize(class cv::Mat const &)" (?copySize@Mat@cv@@QEAAXAEBV12@@z)
1>dest.lib(face_detector.obj) : error LNK2001: 无法解析的外部符号 "public: void __cdecl cv::Mat::copySize(class cv::Mat const &)" (?copySize@Mat@cv@@QEAAXAEBV12@@z)
1>dest_align.obj : error LNK2019: 无法解析的外部符号 "void __cdecl cv::cvtColor(class cv::_InputArray const &,class cv::_OutputArray const &,int,int)" (?cvtColor@cv@@YAXAEBV_InputArray@1@AEBV_OutputArray@1@HH@Z),该符号在函数 "void __cdecl dest::util::toDest(class cv::Mat const &,class Eigen::Matrix<unsigned char,-1,-1,1,-1,-1> &)" (?toDest@util@dest@@YAXAEBVMat@cv@@aeav?$Matrix@E$0?0$0?0$00$0?0$0?0@Eigen@@@z) 中被引用
1>dest.lib(draw.obj) : error LNK2001: 无法解析的外部符号 "void __cdecl cv::cvtColor(class cv::_InputArray const &,class cv::_OutputArray const &,int,int)" (?cvtColor@cv@@YAXAEBV_InputArray@1@AEBV_OutputArray@1@HH@Z)
1>dest.lib(face_detector.obj) : error LNK2001: 无法解析的外部符号 "void __cdecl cv::cvtColor(class cv::_InputArray const &,class cv::_OutputArray const &,int,int)" (?cvtColor@cv@@YAXAEBV_InputArray@1@AEBV_OutputArray@1@HH@Z)
1>dest_align.obj : error LNK2019: 无法解析的外部符号 "class cv::Mat __cdecl cv::imread(class cv::String const &,int)" (?imread@cv@@ya?AVMat@1@AEBVString@1@H@Z),该符号在函数 main 中被引用
1>dest_align.obj : error LNK2019: 无法解析的外部符号 "int __cdecl cv::waitKey(int)" (?waitKey@cv@@yahh@Z),该符号在函数 main 中被引用
1>dest_align.obj : error LNK2019: 无法解析的外部符号 "void __cdecl cv::imshow(class cv::String const &,class cv::_InputArray const &)" (?imshow@cv@@YAXAEBVString@1@AEBV_InputArray@1@@z),该符号在函数 main 中被引用
1>dest.lib(draw.obj) : error LNK2019: 无法解析的外部符号 "class cv::_InputOutputArray const & __cdecl cv::noArray(void)" (?noArray@cv@@YAAEBV_InputOutputArray@1@XZ),该符号在函数 "void __cdecl dest::util::drawShape(class cv::Mat &,class Eigen::Matrix<float,2,-1,0,2,-1> const &,int)" (?drawShape@util@dest@@YAXAEAVMat@cv@@aebv?$Matrix@M$01$0?0$0A@$01$0?0@Eigen@@h@Z) 中被引用
1>dest.lib(draw.obj) : error LNK2019: 无法解析的外部符号 "public: void __cdecl cv::Mat::create(int,int const *,int)" (?create@Mat@cv@@QEAAXHPEBHH@Z),该符号在函数 "public: void __cdecl cv::Mat::create(int,int,int)" (?create@Mat@cv@@QEAAXHHH@Z) 中被引用
1>dest.lib(draw.obj) : error LNK2019: 无法解析的外部符号 "void __cdecl cv::normalize(class cv::_InputArray const &,class cv::_InputOutputArray const &,double,double,int,int,class cv::_InputArray const &)" (?normalize@cv@@YAXAEBV_InputArray@1@AEBV_InputOutputArray@1@NNHH0@Z),该符号在函数 "void __cdecl dest::util::drawShape(class cv::Mat &,class Eigen::Matrix<float,2,-1,0,2,-1> const &,int)" (?drawShape@util@dest@@YAXAEAVMat@cv@@aebv?$Matrix@M$01$0?0$0A@$01$0?0@Eigen@@h@Z) 中被引用
1>dest.lib(draw.obj) : error LNK2019: 无法解析的外部符号 "void __cdecl cv::applyColorMap(class cv::InputArray const &,class cv::OutputArray const &,int)" (?applyColorMap@cv@@YAXAEBV_InputArray@1@AEBV_OutputArray@1@H@Z),该符号在函数 "void cdecl dest::util::drawShape(class cv::Mat &,class Eigen::Matrix<float,2,-1,0,2,-1> const &,int)" (?drawShape@util@dest@@YAXAEAVMat@cv@@aebv?$Matrix@M$01$0?0$0A@$01$0?0@Eigen@@h@Z) 中被引用
1>dest.lib(draw.obj) : error LNK2019: 无法解析的外部符号 "void cdecl cv::line(class cv::InputOutputArray const &,class cv::Point,class cv::Point,class cv::Scalar const &,int,int,int)" (?line@cv@@YAXAEBV_InputOutputArray@1@V?$Point@H@1@1AEBV?$Scalar@N@1@HHH@Z),该符号在函数 "void cdecl dest::util::drawRect(class cv::Mat &,class Eigen::Matrix<float,2,4,2,2,4> const &,class cv::Scalar const &)" (?drawRect@util@dest@@YAXAEAVMat@cv@@aebv?$Matrix@M$01$03$01$01$03@Eigen@@aebv?$Scalar@n@4@@z) 中被引用
1>dest.lib(draw.obj) : error LNK2019: 无法解析的外部符号 "void cdecl cv::circle(class cv::InputOutputArray const &,class cv::Point,int,class cv::Scalar const &,int,int,int)" (?circle@cv@@YAXAEBV_InputOutputArray@1@V?$Point@h@1@HAEBV?$Scalar@N@1@HHH@Z),该符号在函数 "void cdecl dest::util::drawShape(class cv::Mat &,class Eigen::Matrix<float,2,-1,0,2,-1> const &,class cv::Scalar const &)" (?drawShape@util@dest@@YAXAEAVMat@cv@@aebv?$Matrix@M$01$0?0$0A@$01$0?0@Eigen@@aebv?$Scalar@n@4@@z) 中被引用
1>dest.lib(draw.obj) : error LNK2019: 无法解析的外部符号 "void cdecl cv::putText(class cv::InputOutputArray const &,class cv::String const &,class cv::Point,int,double,class cv::Scalar,int,int,bool)" (?putText@cv@@YAXAEBV_InputOutputArray@1@AEBVString@1@V?$Point@h@1@HNV?$Scalar@N@1@HH_N@Z),该符号在函数 "void cdecl dest::util::drawShapeText(class cv::Mat &,class Eigen::Matrix<float,2,-1,0,2,-1> const &,class cv::Scalar const &)" (?drawShapeText@util@dest@@YAXAEAVMat@cv@@aebv?$Matrix@M$01$0?0$0A@$01$0?0@Eigen@@aebv?$Scalar@n@4@@z) 中被引用
1>dest.lib(face_detector.obj) : error LNK2019: 无法解析的外部符号 "public: cdecl cv::Mat::Mat(class cv::Mat const &,class cv::Rect const &)" (??0Mat@cv@@qeaa@AEBV01@AEBV?$Rect@h@1@@z),该符号在函数 "public: class cv::Mat cdecl cv::Mat::operator()(class cv::Rect const &)const " (??RMat@cv@@qeba?AV01@AEBV?$Rect@h@1@@z) 中被引用
1>dest.lib(face_detector.obj) : error LNK2019: 无法解析的外部符号 "public: void _cdecl cv::Mat::copyTo(class cv::OutputArray const &)const " (?copyTo@Mat@cv@@QEBAXAEBV_OutputArray@2@@z),该符号在函数 "public: bool cdecl dest::face::FaceDetector::detectFaces(class cv::Mat const &,class std::vector<class cv::Rect,class std::allocator<class cv::Rect > > &)const " (?detectFaces@FaceDetector@face@dest@@QEBA_NAEBVMat@cv@@aeav?$vector@V?$Rect@h@cv@@v?$allocator@V?$Rect@h@cv@@@std@@@std@@@z) 中被引用
1>dest.lib(face_detector.obj) : error LNK2019: 无法解析的外部符号 "void __cdecl cv::equalizeHist(class cv::InputArray const &,class cv::OutputArray const &)" (?equalizeHist@cv@@YAXAEBV_InputArray@1@AEBV_OutputArray@1@@z),该符号在函数 "public: bool cdecl dest::face::FaceDetector::detectFaces(class cv::Mat const &,class std::vector<class cv::Rect,class std::allocator<class cv::Rect > > &)const " (?detectFaces@FaceDetector@face@dest@@QEBA_NAEBVMat@cv@@aeav?$vector@V?$Rect@h@cv@@v?$allocator@V?$Rect@h@cv@@@std@@@std@@@z) 中被引用
1>dest.lib(face_detector.obj) : error LNK2019: 无法解析的外部符号 "public: __cdecl cv::CascadeClassifier::CascadeClassifier(void)" (??0CascadeClassifier@cv@@qeaa@XZ),该符号在函数 "public: __cdecl dest::face::FaceDetector::data::data(void)" (??0data@FaceDetector@face@dest@@qeaa@XZ) 中被引用
1>dest.lib(face_detector.obj) : error LNK2019: 无法解析的外部符号 "public: cdecl cv::CascadeClassifier::~CascadeClassifier(void)" (??1CascadeClassifier@cv@@qeaa@XZ),该符号在函数 "int public: __cdecl dest::face::FaceDetector::data::data(void)'::1'::dtor$0" (?dtor$0@?0???0data@FaceDetector@face@dest@@qeaa@XZ@4HA) 中被引用
1>dest.lib(face_detector.obj) : error LNK2019: 无法解析的外部符号 "public: bool cdecl cv::CascadeClassifier::load(class cv::String const &)" (?load@CascadeClassifier@cv@@QEAA_NAEBVString@2@@z),该符号在函数 "public: bool cdecl dest::face::FaceDetector::loadClassifiers(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (?loadClassifiers@FaceDetector@face@dest@@QEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@0@Z) 中被引用
1>dest.lib(face_detector.obj) : error LNK2019: 无法解析的外部符号 "public: void cdecl cv::CascadeClassifier::detectMultiScale(class cv::InputArray const &,class std::vector<class cv::Rect,class std::allocator<class cv::Rect > > &,double,int,int,class cv::Size,class cv::Size)" (?detectMultiScale@CascadeClassifier@cv@@QEAAXAEBV_InputArray@2@AEAV?$vector@V?$Rect@H@cv@@v?$allocator@V?$Rect@H@cv@@@std@@@std@@nhhv?$Size@H@2@2@Z),该符号在函数 "public: bool cdecl dest::face::FaceDetector::detectFaces(class cv::Mat const &,class std::vector<class cv::Rect,class std::allocator<class cv::Rect > > &)const " (?detectFaces@FaceDetector@face@dest@@QEBA_NAEBVMat@cv@@aeav?$vector@V?$Rect@H@cv@@v?$allocator@V?$Rect@H@cv@@@std@@@std@@@z) 中被引用
1>K:\tools\FaceLandmark\Build\Debug\dest_align.exe : fatal error LNK1120: 24 个无法解析的外部命令

@AnaZou
Copy link
Author

AnaZou commented Aug 15, 2016

I have solved the problem, i have misunderstand your instructions.Thanks for help

@cheind
Copy link
Owner

cheind commented Aug 15, 2016

Great that you got it working. What confused you, anything I can adapt to avoid misunderstandings?

@AnaZou
Copy link
Author

AnaZou commented Aug 16, 2016

Any other dependencies?
Yes, those are inline included and are header only。I misunderstood this,i just set the include header without set the lib link in the vs2013。According to the error list before,it just mean that i haven't link the lib error.
I heve train the shape_predictor on the helen dataset with 194 landmarks,but when i test the model,it shows bad result compare to dlib provided shape_predictor.I have try to adjust the param,but the model still perform bad,have u ever meet this problem?

@cheind
Copy link
Owner

cheind commented Aug 22, 2016

Consider this closed. Please re-open one for quality issue if it persists.

@cheind cheind closed this as completed Aug 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants