dCore Import Debian Packages to Mountable SCE extensions > dCore x86 Imported Extensions
Logitech Media Server
pimartin:
Hello everyone,
I'd like to revive this threat because I would really like havĂng LMS running on a PiCoPlayer for a standalone internet Radio project I'm doing.
So far I tried redoing the steps that have been suggested here in previous answers on my Pi with a PiCoPlayer image to start with:
First I was running out of space unpacking and packaging the .deb package, so I moved my working directory to the mounted ext4 partition, in piCorePlayer thats mnt/mmcblk0p2. There I made a folder to do all the work in and gave it user rights.
After building the logitechmediaserver.tcz, I got the same errors of a missing bootstrap file, so I linked it to the right place which worked out fine. Then I had the same errors of missing perl modules, and thats where I'm stuck right now. Using cpan to install/compile them, they just wont build.
Here's a summary of what I did:
--- Code: ---# giving user rights to a working folder I created before
sudo chown -R tc /mnt/mmcblk0p2/install_lms
# installing missing packages + nano (because I'm horrible with vi ;) )
tce-load -wi perl5.tcz libjpeg-turbo.tcz libpng.tcz giflib.tcz ffmpeg.tcz nano
# downloading lms debian package
wget http://debian.slimdevices.com/pool/main/l/logitechmediaserver/logitechmedi$
# unpack
ar -x logitechmediaserver_7.8.1~1426671206_all.deb
# create folder pkg
mkdir pkg
# more unpacking into pkg folder
tar xvf data.tar.gz -C pkg
# create folder for startup script
mkdir -p pkg/usr/local/tce.installed
# place startup script made by Jason W
cp logitechmediaserver-pi pkg/usr/local/tce.installed/logitechmediaserver-pi
# make it executable
sudo chmod -R 775 pkg/usr/local/tce.installed
sudo chown -R root:staff pkg/usr/local/tce.installed
# pack tcz file
mksquashfs pkg/ /etc/sysconfig/tcedir/optional/logitechmediaserver.tcz -noappend
# sove the bootstrap issue
sudo ln -sf /usr/share/perl5/Slim/ /usr/local/lib/perl5/site_perl/5.20.1/
# install compiler for installing perl modules with cpan
tce-load -wo compile-essentials
--- End code ---
Up to that point everything works out but as I said, installing the perl-modules i get errors.
E.g. sudo cpan JSON::XS terminates with
--- Code: ---compilation terminated.
Makefile:331: recipe for target 'XS.o' failed
make: *** [XS.o] Error 1
MLEHMANN/JSON-XS-3.01.tar.gz
make -- NOT OK
--- End code ---
Every help is welcome!
Martin
Rich:
Hi pimartin
--- Quote ---
--- Code: ---compilation terminated.
Makefile:331: recipe for target 'XS.o' failed
make: *** [XS.o] Error 1
MLEHMANN/JSON-XS-3.01.tar.gz
make -- NOT OK
--- End code ---
--- End quote ---
There probably some errors listed prior to that. In order for someone to help you they will probably want to see them.
pimartin:
--- Quote ---There probably some errors listed prior to that
--- End quote ---
indeed...
seems limits.h is missing. I googled around and thought its part of the linux headers so i loaded linux-3.18.y_api_headers.tcz but i still get the same errors
--- Code: ---In file included from /usr/include/bits/posix1_lim.h:160:0,
from /usr/include/limits.h:143,
from /usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.9.2/include-fixed/limits.h:168,
from /tmp/tcloop/gcc/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.9.2/include-fixed/limits.h:168,
from /tmp/tcloop/gcc/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.9.2/include-fixed/syslimits.h:7,
from /tmp/tcloop/gcc/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.9.2/include-fixed/limits.h:34,
from /usr/include/sys/param.h:26,
from /usr/local/lib/perl5/5.20.1/armv6l-linux-thread-multi/CORE/perl.h:751,
from XS.xs:2:
/usr/include/bits/local_lim.h:38:26: fatal error: linux/limits.h: No such file or directory
#include <linux/limits.h>
^
compilation terminated.
Makefile:331: recipe for target 'XS.o' failed
make: *** [XS.o] Error 1
MLEHMANN/JSON-XS-3.01.tar.gz
make -- NOT OK
--- End code ---
So what do I miss?
Martin
pimartin:
Alright, found it. the file was part of the headers, but it sits in /usr/include/linux instead of /usr/include. Linking it with
--- Code: ---sudo ln -sf /usr/include /usr/include/linux/
--- End code ---
fixed the problem. JSON::XS is compiling right now. I hope the others will too... ???
Rich:
Hi pimartin
Maybe you are missing glibc_base-dev.tcz. Did you install compile-essentials.tcz?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version