1) Motivation: I don't want to run a power-hungry PC 24/7 with spinning
fans etc, but I want something faster the a Raspberry Pi to run LMS (I
still use the web interface). There are number of fast, cheap SBC's out
there that handily out-perform the RPi3, such as OdroidC2 (which
supports an eMMC module for storage), ROCK64 (which has USB3 and eMMC).
Quad-Core ARM Cortex A53 64-Bit Processors and support for 2GB or 4GB of
1600MHz LPDDR3 memory, endow these tiny machines with similar power to
the x86 PCs many of us used as LMS servers back in the day.

2) Issue: ARM64/AARCH64 architectures are not currently supported in the
highly build Debian packages as of now. It seems you have to roll your
own.

3) My solution: Build Debian install packages using the method and
scripts supplied here:
https://github.com/Uplink03/logitechmediaserver-deb. This, in turn,
pulls together the source repositories from
https://github.com/Logitech/slimserver-vendor.git,
https://github.com/Logitech/slimserver.git and
https://github.com/Logitech/slimserver-platforms.git. After checking out
the repo

Code:
--------------------
    
  git clone --recursive -b public/7.9 
https://github.com/Uplink03/logitechmediaserver-deb.git
  
--------------------
I wanted to make sure I was using fully updated sources,  so I did the
following (probably not the right way to do it, but it worked for me).

Code:
--------------------
    
  cd logitechmediaserver-deb/source/vendor
  git pull https://github.com/Logitech/slimserver-vendor.git
  cd ../server
  git pull https://github.com/Logitech/slimserver.git
  cd  ../platforms/
  git pull https://github.com/Logitech/slimserver-platforms.git
  
--------------------

Now the only problem I has was that those CPAN libraries that use
automake/configure generally fail to complete the ./configure script on
64-bit ARM machines. To fix this, I modified
./logitechmediaserver-deb/source/vendor/CPAN/buildme.sh to copy the
platform's config.guess file into each of the unarchived source
directories, immediately before running ./configure. A suitable patch
for doing this is attached, but you might have to edit the path to
config.guess to suit your installation,(dpkg -L automake | grep guess)
will tell what it should be. In my case, it was
/usr/share/automake-1.15/config.guess. This simple trick is enough to
allow ./logitechmediaserver-deb/source/vendor/CPAN/buildme.sh to run to
completion without further issues.

Then, it is sufficient to the following command in
./logitechmediaserver-deb 

Code:
--------------------
    
  dpkg-buildpackage -rfakeroot -b -us -uc
  
--------------------


This should leave you with the following files, ready to install with
dpkg -i

Code:
--------------------
    
  rw-r--r-- 1 charles charles 4476976 Oct 20 21:16 
logitechmediaserver_7.9.0+lmce1_all.deb
  -rw-r--r-- 1 charles charles 2549430 Oct 20 21:16 
logitechmediaserver-code2000-font_7.9.0+lmce1_all.deb
  -rw-r--r-- 1 charles charles 4908774 Oct 20 21:16 
logitechmediaserver-cpan-bundle_7.9.0+lmce1_arm64.deb
  -rw-r--r-- 1 charles charles 1745448 Oct 20 21:15 
logitechmediaserver-firmware_7.9.0+lmce1_all.deb
  -rw-r--r-- 1 charles charles 3396910 Oct 20 21:16 
logitechmediaserver-html_7.9.0+lmce1_all.deb
  
--------------------


This is a reasonably easy route to follow, the only trickery being the
need to patch CPAN/buildme.sh to work around automake's config.guess
being so old in many packages.  Can anyone suggest a more elegant way to
solve this, that we could perhaps get merged into the official logitech
repo version of buildme.sh?


+-------------------------------------------------------------------+
|Filename: slimserver-vendor.patch                                  |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=23873|
+-------------------------------------------------------------------+


----------------------
"Dreamer, easy in the chair that really fits you..."
------------------------------------------------------------------------
dsdreamer's Profile: http://forums.slimdevices.com/member.php?userid=12588
View this thread: http://forums.slimdevices.com/showthread.php?t=108166

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to