Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any Successful installation in OS X Sierra or High Sierra? #15

Open
iPsych opened this issue May 29, 2018 · 10 comments
Open

Any Successful installation in OS X Sierra or High Sierra? #15

iPsych opened this issue May 29, 2018 · 10 comments

Comments

@iPsych
Copy link

iPsych commented May 29, 2018

Hello,
I tried both easy and step-by-step compile with Xcode, Commandlinetools, and even homebrew gcc, but no success yet.
Is there any successful installation in OS X Sierra or newer (>10.12).
Of course, the SIP is already disabled...

@pnb
Copy link

pnb commented Jun 8, 2018

I was able to compile on OSX 10.13.2 using the buildStandalone.sh script. The only thing I had to do to get it to compile with clang was remove -lrt from buildStandalone.sh on line 38.

Does that fix it for you?

@iPsych
Copy link
Author

iPsych commented Jun 12, 2018

pnb, Thanks.
Did you compiled with Xcode, Commandline tools or gcc with homebrew?

@pnb
Copy link

pnb commented Jun 12, 2018

I used the version of clang provided by Xcode, since that was the default on my computer. To be 100% sure, I checked where the gcc executable is and what version it is so you can compare to your own installation.

$ which gcc
/usr/bin/gcc

$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

@iPsych
Copy link
Author

iPsych commented Jun 16, 2018 via email

@pnb
Copy link

pnb commented Jun 18, 2018

I was able to replicate the issue on an older computer with the same OSX version. The only real difference I know of between the computers is that the old one is much slower. This made me suspicious that it had something to do with the order things were getting compiled in while using 8 simultaneous tasks (make -j8 in the buildStandalone.sh script). Interestingly, changing it to make -j1 caused it to fail even sooner, which suggests that the Makefile actually builds things out of order, and it only works on fast computers because of some lucky race condition.

But after poking around in the Makefile for a while I was able to figure out how to build the library first, and now I can successfully build it on the older computer as well with these steps:

  1. Edit buildStandalone.sh to remove -lrt
  2. Run ./buildStandalone.sh (this will fail with "ld: library not found for -lopensmile", but it gets everything set up for the next steps)
  3. Run make libopensmile.la
  4. Run make install

Now inst/bin should have the SMILEextract executable in it. I hope that helps!

@iPsych
Copy link
Author

iPsych commented Jun 18, 2018

@pnb It perfectly works.
Thanks pnb.

@danielkorzekwa
Copy link

great, works too.

@xiaotingFu
Copy link

I am using is a MacBook Pro (Retina, 13-inch, Late 2013) running macOS High Sierra 10.13.6 (17G65) and I was able to installed opensmile using the following procedures:

  1. git clone this repo
  2. brew install portaudio
  3. compile opensmile using this script.
  4. add a line to ~/.bash_profile
    export PATH=/your/dir/to/opensmile/inst/bin:$PATH
  5. test the installation by running SMILExtract -h

@TanviThanekar
Copy link

@pnb Thankyou so much for this workaround .You made my day easy

@chausner-audeering
Copy link

Anyone having issues with compiling 2.3 on OS X: please try with the recently released version 3.0 which ships with pre-built binaries for OS X and also has a completely overhauled build process based on CMake. Compilation should work out-of-the-box on recent versions on OS X.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants