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

How to compile when you don't have libopus installed? #19

Open
wrn0 opened this issue Jun 10, 2020 · 1 comment
Open

How to compile when you don't have libopus installed? #19

wrn0 opened this issue Jun 10, 2020 · 1 comment

Comments

@wrn0
Copy link

wrn0 commented Jun 10, 2020

I have to make this library for four different architectures. I was able to make that library for my computer's architecture by installing opus with brew. However, I now need to do the configure routine in a way that it checks for opus in my generated libopus.a file (that's built by me for these 4 libraries). Wherever I put the libopus.a and whatever options I try to add to the call it always tells me

checking pkg-config is at least version 0.9.0... yes
checking for DEPS... no
configure: error: Package requirements (opus >= 1.1) were not met:

No package 'opus' found

on my ./configure

I did export DEPS_LIBS=$HOME/Downloads/libopusenc-iOS/libopus.a and now the whole process gets much further but it stops at

------------------------------------------------------------------------
  libopusenc 0.2.1: Automatic configuration OK.

    Hidden visibility ............ yes

    API code examples ............ yes
    API documentation ............ no
------------------------------------------------------------------------


/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
  CCLD     libopusenc.la

*** Warning: Linking the shared library libopusenc.la against the
*** static library /Users/T/Downloads/libopusenc-iOS/libopus.a is not portable!
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: archive member: .libs/libopusenc.a(libopus.a) fat file for cputype (7) cpusubtype (3) is not an object file (bad magic number)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar: internal ranlib command failed
make[1]: *** [libopusenc.la] Error 1
make: *** [all] Error 2

@mark4o
Copy link
Contributor

mark4o commented Sep 13, 2020

If you want to use a libopus that you have built and installed in a non-standard directory, set PKG_CONFIG_PATH to the directory where the opus.pc file was installed, before configuring libopusenc. For example:

export PKG_CONFIG_PATH=/home/me/opus-install/lib/pkgconfig
./configure

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

2 participants