-
Notifications
You must be signed in to change notification settings - Fork 525
-
Notifications
You must be signed in to change notification settings - Fork 525
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
Remove support for libswresample as we have libavresample #321
Comments
There were some compatibility issues with Ubuntu 14.04 that were fixed in the 2.0.1 branch. It is written in the notes for the 2.0.1 release. You can install from that branch, but for more updates use 2.1_beta2 release instead. |
Thanks for your help. |
I tried 2.1 beta 2. The results are the same as before. $ ./waf configure --mode=release --with-python --with-examples --with-vamp --with-cpptests $ ./waf Do you have any other suggestions? |
I have now tried essentia-master. With $ ./waf configure --mode=release --with-python --with-examples --with-vamp --with-cpptests but it is installed: Now when I do $./waf [ 26/343] cxx: src/essentia/utils/audiocontext.cpp -> build/src/essentia/utils/audiocontext.cpp.1.o Do you have any other suggestions? Thanks |
What is the version of libavformat/livavcodec/libavutil packages? You can check that in |
Hi, essentia-master
essentia-2.1_beta2
essentia-2.0.1
|
Does anyone have any ideas on how to proceed. Essentia still doesn't build. |
You are missing another library, if you are building the master branch or 2.1beta2. Install libavresample-dev package. I've checked the code and there is an error in the case Thank you for your report! |
Thanks again for responding. I already have libavresample-dev installed. $ sudo apt-get install libavresample-dev Should I get rid of libavresample or libswresample? Thanks, again. |
Remove the |
Btw, if you are building master branch, and you have libavresample installed and detected by Essentia (check in log), the error should not appear. |
We might get this yet. I removed libswresample. (Actually, I did I also downloaded and extracted essentia-2.1_beta2 for this go. $ ./waf configure --mode=release --with-python --with-examples --with-vamp --with-cpptests $ ./waf $ sudo ./waf install $ ipython SUCCESS! Dmitry, YOU ARE THE MAN! Thank you for all of your help. I'll share this success. Thanks, again. |
It is strange however, that is reports you that
Before you did not have this problem, according to your log copy-paste. |
Dimitry, This shows that libavcodec is installed. At any rate, I really appreciate all of the help you provided. Thanks, |
Check the |
I have essentia (2.1-beta2)
|
Just to add to the confusion a bit, I also have a Windows computer with VirturalBox and a Ubuntu 14.04 Guest OS. I ran all of the same steps, except with --with-gaia
I went back to the config.log, and got
This is different. |
You got some mess with your libav installation. In your case Your libav is installed in
|
Dimitry, As I understand it, ffmpeg is needed and the only way to get it is to build Thanks, On Tue, Dec 1, 2015 at 10:35 AM, Dmitry Bogdanov notifications@github.com
|
No, only some parts of ffmpeg are required, and that are present in Ubuntu. You can install all required packages via apt-get as suggested in documentation:
|
I have fixed the issue with libswresample. You can restore the pc file from |
I originally did that, only to find that I needed to install ffmpeg. On Tue, Dec 1, 2015 at 12:41 PM, Dmitry Bogdanov notifications@github.com
|
OK. I'll try. I assume I have to start over, by downloading the source then On Tue, Dec 1, 2015 at 12:42 PM, Dmitry Bogdanov notifications@github.com
|
I restored libswresample. $ cd ~/gitlocal Got these messages: $ ./waf Building all the algorithms $ sudo ./waf install Ignoring the following algorithms: MonoLoader, IFFTA, AudioWriter, FFTK, AudioLoader, EasyLoader, MonoWriter, EqloudLoader, IFFTK, FFTA $ ./waf run_tests $ ./waf run_tests $ whereis libessentia.so $ ls -al /usr/local/lib/libessentia.so $ ipython In [1]: import essentiaImportError Traceback (most recent call last) $ ls -al /usr/local/lib/pkgconfig Did I do something wrong or miss a step? |
Additionally, I forgot to add, from build/config.log: Checking for 'libavresample' from /home/roger/github/essentia/src: The configuration failed$ whereis libavresample |
Still there is a mess. Remove everything libav* related from /usr/local If you are on Ubuntu 14.04 - use Essentia 2.1beta2. |
Should I $ sudo apt-get remove libav-tools or $ cd /usr/lib On Wed, Dec 2, 2015 at 10:33 AM, Dmitry Bogdanov notifications@github.com
|
Remove libav* files from folders:
|
Dimitry, Get rid of libav* I downloaded and extracted Essentia 2.1beta2 to $HOME/essentia-2.1_beta2. $ sudo apt-get install build-essential libyaml-dev libfftw3-dev libavcodec-dev libavformat-dev libavutil-dev libavresample-dev python-dev libsamplerate0-dev libtag1-dev I had previously done this libswresample is present: $ cd essentia-2.1_beta2/ Here's the message:
$ ./waf $ sudo ./waf install $ ./waf run_tests All tests passed.To run the python tests: 'run_python_tests' finished successfully (6m56.767s)$ ipython Again, Dmitry, thank you for all of your help. |
1 similar comment
Dimitry, Get rid of libav* I downloaded and extracted Essentia 2.1beta2 to $HOME/essentia-2.1_beta2. $ sudo apt-get install build-essential libyaml-dev libfftw3-dev libavcodec-dev libavformat-dev libavutil-dev libavresample-dev python-dev libsamplerate0-dev libtag1-dev I had previously done this libswresample is present: $ cd essentia-2.1_beta2/ Here's the message:
$ ./waf $ sudo ./waf install $ ./waf run_tests All tests passed.To run the python tests: 'run_python_tests' finished successfully (6m56.767s)$ ipython Again, Dmitry, thank you for all of your help. |
I've installed all of the dependencies that I can uncover, and when I do:
$ ./waf configure --mode=release --with-python --with-examples --with-vamp --with-cpptest
I get:
Setting top to : /home/roger/AudioSignalProcessing/essentia-2.0.1
Setting out to : /home/roger/AudioSignalProcessing/essentia-2.0.1/build
→ configuring the project in /home/roger/AudioSignalProcessing/essentia-2.0.1
→ Building in release mode
Checking for 'g++' (c++ compiler) : /usr/bin/g++
Checking for 'gcc' (c compiler) : /usr/bin/gcc
Checking for program pkg-config : /usr/bin/pkg-config
Checking for 'libavcodec' : yes
Checking for 'libavformat' : yes
Checking for 'libavutil' : yes
Checking for 'libswresample' : yes
Checking for 'taglib' : yes
Checking for 'yaml-0.1' : yes
Checking for 'fftw3f' : yes
Checking for 'samplerate' : yes
Checking for 'gaia2' : yes
Checking for program python : /usr/bin/python
Checking for python version : (2, 7, 6, 'final', 0)
Checking for library python2.7 in LIBDIR : yes
Checking for program /usr/bin/python-config,python2.7-config,python-config-2.7,python2.7m-config : /usr/bin/python-config
Checking for header Python.h : yes
================================ CONFIGURATION SUMMARY
The following algorithms will be included: ['AudioLoader', 'MonoLoader', 'EqloudLoader', 'EasyLoader', 'MonoWriter', 'AudioWriter']
The following algorithms will be included: ['Resample']
The following algorithms will be included: ['MetadataReader']
Gaia2 detected!
'configure' finished successfully (1.766s)The following algorithms will be included: ['GaiaTransform']
But when I do:
$ ./waf
I get a bunch of errors. Some are below and all seem to bee related:
../src/essentia/utils/audiocontext.cpp: In member function ‘int essentia::AudioContext::create(const string&, const string&, int, int, int)’:
../src/essentia/utils/audiocontext.cpp:107:10: error: ‘CODEC_ID_PCM_S16LE’ was not declared in this scope
case CODEC_ID_PCM_S16LE:
^
../src/essentia/utils/audiocontext.cpp:108:10: error: ‘CODEC_ID_PCM_S16BE’ was not declared in this scope
case CODEC_ID_PCM_S16BE:
^
../src/essentia/utils/audiocontext.cpp:109:10: error: ‘CODEC_ID_PCM_U16LE’ was not declared in this scope
case CODEC_ID_PCM_U16LE:
^
../src/essentia/utils/audiocontext.cpp:110:10: error: ‘CODEC_ID_PCM_U16BE’ was not declared in this scope
case CODEC_ID_PCM_U16BE:
^
and I end up with:
Build failed
-> task in 'essentia' failed (exit status 1): ...
Can anyone help? I am using Ubuntu 14.04.
The text was updated successfully, but these errors were encountered: