opus icon indicating copy to clipboard operation
opus copied to clipboard

How to make “libopus.a” file

Open qq249356520 opened this issue 4 years ago • 2 comments

When i compile the project on macOS(not cmake but makefile.am and configure.ac used) it only generate libopus.la

how to make libopus.a?

qq249356520 avatar Aug 27 '20 09:08 qq249356520

There should be a .libs/libopus.a. If not you can try passing --enable-static to configure.

libtool, part of the configure/Makefile.am build, hides the actual libary files in .libs subdirectories so it can intercept link requests and provide portable behaviour. Sometimes it's easier to get at the files you want by running the install step against a temporary directory.

$ ./configure --prefix=$PWD/_inst
$ make -j4
$ make install
$ ls _inst/lib
libopus.a  libopus.la  libopus.so  libopus.so.0  libopus.so.0.8.0  pkgconfig/

rillian avatar Aug 27 '20 16:08 rillian

image

how can i solve the problem

zdq1179169386 avatar Jan 10 '21 15:01 zdq1179169386