Compiling-Problems Squeezelite for SailfishOS

While trying to compile the Squeezelite command-line tool for SailfishOS, I’m stuck at the libfaad2 dependency:

> [defaultuser@JollaC2 ~]$ git clone https://github.com/ralph-irving/squeezelite.git
> Klone nach 'squeezelite'...
> remote: Enumerating objects: 2787, done.
> remote: Counting objects: 100% (1417/1417), done.
> remote: Compressing objects: 100% (186/186), done.
> remote: Total 2787 (delta 1279), reused 1239 (delta 1231), pack-reused 1370 (from 2)
> Empfange Objekte: 100% (2787/2787), 859.91 KiB | 2.17 MiB/s, fertig.
> Löse Unterschiede auf: 100% (2048/2048), fertig.
> [defaultuser@JollaC2 ~]$ cd squeezelite
> [defaultuser@JollaC2 squeezelite]$ make -f Makefile.pulse
> cc -Wall -fPIC -O2 -fcommon -std=gnu99  -DPULSEAUDIO vorbis.c -c -o vorbis.o
> cc -Wall -fPIC -O2 -fcommon -std=gnu99  -DPULSEAUDIO faad.c -c -o faad.o
> faad.c:24:10: schwerwiegender Fehler: neaacdec.h: Datei oder Verzeichnis nicht gefunden
>    24 | #include <neaacdec.h>
>       |          ^~~~~~~~~~~~
> Kompilierung beendet.
> make: *** [Makefile:181: faad.o] Fehler 1
> [defaultuser@JollaC2 squeezelite]$ devel-su pkcon install faad2-devel
> Password: 
> Auflösen                                                                                                                            [                                                                  ] (0%)  Paket nicht gefunden: faad2-devel
> Paket nicht gefunden: faad2-devel
> Ausführung des Befehls fehlgeschlagen: This tool could not find any available package.
> [defaultuser@JollaC2 squeezelite]$ devel-su pkcon install libfaad-devel
> Password: 
> Auflösen                                                                                                                            [                                                                  ] (0%)  Paket nicht gefunden: libfaad-devel
> Paket nicht gefunden: libfaad-devel
> Ausführung des Befehls fehlgeschlagen: This tool could not find any available package.
> [defaultuser@JollaC2 squeezelite]$ pkcon search faad
> Suche nach Details                                                                                                                                                                                                
> Starten                                                                                                                                                                                                           
> Software-Liste wird aktualisiert                                                                                                                                                                                  
> Abfragen                                                                                                                                                                                                         
> Fertig                                                                                                                                                                                                           
> Verfügbar       libfaad-2.8.8-1.aarch64 (openrepos-carmenfdezb)                 faad library
> Installiert     libfaad2-2.11.1-1.aarch64 (installed)                           Shared library part of faad2
> [defaultuser@JollaC2 squeezelite]$ devel-su pkcon install libfaad-2.8.8-1.aarch64
> Password: 
> Auflösen                                                                                                                            [                                                                  ] (0%)  Paket nicht gefunden: libfaad-2.8.8-1.aarch64
> Paket nicht gefunden: libfaad-2.8.8-1.aarch64
> Ausführung des Befehls fehlgeschlagen: This tool could not find any available package.
> [defaultuser@JollaC2 squeezelite]$ git clone https://github.com/nu774/faad2.git
> Klone nach 'faad2'...
> Username for 'https://github.com': Password for 'https://cd faad2@github.com': 
> remote: Invalid username or password.
> Schwerwiegend: Authentifizierung fehlgeschlagen für 'https://github.com/nu774/faad2.git/'
> [defaultuser@JollaC2 squeezelite]$

Why not just use binary? It works without issues

Sounds good, doesn´t work:

squeezelite squeezelite-pulse-2.0.0.1524-aarch64.tar.gz
[defaultuser@JollaC2 Downloads]$ ./squeezelite
./squeezelite: /lib64/libc.so.6: version GLIBC_2.35' not found (required by ./squeezelite) ./squeezelite: /lib64/libc.so.6: version GLIBC_2.33’ not found (required by ./squeezelite)
./squeezelite: /lib64/libc.so.6: version `GLIBC_2.34’ not found (required by ./squeezelite)

Also with squeezelite-2.0.0.1524-aarch64.tar.gz

ah true sorry I must’ve misremembered or used armv7hf

Protip LC_ALL=C so that others can understand the errors

also compiling anything on phone is not very smart

1 Like

Do you need faad support?

The squeezelite makefile has options to turn it off.

Something like

make OPTS="OPT_NO_FAAD"
2 Likes

Normally it does not need faad support. I will try that out, thanks for the helpful hint.

But is c00l a.f.
#20chars

edit: is the squeezelite build not in the upstream repos? Weird that the rootfs is so behind…

sfos builds as little software as possible