WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Logitech Media Server (LMS) on TC.7  (Read 50756 times)

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #30 on: January 21, 2016, 10:52:54 AM »
Attached is the startup log. Most of the modules is load, but some still not.

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #31 on: January 21, 2016, 02:32:14 PM »
Paul,

please be so kind and share the missing CPAN modules, you've probably compiled them earlier and not included them to the perl tcz.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1258
Re: Logitech Media Server (LMS) on TC.7
« Reply #32 on: January 21, 2016, 02:59:29 PM »
Paul,

please be so kind and share the missing CPAN modules, you've probably compiled them earlier and not included them to the perl tcz.

Again, I have it running with the perl extension as supplied.   You started from a debian source.   I'm starting from the git source.   No other download is required.   I'm not exactly sure where you went wrong.......but I'm going to put my work into finishing the extension.   I had a discussion with Bela regarding how to setup the extension for piCore.  Give me a day or two to build and test.....I will post it here when it's ready for a beta test.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1258
Re: Logitech Media Server (LMS) on TC.7
« Reply #33 on: January 21, 2016, 11:41:19 PM »
Okay....nothing good on TV tonight, so I put this together.

I've tested on base install on an RPI2.   I have not tested on armv6 devices.   Please read the info files.

https://www.dropbox.com/sh/qj0hrk42tiepokl/AAApIaR9_mpmmHor0SZPPGhZa?dl=0


*****Please make sure you have plenty of disk space.  #resizethatpartition


Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #34 on: January 22, 2016, 03:19:33 AM »
Hi Paul,

I've tested your tcz on clean piCore 7.0. I've installed only your perl-5.20.3.tcz and slimserver.tcz.
The perl was not found, need this:
Code: (bash) [Select]
sudo ln -sf /usr/local/perl5/bin/perl /usr/bin
Than started slimserver with:
Code: (bash) [Select]
/usr/local/slimserver/slimserver.pl

It doesn't start and reports only: "Illegal Instruction". Which I've got when tried to use incompatible CPAN module.
It's really nightmare with this perl version issues.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Logitech Media Server (LMS) on TC.7
« Reply #35 on: January 22, 2016, 03:37:39 AM »
It may happed when application built on armv7 (RPi2) without specifiying armv6 target.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #36 on: January 22, 2016, 06:11:38 AM »
Béla, you're right! Than I need the perl specified for armv6.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Logitech Media Server (LMS) on TC.7
« Reply #37 on: January 22, 2016, 06:20:58 AM »
Béla, you're right! Than I need the perl specified for armv6.

piCore extensions built for armv6; same used on both armv6 and armv7 except few can't built for armv6 due to assembly parts. You do not see performance boost building for armv7.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1258
Re: Logitech Media Server (LMS) on TC.7
« Reply #38 on: January 22, 2016, 09:15:42 AM »
So you are using a rpi model b? 

I only tested on an rpi2.    I might have missed a flag when compiling......you have to override everything with perl, and it doesn't use a "normal" configure script for compilation.    I'll take a look at it tonight.

I have a B+ to test on, which I'll do.

Now that I've had a chance to sleep on it, I'm going to change how I set the storage directory.   Symlinking in the extension startup script is a bit messy in my mind, and makes it inflexible for the user as to where they store data.   I'm going to set the data directories via command line switches, which means that there will be a startup script, rather than running slimserver.pl directly.


Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #39 on: January 22, 2016, 01:16:01 PM »
Quote
piCore extensions built for armv6; same used on both armv6 and armv7 except few can't built for armv6 due to assembly parts. You do not see performance boost building for armv7.

Béla, for sure, I know that you're doing maximum for support piCore and it's impossible to have everything right now.
Hope, that Paul will provide patched version of the perl which will work for armv6 too and than we may place it to the repo to support such a specific applications like LMS which need the 5.20 version and don't work with the latest version.
I'll help to test on armv6, means on B and B+ boards.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Logitech Media Server (LMS) on TC.7
« Reply #40 on: January 22, 2016, 01:51:27 PM »
There are no need for patches, just the usual staff as with any other build on RPi2, specify architecture and fpu in CFLAGS and CXXFLAGS env vars. Nothing Perl specific. You can check how piCore stock versions built in the repos. Config files are there. Repo version works fine on all RPi boards.


Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1258
Re: Logitech Media Server (LMS) on TC.7
« Reply #41 on: January 22, 2016, 05:08:54 PM »
Béla, for sure, I know that you're doing maximum for support piCore and it's impossible to have everything right now.
Hope, that Paul will provide patched version of the perl which will work for armv6 too and than we may place it to the repo to support such a specific applications like LMS which need the 5.20 version and don't work with the latest version.
I'll help to test on armv6, means on B and B+ boards.

We'll get it resolved......sorry I overlooked the armv6 support.   I was rushing because I know you were chomping at the bit.

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #42 on: January 24, 2016, 03:35:30 AM »
Hi Paul,

any news about the updated perl supporting armv6? I've tried to rebuild all the modules, it took all the night, but DBIx::Class (which takes many hours of building) is not working on armv6, but only on armv7. Strange, that the rest is working fine after rebuild.



Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Logitech Media Server (LMS) on TC.7
« Reply #43 on: January 24, 2016, 04:13:39 AM »
I've tried to rebuild all the modules, it took all the night, but DBIx::Class (which takes many hours of building) is not working on armv6, but only on armv7. Strange, that the rest is working fine after rebuild.

Perl modules may be native Perl or containing C code. Native Perl are not architecture dependent. When building do you specify GCC flags for armv6? Which GCC compiler used on which platform/version?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline jgrulich

  • Sr. Member
  • ****
  • Posts: 341
    • GRULICH DESIGN - R&D Lab.
Re: Logitech Media Server (LMS) on TC.7
« Reply #44 on: January 24, 2016, 04:25:22 AM »
Béla, I've used "standard set" of compilers and accessories in compile-essentials, linux api headers, pkg-config, bc and binutils.
Than I've accepted  default config for
Code: (bash) [Select]
sudo perl -MCPAN -e shell
and
Code: (bash) [Select]
cpan[1]> install DBIx::Class