headtracker icon indicating copy to clipboard operation
headtracker copied to clipboard

Build / Linker failures ... missing flandmark_model.cpp file within the project?

Open zipzit opened this issue 8 years ago • 1 comments

I'm getting very odd compilation failures:

Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol "struct model_struct * __cdecl flandmark_init(char const *)" (?flandmark_init@@YAPAUmodel_struct@@PBD@Z) referenced in function "struct ht_context * __stdcall ht_make_context(struct ht_config const *,char const *)" (?ht_make_context@@YGPAUht_context@@PBUht_config@@PBD@Z)

Error LNK2019 unresolved external symbol "void __cdecl flandmark_free(struct model_struct *)" (?flandmark_free@@YAXPAUmodel_struct@@@Z) referenced in function "void __stdcall ht_free_context(struct ht_context *)" (?ht_free_context@@YGXPAUht_context@@@Z)

Error LNK2019 unresolved external symbol "int __cdecl flandmark_detect(struct _IplImage *,int *,struct model_struct *,double *,int *)" (?flandmark_detect@@YAHPAU_IplImage@@PAHPAUmodel_struct@@PAN1@Z) referenced in function "bool cdecl ht_fl_estimate(struct ht_context &,class cv::Mat &,class cv::Rect,class cv::Mat &,class cv::Mat &)" (?ht_fl_estimate@@YA_NAAUht_context@@AAVMat@cv@@V?$Rect@H@3@11@Z)

I'm thinking its a missing flandmark_model.cpp file. Should that be included in the project? ref:https://github.com/uricamic/flandmark

Note: I'm using Microsoft Visual Studio. Perhaps I've used CMake incorrrectly? Should the Flandmark libraries be compiled in my openCV tools?

ref: http://stackoverflow.com/questions/17735244/cant-get-flandmarks-to-work-c-error-lnk2019-unresolved-external-symbol

Many thanks.

zipzit avatar Dec 28 '15 09:12 zipzit