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

undefined reference to `av_calloc@LIBAVUTIL_52' collect2: error #109

Closed
PrimozGodec opened this issue Jun 22, 2014 · 5 comments
Closed

undefined reference to `av_calloc@LIBAVUTIL_52' collect2: error #109

PrimozGodec opened this issue Jun 22, 2014 · 5 comments

Comments

@PrimozGodec
Copy link

Hi.
When I tried to compile (with command ./waf) Essentia (on Ubuntu 14.04), I got this error: /usr/local/lib/libswresample.so: undefined reference to `av_calloc@LIBAVUTIL_52'
collect2: error: ld returned 1 exit status
I already installed ffmpeg library on many different way, but got same error everythime, I tried to compile Essentia.
I konw that this is problem with ffmpeg, but I do not know how to slove this. Has anybody had same problem or anybody know how to solve this?

This is screenshot of my error.
untitled

@dbogdanov
Copy link
Member

How did you install ffmpeg? You don't need to have libswresample (it seems you have a custom install to /usr/local), Essentia will compile without it just fine. You should go for libav from the official repository.

@PrimozGodec
Copy link
Author

First thanks for response.

I download ffmpeg from ffmpeg git repository. Then configure it with
./configure --prefix=/usr/local --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
and then build and install it with mak and make install.

I also try to install only libav (with ./configure, then make and make install), but then essentia building stops at 24/301. Must I add some arguments to configure to build libav properly? Do you have some instruction how to install libav properly?

@dbogdanov
Copy link
Member

I cannot say exactly the reason now, but the ffmpeg version you install might be newer then the ones currently supported. What is wrong with installing the dependencies the recommended way?

@stevetjoa
Copy link

I also have problems with Essentia on Ubuntu 14.04. I think this is the problem: http://askubuntu.com/questions/432542/is-ffmpeg-missing-from-the-official-repositories-in-14-04

I had it working on Ubuntu 12.04; I would be surprised if anyone got Essentia working on 14.04 because of the ffmpeg issue above.

@PrimozGodec
Copy link
Author

I solve my problem with this configuration: sudo ./waf configure --mode=release --with-python --with-examples (if I miss --with-cpptests and --with-vamp everything works ok). You may try this.

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

3 participants