Skip to content

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

@wrn0

Description

@wrn0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions