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

Libopus does not build #8

Open
arnaudleyder opened this issue Oct 4, 2014 · 3 comments
Open

Libopus does not build #8

arnaudleyder opened this issue Oct 4, 2014 · 3 comments

Comments

@arnaudleyder
Copy link

Hi,

Your work on building external libs onto ffmpeg with emscripten is great.
I am wondering if you tried and had success with libopus (1.1 for my case)? I am on Ubuntu 14.04 64bits (I also tried on a debian 7 machine but I have the same below error).

I can build libopus with emscripten fine (I had to fix some __malloc_hook errors first).

But when I try to build ffmpeg linking to libopus with your build script (or others for that matter) it fails.

ffmpeg config.log says:
libopus.a: error adding symbols: Archive has no index; run ranlib to add one
collect2: error: ld returned 1 exit status
ERROR: opus not found

Now I am not sure what it means exactly (running ranlib on libopus.a does not change a thing).
Have you tried building libopus with your script? Can you suggest any direction for what could be causing the above issue?

Thanks
Arnaud

@ajithreddy
Copy link

Hey arnaudleyder,
I am also trying to build libopus but stuck with __malloc_hook errors. Can you please help me in fixing them

Thanks
Ajith

@arnaudleyder
Copy link
Author

Hi Ajith, I was never able to build libopus into ffmpeg with emscripten. After __malloc_hook errors I had other errors to fix. Libopus was not a requirement for my project so I just moved along ... To fix __malloc_hook I just followed the errors at compilation time and fixed them in the source code (I commented some code or replaced unsupported functions for my linux dist). Maybe later I will look at it again. If I found something I will fork.

@ajithreddy
Copy link

Hi Arnaud,
Thanks for the quick reply. I just commented __malloc_hook references and tried to build the libopus. I was able to run the ./configure, make, make install for libopus. But again got stuck in ./configure --enable-libopus of ffmpeg. It throwed an error :

check_pkg_config opus opus_multistream.h opus_multistream_decoder_create
ERROR: opus not found

I checked and found all the opus related files were correctly getting generated but ffmpeg was not able to find them.There was this line in 'configure' of ffmpeg which said:

enabled libopus && require_pkg_config opus opus_multistream.h opus_multistream_decoder_create

Since anyway all the files are correctly getting generated, so commented that check and ran the ./configure --enable-libopus. This went fine. But I think my ffmpeg.js file which got generated did not contain anything related to libopus. I am still trying hard to find a way.

Sorry for the detailed explanation. I just wanted you to know what I did and point out if there are any errors.

Thanks
Ajith

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

2 participants