Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

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

Open
zipzit opened this issue Dec 28, 2015 · 1 comment

Comments

@zipzit
Copy link

zipzit commented Dec 28, 2015

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.

@sthalik
Copy link
Owner

sthalik commented Dec 28, 2015

Hey,

did you compile flandmark using the same msvc version? the names are
mangled so this is relevant.

alternatively, make sure to use static flandmark version with msvc since
the prototypes are missing dllexport on them.

sh

On December 28, 2015 10:11:23 Zip [email protected] wrote:

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_modelcpp file Should that be included
in the project? ref:https://githubcom/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://stackoverflowcom/questions/17735244/cant-get-flandmarks-to-work-c-error-lnk2019-unresolved-external-symbol

Many thanks


Reply to this email directly or view it on GitHub:
#6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants