arturoc / FaceSubstitution

Face substitution experiments using ofxFacetracker
Other
437 stars 120 forks source link

Compiling errors #8

Closed ketz closed 11 years ago

ketz commented 11 years ago

When trying to compile, after linking the libraries correctly and adding Jason's Tracker library, I get a "FACETRACKER not declared" error in ofxFaceTracker.

I've renamed the ofxCv Tracker.h to MyTracker.h, as suggested here: https://github.com/kylemcdonald/ofxFaceTracker/issues/28 But the error remains.

The only way I can make it disappear is by adding "#include " to ofxFaceTracker.h, but then the app compiles correctly, runs and crashes with the error:

Assertion failed: (s.is_open()),Assertion failed: (s.is_open()), function Load, file /Users/andre-a/Work/Libraries/of_0071_osx_release/apps/Face Sub/FaceSubstitution/../../../addons/ofxFaceTracker/libs/Tracker/Tracker.cc, line 59. function Load, file /Users/andre-a/Work/Libraries/of_0071_osx_release/apps/Face Sub/FaceSubstitution/../../../addons/ofxFaceTracker/libs/Tracker/Tracker.cc, line 59.

kylemcdonald commented 11 years ago

for FaceSubstitution the model/ folder is hidden instead the package contents. right click on the app after you compile it, "show package contents", then go to Contents/ and add a folder data/, and model/ inside there.

you can also remove ofSetDataPathRoot()

ketz commented 11 years ago

WOOOO! It works :)

Thanks!