opensmile icon indicating copy to clipboard operation
opensmile copied to clipboard

"ld: library not found for -lopensmile" on Mac

Open ExcaliburAir opened this issue 6 years ago • 9 comments

when I try to "./buildStandAlone.sh". I got this error: " make: *** [all] Error 2 /bin/sh ./libtool --tag=CXX --mode=link g++ -O2 -mfpmath=sse -msse2 -lm -lpthread -lc -o SMILExtract progsrc/smilextract/SMILExtract-SMILExtract.o -lm -ldl -lopensmile libtool: link: g++ -O2 -mfpmath=sse -msse2 -o SMILExtract progsrc/smilextract/SMILExtract-SMILExtract.o -Wl,-bind_at_load -lpthread -lc -lm -ldl -lopensmile ld: library not found for -lopensmile clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [SMILExtract] Error 1 "

and this is my paths: $ which automake autoconf libtool m4 gcc /usr/local/bin/automake /usr/local/bin/autoconf /usr/bin/libtool /usr/bin/m4 /usr/bin/gcc

how I fix the error, THX.

ExcaliburAir avatar Mar 14 '18 04:03 ExcaliburAir

I don't have a Mac to reproduce. Found this, not sure if it is helpful.

naxingyu avatar Mar 14 '18 07:03 naxingyu

I haven't try it but, THX any way.

ExcaliburAir avatar Mar 20 '18 01:03 ExcaliburAir

This error persists even with the script linked above. Did you find a solution @ExcaliburAir ?

zedavid avatar May 23 '18 14:05 zedavid

I also experience the exact same error....

iPsych avatar May 31 '18 14:05 iPsych

I am also facing same error for buildStandAlone.sh and buildAndroid.sh. @iPsych is there any update on this?

jadhavshankarvignet avatar Jun 05 '18 07:06 jadhavshankarvignet

I just had the problem on archlinux and I replaced this line in the Makefile.am

SMILExtract_LDADD = $(SMILE_LIBS) -lopensmile

by

  SMILExtract_LDADD = $(SMILE_LIBS) libopensmile.la

seblemaguer avatar Nov 23 '18 16:11 seblemaguer

I was able to get mine to work by editing buildStandAlone.sh to call make -j8 twice more before the call to make install.

I posted about it on the thread that @naxingyu linked above too: https://gist.github.com/hbuschme/6456249#gistcomment-2885220

jscutts avatar Apr 10 '19 04:04 jscutts

I was able to get mine to work by editing buildStandAlone.sh to call make -j8 twice more before the call to make install.

I posted about it on the thread that @naxingyu linked above too: https://gist.github.com/hbuschme/6456249#gistcomment-2885220

Why does this work? (I mean, it does work, but why?)

BeckySharp avatar Jan 07 '20 18:01 BeckySharp

I just had the problem on archlinux and I replaced this line in the Makefile.am

SMILExtract_LDADD = $(SMILE_LIBS) -lopensmile

by

  SMILExtract_LDADD = $(SMILE_LIBS) libopensmile.la

Worked for me!

xunyuc2 avatar Jun 07 '20 01:06 xunyuc2