bakercp / ofxDlib

An openFrameworks wrapper for dlib. http://dlib.net/
MIT License
52 stars 16 forks source link

compiling on osx 10.10.5 with OF 0.9.8 #10

Closed stephanschulz closed 6 years ago

stephanschulz commented 7 years ago

hi i was hoping to try your landmark detection. i get this compile error:

/Applications/of_v0.9.8_osx_release/addons/ofxDlib/libs/ofxDlib/include/ofx/Dlib/Utils.h:12:10: 'dlib/geometry.h' file not found

i am noticing that the lib folder is pretty empty, compared to ofxFaceTracker2 for example.

i tried to follow some of your Getting Started steps but ...

when running the install.sh i get:

/Applications/of_v0.9.8_osx_release/addons/ofxDlib/scripts/install.sh: line 7: build.sh: command not found

when running the build.sh by hand i get:

kinder:~ stephan$ /Applications/of_v0.9.8_osx_release/addons/ofxDlib/scripts/build.sh 
Calling /Applications/of_v0.9.8_osx_release/addons/ofxDlib/scripts/build.sh from /Users/stephan
Setting OF_ROOT to: /Applications/of_v0.9.8_osx_release
openFrameworks Config
=====================
           OF_ROOT: /Applications/of_v0.9.8_osx_release
    OF_ADDONS_PATH: /Applications/of_v0.9.8_osx_release/addons
   OF_SCRIPTS_PATH: /Applications/of_v0.9.8_osx_release/scripts
OF_APOTHECARY_PATH: /Applications/of_v0.9.8_osx_release/scripts/apothecary

MACHINE CONFIG
==============
           TARGET: osx

ADDON CONFIG
============
        ADDON_NAME: ofxDlib
        ADDON_PATH: /Applications/of_v0.9.8_osx_release/addons/ofxDlib
ADDON_SCRIPTS_PATH: /Applications/of_v0.9.8_osx_release/addons/ofxDlib/scripts

Building for osx ...
No special ofxDlib dependencies required for osx.
Installing apothecary ...
Calling /Applications/of_v0.9.8_osx_release/addons/ofxDlib/scripts/apothecary/install.sh from /Users/stephan
Setting OF_ROOT to: /Applications/of_v0.9.8_osx_release
/Applications/of_v0.9.8_osx_release/addons/ofxDlib/scripts/apothecary/install.sh: line 27: /Applications/of_v0.9.8_osx_release/addons/scripts/scripts/shared/ostype.sh: No such file or directory
openFrameworks Config
=====================
           OF_ROOT: /Applications/of_v0.9.8_osx_release
    OF_ADDONS_PATH: /Applications/of_v0.9.8_osx_release/addons
   OF_SCRIPTS_PATH: /Applications/of_v0.9.8_osx_release/scripts
OF_APOTHECARY_PATH: /Applications/of_v0.9.8_osx_release/scripts/apothecary

MACHINE CONFIG
==============
           TARGET: 

ADDON CONFIG
============
        ADDON_NAME: scripts
        ADDON_PATH: /Applications/of_v0.9.8_osx_release/addons/scripts
ADDON_SCRIPTS_PATH: /Applications/of_v0.9.8_osx_release/addons/scripts/scripts

Apothecary not installed, installing latest version.
fatal: destination path '/Applications/of_v0.9.8_osx_release/scripts/apothecary' already exists and is not an empty directory.
No additional apothecary dependencies to install.
Done installing apothecary.
Building ofxDlib libraries for osx ...
/Applications/of_v0.9.8_osx_release/addons/ofxDlib/scripts/build.sh: line 68: /Applications/of_v0.9.8_osx_release/scripts/apothecary/apothecary/apothecary: Not a directory
bakercp commented 7 years ago

Hi @stephanschulz currently it's not compatible with < 10 (https://github.com/bakercp/ofxdlib#compatibility).

The build.sh script will compile dlib and put the libraries in the addon's folder. I currently don't distribute the libraries to keep the repo small, though I plan to make downloadable versions soon.

Have you tried this with the master branch?

stephanschulz commented 7 years ago

thanks for the reply.

install.sh gave me the same error with OF 0.10.0 but running build.sh did download dlib

i'm still getting some build errors but less scary looking. for example_face_landmark_detection:

/Applications/openFrameworks-master/addons/ofxDlib/example_face_landmark_detection/src/ofApp.cpp:32:5: No matching function for call to 'toOf'

for example_dnn_mmod_face_landmark_detection:

/Applications/openFrameworks-master/addons/ofxDlib/example_dnn_mmod_face_landmark_detection/src/ofApp.cpp:23:34: No member named 'copy' in namespace 'ofx::Dlib'
bakercp commented 7 years ago

Hmm. I'll make sure my code is synced.

bakercp commented 6 years ago

This should all be fixed on the develop branch by running scripts/./bootstrap.sh. Closing this for now.