Skip to content Skip to sidebar Skip to footer

Error Compiling Libvlc For Android

i tried to compile LibVLC for android on ubuntu 16.04 and got the follwing error: priv.c:122: error: undefined reference to 'hw_get_module' clang++: error: linker command failed w

Solution 1:

Leaving some tips for people going through the same hell(I compile on ubuntu 16.04):

  1. Make sure you have dependencies and everything is up to date. It's superbly annoying but missing dependencies surface as a totally irrelevant error.

    sudo apt-get install automake ant autopoint cmake build-essential libtool patch pkg-config protobuf-compiler ragel subversion unzip git openjdk-8-jre openjdk-8-jdk 
    sudo apt-get upgrade ant autoconf automake autopoint cmake gawk gcc g++ libtool m4 patch pkg-config libprotobuf-dev libprotobuf-c0-dev protobuf-c-compiler ragel subversion unzip
    

    protobuf and gettext are not in the above since you can't install the latest versions via apt, so you should download and compile them.

  2. Delete contrib folders if it fails to compile for some reason Sadly compile.sh is far from perfect and assumes sub modules are built fine as long as folders are there.
  3. Failing to download gradle zip file once causes the script to download the file in endless loop The script does not overwrite the zip file it first downloaded, so once it fails and unless you manually remove it, the script looks only at that failed zip download and exits.
  4. compile.sh fails Re-run the script until the same error appears.

Post a Comment for "Error Compiling Libvlc For Android"