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

Can't compile with recent emscripten. #85

Narsil opened this issue Dec 2, 2019 · 0 comments

Can't compile with recent emscripten. #85

Narsil opened this issue Dec 2, 2019 · 0 comments


Copy link

@Narsil Narsil commented Dec 2, 2019

I have a series of error trying to compile with latest emscripten.

Here is my build commands

apt-get update
apt-get -y install wget python git automake libtool build-essential cmake libglib2.0-dev closure-compiler

cd /root # or /home/whatever
# Not available anymore
# wget
# tar xzvf emsdk-portable.tar.gz
# cd emsdk-portable
# ./emsdk update
git clone
cd emsdk
./emsdk install latest
./emsdk activate latest
source ./

cd /root # or /home/whatever
git clone
cd ffmpeg.js
git submodule init
git submodule update --recursive

make all

I have a few different errors, and I can't seem to clean the last one.

1. Error compiling fribidi:

I have an error in libtool in build/fribidi. It does not contain global_symbol_pipe. I can fix by seding libtool manually but it seems a bit like a hack (or remove NM=llvm-nm in the ffmpeg.js makefile)


shared:ERROR: Attempt to set a non-existent setting: 'OUTLINING_LIMIT'
Just removed the option in the Makefile

3. Can't find libopus with pkg-config

Seems related to another issue linked here (emscripten-core/emscripten#3280, )
Just removed --enable-libopus in the ffmpeg option for the time being

4. Ranlib error

Error is
wasm-ld: error: libavfilter/libavfilter.a: archive has no index; run ranlib to add one

Just added --ranlib=emranlib to Makefile FFMPEG_COMMON_OPTIONS.

5. Duplicate symbols

The build now says that some symbols are duplicated

wasm-ld: error: duplicate symbol: __small_vsprintf
>>> defined in /home/nicolas/src/ffmpeg.js/build/fribidi/dist/lib/
>>> defined in /home/nicolas/src/ffmpeg.js/build/freetype/dist/lib/

I can't seem to fix this. Tried to add --ar=emar as suggested some places but it does not seem to be enough.

Any ideas on the last error ? Did any of the previous fix could have damaged the build ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.