bakercp / ofxDlib

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

error while running install script ./bootstrap.sh #24

Open joaodafonseca opened 6 years ago

joaodafonseca commented 6 years ago

Hi all,

while running the script i get the following error:

screen shot 2018-05-18 at 17 24 25

Any clue what could be the problem? Thanks in advance, J

bakercp commented 6 years ago

what version of Xcode / command line tools / macOS are you using?

joaodafonseca commented 6 years ago

Xcode - 9.3.1 command line tools - not sure how to check this :( macOS - 10.13.2

joaodafonseca commented 6 years ago

command Line Tools: Xcode 9.3.1 (9E501)

bakercp commented 6 years ago

Hmm. I think it is an Xcode 9.3 issue. I haven't tested it with that (and dlib cmake scripts may not yet be compatible). Can you try compiling dlib alone:

$ curl -LO http://dlib.net/files/dlib-19.11.tar.bz2
$ tar xvf dlib-19.11.tar.bz2
$ cd dlib-19.11
$ mkdir build
$ cd build/
$ cmake ..

If you get the same error as you were getting with the bootstrap script, you need to downgrade to Xcode 9.2 or raise the issue with the dlib repository, as it expects AppleClang as the compiler name, ideally submitting a PR to include the new Clang identifier in the cmake scripts.

joaodafonseca commented 6 years ago

Yes getting the same error. I will try to downgrade Xcode and will let you know

bakercp commented 6 years ago

OK. Good to know. Keep me posted.

joaodafonseca commented 6 years ago

Downgrading xCode to 9.2 doesn't really help, still having the same problem :(

bakercp commented 6 years ago

What does running xcode-select --print-path give you?

joaodafonseca commented 6 years ago

/Applications/Xcode.app/Contents/Developer

bakercp commented 6 years ago

I'd recommend posting an issue here:

https://github.com/davisking/dlib/issues

Post the results of running:

$ curl -LO http://dlib.net/files/dlib-19.11.tar.bz2
$ tar xvf dlib-19.11.tar.bz2
$ cd dlib-19.11
$ mkdir build
$ cd build/
$ cmake ..
joaodafonseca commented 6 years ago

ok will do thanks for help. I'll keep you posted..

joaodafonseca commented 6 years ago

@bakercp would be possible for you to send me a zip file with the files that are supposed to be inside the libs/dlib folder? I think the only problem I'm getting here is to install the dlib files.

joaodafonseca commented 6 years ago

So yeah I managed to run the examples by manually downloading flib and place the lib files in libs/dlib. Also found a compiled file "libdlib.a" that is needed in the ofxFacetracker2 addon. After that all examples run. It's not solution but a workaround for now.

bakercp commented 6 years ago

https://github.com/davisking/dlib/issues/1326

vvzen commented 6 years ago

I've got a different error during the bootstrap.sh execution, but running

$ curl -LO http://dlib.net/files/dlib-19.11.tar.bz2
$ tar xvf dlib-19.11.tar.bz2
$ cd dlib-19.11
$ mkdir build
$ cd build/
$ cmake ..

works. This is what I get after running bootstrap.sh:

screen shot 2018-08-05 at 14 48 00

Any hints? (@bakercp , @joaodafonseca )

Thanks