Hi All,
I’m trying to run this facesnap project, but I get this error:
/facerec/include/dlib/image_processing/frontal_face_detector.h
Line 7: In file included from upload/facerec/src/facerec.cpp:16:
...
In file included from upload/facerec/include/extdlib/image_processing/../unicode.h:6:
cannot use 'throw' with exceptions disabled
throw invalid_utf8_error();
^
...
I know there is a similar issue here but unfortunately, none of that solutions are acceptable.
If I set the -fexceptions
flag in /facerec/ext.manifest
, I got that this flag is invalid.
Because this project uses a third-party lib (dlib), it’s not a good way to fix all of throw
parts of the code.
So, how can I fix this error?
Or more generally, how to use properly native extension what depends on a third-party C++ library which contains exception handling? (I hope my question has to make sense. )
Thanks in advance for the help!