Git Product home page Git Product logo

Comments (3)

paul-1 avatar paul-1 commented on July 1, 2024

Debian does not currently package a new enough version. The package they supply as libgpiod2 is really only version 1.6.3

Squeezelite requires libgpiod v 2.0.1 or newer https://mirrors.edge.kernel.org/pub/software/libs/libgpiod/

from squeezelite.

986ster avatar 986ster commented on July 1, 2024

See https://forums.slimdevices.com/forum/developer-forums/developers/106074-build-squeezelite/page3#post1677817 for an example of how to get it to compile on Debian.

from squeezelite.

cchristofr avatar cchristofr commented on July 1, 2024

Thank you for the links.

Below my Dockerfile if someone is interested.
I use libgpiod-2.0.2.tar.gz but a newer version can be used !


FROM balenalib/rpi-raspbian

MAINTAINER christo

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && apt-get install -y  apt-utils

RUN apt-get install -y \
    usbutils \
    libflac-dev \
    libfaad2  \
    libmad0 \
    libasound2-dev \
    libasound2 \
    libasound2-data \
    unzip \
    make gcc g++ \
    libc6 libc6-dev openssl libssl-dev libmad0-dev libvorbis-dev libmpg123-dev libsoxr-dev \
    liblirc-dev libfaad-dev \
#    gpiod libgpiod-dev \
    wget \
    git \
    autoconf automake autoconf-archive libtool build-essential raspberrypi-kernel-headers pkg-config help2man

# Debian does not currently package a new enough version. The package they supply as libgpiod2 is really only version 1.6.3
# Squeezelite requires libgpiod v 2.0.1 or newer

# https://github.com/ralph-irving/squeezelite/issues/227
# https://forums.slimdevices.com/forum/developer-forums/developers/106074-build-squeezelite/page3#post1677817

RUN cd ~ && \
    wget https://mirrors.edge.kernel.org/pub/software/libs/libgpiod/libgpiod-2.0.2.tar.gz && tar xvzf libgpiod-2.0.2.tar.gz && \
    cd libgpiod-2.0.2 && \
    ./configure && \
    make && \
    make install && \
    cd ~ \
    rm -rf libgpiod-2.0.2* && \
    ldconfig

RUN cd ~ && \
    wget https://github.com/ralph-irving/squeezelite/archive/master.zip && \
    unzip master.zip && \
    cd squeezelite-master && \
    sed  's/-DOPUS -DALAC//g' Makefile.rpi > Makefile2.rpi && \
    sed  's/-I.\/include\/opus -I.\/include\/alac//g' Makefile2.rpi > Makefile3.rpi && \
    make -f Makefile3.rpi && \
    mv squeezelite /usr/bin && \
    chmod +x /usr/bin/squeezelite && \
    cd ~ && \
    rm -rf master.zip squeezelite-master

# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

CMD squeezelite -o $SOUNDDEVICE -s $SERVER -n $CLIENTNAME -m $CLIENTMAC

from squeezelite.

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.