On Wed, Sep 25, 2013 at 3:28 PM, bat guano <batguano999 at hotmail.com> wrote:>> >>I think you're missing -lm (the math library) when linking. There are some LIBM related changes in the git history >>so this might have already been solved since 0.1.7 >> > Hi > opus-tools-0.1.7 has compiled OK now with Peppermint Three OS... > with this configure:- > ./configure LIBS=-lmI don't understand how you are ending up statically linking. I also don't understand why it's not picking up the -lm from the packagecon for the static linking. How did you compile libopus?
> > How did you compile libopus?Like this... $ wget http://downloads.xiph.org/releases/opus/opus-1.1-beta.tar.gz $ tar -xf opus-1.1-beta.tar.gz $ cd opus-1.1-beta $ ./configure --disable-shared $ make && sudo make install
On Wed, Sep 25, 2013 at 4:46 PM, bat guano <batguano999 at hotmail.com> wrote:>> >> How did you compile libopus? > > Like this... > > $ wget http://downloads.xiph.org/releases/opus/opus-1.1-beta.tar.gz > $ tar -xf opus-1.1-beta.tar.gz > $ cd opus-1.1-beta > $ ./configure --disable-shared > $ make && sudo make installWhy are you specifying "--disable-shared"?
On 2013-09-25 4:46 PM, bat guano wrote:> $ ./configure --disable-sharedThis is the problem. This builds only a static version of opus, not a dynamic one. Linking statically requires -lm, but there's no way for opus-tools to know you've done this and pass --static to pkg-config along with --libs. Did you pass --disable-shared when building on the other Ubuntu systems where the opus-tools build worked? You really shouldn't need use that option in general, it's there for when you have a specific reason to not want the normal dynamic library. -r