Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#8047 closed defect (invalid)

"ERROR: libmysofa not found" with libmysofa static

Reported by: spv82 Owned by:
Priority: normal Component: build system
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

FFmpeg master can't find libmysofa static.

git clone https://github.com/hoene/libmysofa.git

cd libmysofa/build

cmake -DCMAKE_INSTALL_PREFIX=/tmp/build/build_libs -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF ..
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test C_HAS_WALL
-- Performing Test C_HAS_WALL - Success
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/build/libmysofa/build

make install
Scanning dependencies of target mysofa-static
[  4%] Building C object src/CMakeFiles/mysofa-static.dir/hrtf/reader.c.o
[  9%] Building C object src/CMakeFiles/mysofa-static.dir/hdf/superblock.c.o
[ 14%] Building C object src/CMakeFiles/mysofa-static.dir/hdf/dataobject.c.o
[ 19%] Building C object src/CMakeFiles/mysofa-static.dir/hdf/btree.c.o
[ 23%] Building C object src/CMakeFiles/mysofa-static.dir/hdf/fractalhead.c.o
[ 28%] Building C object src/CMakeFiles/mysofa-static.dir/hdf/gunzip.c.o
[ 33%] Building C object src/CMakeFiles/mysofa-static.dir/hdf/gcol.c.o
[ 38%] Building C object src/CMakeFiles/mysofa-static.dir/hrtf/check.c.o
[ 42%] Building C object src/CMakeFiles/mysofa-static.dir/hrtf/spherical.c.o
[ 47%] Building C object src/CMakeFiles/mysofa-static.dir/hrtf/lookup.c.o
[ 52%] Building C object src/CMakeFiles/mysofa-static.dir/hrtf/tools.c.o
[ 57%] Building C object src/CMakeFiles/mysofa-static.dir/hrtf/kdtree.c.o
[ 61%] Building C object src/CMakeFiles/mysofa-static.dir/hrtf/neighbors.c.o
[ 66%] Building C object src/CMakeFiles/mysofa-static.dir/hrtf/interpolate.c.o
[ 71%] Building C object src/CMakeFiles/mysofa-static.dir/hrtf/resample.c.o
[ 76%] Building C object src/CMakeFiles/mysofa-static.dir/hrtf/loudness.c.o
[ 80%] Building C object src/CMakeFiles/mysofa-static.dir/hrtf/minphase.c.o
[ 85%] Building C object src/CMakeFiles/mysofa-static.dir/hrtf/easy.c.o
[ 90%] Building C object src/CMakeFiles/mysofa-static.dir/hrtf/cache.c.o
[ 95%] Building C object src/CMakeFiles/mysofa-static.dir/resampler/speex_resampler.c.o
[100%] Linking C static library libmysofa.a
[100%] Built target mysofa-static
Install the project...
-- Install configuration: ""
-- Installing: /tmp/build/build_libs/share/libmysofa/default.sofa
-- Installing: /tmp/build/build_libs/share/libmysofa/MIT_KEMAR_normal_pinna.sofa
-- Installing: /tmp/build/build_libs/lib/pkgconfig/libmysofa.pc
-- Installing: /tmp/build/build_libs/lib/libmysofa.a
-- Installing: /tmp/build/build_libs/include/mysofa.h

wget -q https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2

tar xjf ffmpeg-snapshot.tar.bz2 & cd ffmpeg

PKG_CONFIG_PATH=/tmp/build/build_libs/lib/pkgconfig ./configure --prefix=/tmp/build/build_libs --extra-cflags=-I/tmp/build/build_libs/include --extra-ldflags=-L/tmp/build/build_libs/lib --extra-libs="-ldl" --enable-libmysofa
ERROR: libmysofa not found

With 3.4.6 release this issue does not occur.

wget -q https://ffmpeg.org/releases/ffmpeg-3.4.6.tar.xz

tar xJf ffmpeg-3.4.6.tar.xz & cd ffmpeg-3.4.6

PKG_CONFIG_PATH=/tmp/build/build_libs/lib/pkgconfig ./configure --prefix=/tmp/build/build_libs --extra-cflags=-I/tmp/build/build_libs/include --extra-ldflags=-L/tmp/build/build_libs/lib --extra-libs="-ldl" --enable-libmysofa
install prefix            /tmp/build/build_libs
source path               .
C compiler                gcc
C library                 glibc
ARCH                      x86 (generic)
big-endian                no
runtime cpu detection     yes
standalone assembly       yes
x86 assembler             nasm
MMX enabled               yes
MMXEXT enabled            yes
3DNow! enabled            yes
3DNow! extended enabled   yes
SSE enabled               yes
SSSE3 enabled             yes
AESNI enabled             yes
AVX enabled               yes
AVX2 enabled              yes
XOP enabled               yes
FMA3 enabled              yes
FMA4 enabled              yes
i686 features enabled     yes
CMOV is fast              yes
EBX available             yes
EBP available             yes
debug symbols             yes
strip symbols             yes
optimize for size         no
optimizations             yes
static                    yes
shared                    no
postprocessing support    no
network support           yes
threading support         pthreads
safe bitstream reader     yes
texi2html enabled         no
perl enabled              yes
pod2man enabled           yes
makeinfo enabled          no
makeinfo supports HTML    no

External libraries:
iconv			    libmysofa			xlib			    zlib
...

Change History (5)

comment:1 by Elon Musk, 2 years ago

Resolution: invalid
Status: newclosed

It works here, and for zeranoe static builds too.

comment:2 by spv82, 2 years ago

But it not works on Linux and everyone can reproduce this bug there.

in reply to:  1 comment:3 by spv82, 2 years ago

Replying to richardpl:

It works here, and for zeranoe static builds too.

But it not works on Linux and everyone can reproduce this bug there.

comment:4 by James, 2 years ago

Can you attach ffbuild/config.log from the failed configure run?

comment:5 by James, 2 years ago

Also, for static libraries you should add --pkg-config-flags=--static to the configure line.

Note: See TracTickets for help on using tickets.