ofxDlib icon indicating copy to clipboard operation
ofxDlib copied to clipboard

error while running install script ./bootstrap.sh

Open joaodafonseca opened this issue 7 years ago • 15 comments

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

joaodafonseca avatar May 18 '18 15:05 joaodafonseca

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

bakercp avatar May 18 '18 15:05 bakercp

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

joaodafonseca avatar May 18 '18 15:05 joaodafonseca

command Line Tools: Xcode 9.3.1 (9E501)

joaodafonseca avatar May 18 '18 15:05 joaodafonseca

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.

bakercp avatar May 18 '18 15:05 bakercp

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

joaodafonseca avatar May 18 '18 16:05 joaodafonseca

OK. Good to know. Keep me posted.

bakercp avatar May 18 '18 16:05 bakercp

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

joaodafonseca avatar May 18 '18 17:05 joaodafonseca

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

bakercp avatar May 18 '18 17:05 bakercp

/Applications/Xcode.app/Contents/Developer

joaodafonseca avatar May 18 '18 17:05 joaodafonseca

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 ..

bakercp avatar May 18 '18 17:05 bakercp

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

joaodafonseca avatar May 18 '18 17:05 joaodafonseca

@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 avatar May 19 '18 12:05 joaodafonseca

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.

joaodafonseca avatar May 19 '18 13:05 joaodafonseca

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

bakercp avatar May 19 '18 18:05 bakercp

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

vvzen avatar Aug 05 '18 13:08 vvzen