naxingyu / opensmile

A github repo of the openSMILE feature extraction tool.
http://www.audeering.com/research/opensmile
Other
214 stars 79 forks source link

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

Open ExcaliburAir opened 6 years ago

ExcaliburAir commented 6 years ago

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.

naxingyu commented 6 years ago

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

ExcaliburAir commented 6 years ago

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

zedavid commented 6 years ago

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

iPsych commented 6 years ago

I also experience the exact same error....

jadhavshankarvignet commented 6 years ago

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

seblemaguer commented 5 years ago

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
jscutts commented 5 years ago

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

BeckySharp commented 4 years ago

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?)

xunyuc2 commented 4 years ago

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!