Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: sbp on November 22, 2014, 10:54:04 AM
-
Hi I'm trying to build a squeezelite.tcz so we can add this player for piCore.
Squeezelite is a software player allowing us to plays music from a Squeezebox server. It can be found here: https://code.google.com/p/squeezelite/wiki/BuildInstructions
I used the raspberry specific makefile from here: https://github.com/ralph-irving/squeezelite Used the Makefile.rpi
However, I get this error when I try to build squeezelite using the makefile.
tc@box:/mnt/mmcblk0p2/SBP_compiled/Squeezelite$ make -f Makefile.rpi
cc -Wall -fPIC -O2 -DRESAMPLE -DFFMPEG -DVI.PORT -DDSD -I./include main.c -c -o main.o
In file included from /usr/include/errno.h:35:0,
from squeezelite.h:197,
from main.c:21:
/usr/include/bits/errno.h:24:26: fatal error: linux/errno.h: No such file or directory
# include <linux/errno.h>
^
compilation terminated.
Makefile.rpi:20: recipe for target 'main.o' failed
make: *** [main.o] Error 1
I'm using the most recent piCore6 beta1 version - can that be the problem?
But probably it is me that once again is out in deep water again.
Regards
Steen
-
Install linux-3.16.y_api_headers.tcz
-
Thanks for the suggestion.
Now it started to build fine, however, I had enabled decoding via ffmpeg and possibility for resample via soxr, and eventhough I had these packages installed the build process terminated premature.
I'm sure I need the packages:
soxr-dev.tcz and soxr.tcz
Unfortunately, I think it is above my capacity to make these two packages
cc -Wall -fPIC -O2 -DRESAMPLE -DFFMPEG -DVI.PORT -DDSD -I./include resample.c -c -o resample.o
resample.c:28:18: fatal error: soxr.h: No such file or directory
#include <soxr.h>
^
compilation terminated.
Makefile.rpi:20: recipe for target 'resample.o' failed
make: *** [resample.o] Error 1
If I remove the possibility to resample from the makefile (remove the oxr dependency), I can build a squeezelite executable successfully.
Regards
Steen
-
Regarding soxr.h check location, it can be an issue with /usr/include <-> / usr/local/include. Try symlinking it to the other location, it may help (or not).
-
Hi
It turned out that the header file soxr.h was not present anywhere.
Therefore, I extracted it from the source: soxr-o.1.1-Source.tar.xz and copied it to /usr/include. Probably not fully correct as I can see all the other files in /usr/include are symbolic links - but it worked.
Next run the Makefile.rpi and now Squeezelite is build successfully.
Belá - which directory would be the correct location for squeezelite?
Steen
-
Belá - which directory would be the correct location for squeezelite?
/usr/local
-
Hi Belá
As you know Greg and I have planned to make piCorePlayer into a piCorePlayer.tcz.
But we would like to do it correct, so we place the files at the correct location.
Until now piCorePlayer web pages and scripts have been located in:
/home/tc/www/cgi-bin - for cgi and sh files
/home/tc/www/css - for css file
/home/tc/www/images - for banner image etc
/home/tc/www/js - for js file
/home/tc/www/index.html
But what would be the correct structure for piCorePlayer in piCore?
Should we put it in
/var/www/
or /usr/lib/cgi-bin/ etc
or maybe /usr/local/piCorePlayer/ ?
Steen
-
/opt/picoreplayer or /usr/local/picoreplayer. I would put it in /opt.
-
/usr/local/piCoreplayer
Similar to mysql, firefox, go, etc.
Html content
/var/www/html
-
/opt/picoreplayer or /usr/local/picoreplayer. I would put it in /opt.
If you chosse /opt add it as an exception to /opt/xfiletool.lst as /opt is part of backup.