Giter VIP home page Giter VIP logo

Comments (1)

JorenSix avatar JorenSix commented on May 30, 2024

Hey Guillem,

I have looked into it. It is indeed a problem with the packed precompiled JGaborator library. In the background it uses a JNI bridge to a c++ library. In the background... if all goes well. It becomes the foreground if things go wrong :)

Anyhow, after installing the precompiled library in a directory (in the docker container) it expects:

cd /usr/lib/x86_64-linux-gnu
wget https://github.com/JorenSix/JGaborator/blob/master/build/precompiled/libjgaborator.so 

I am presented with the following error:

/usr/lib/x86_64-linux-gnu/libjgaborator.so: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /usr/lib/x86_64-linux-gnu/libjgaborator.so)`

Buster does indeed ship GLIBC 2.28 Ubuntu 20.04 ships with 2.31. So to solve that, the following file compiles a libjgaborator.so from source:

FROM debian:buster
RUN apt-get update && apt-get install -y --no-install-recommends git default-jdk ant ffmpeg
RUN git clone --depth 1 https://github.com/JorenSix/Panako.git /panako
ENV JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
WORKDIR /panako/build
RUN ant && ant install && ant doc
RUN cp panako /usr/local/bin
RUN cp config.properties ~/.panako/
RUN apt-get install -y --no-install-recommends build-essential
RUN git clone --depth 1 https://github.com/JorenSix/JGaborator
WORKDIR /panako/build/JGaborator/gaborator/
ENV JAVA_HOME=/usr/lib/jvm/default-java
RUN make
RUN cp ../build/precompiled/libjgaborator.so /usr/lib/x86_64-linux-gnu/
CMD panako store /panako/test/be/panako/tests/res/11266.mp3 STRATEGY=PANAKO

Alternatively you could also compile it outside a docker container and simply copy it, which would make it more lightweight.

from panako.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.