Huey11 wrote: 
> Hi, I simpy enable the plugin, go to the
> /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/C3PO/lib/Audio
> folder and remove or rename the Scan.pm to Scan.pm.ORG_NOOP. Then make a
> change to a plugin (most often select or deselect the classical.com
> plugin) to force a restart. Then upsampling works with 3CPO (reslting in
> earlier sent logs).
> 
> And yes it turns out there are several scan.pm in my arm setup:
> 
> > 
Code:
--------------------
  >   > 
  > root@lms:~# find / -iname scan.pm*
  > /usr/share/squeezeboxserver/CPAN/arch/5.28/Audio/Scan.pm
  > /usr/share/squeezeboxserver/CPAN/arch/5.30/Audio/Scan.pm
  > 
/usr/share/squeezeboxserver/CPAN/arch/5.24/arm-linux-gnueabihf-thread-multi-64int/Audio/Scan.pm
  > /usr/share/squeezeboxserver/CPAN/Media/Scan.pm
  > /usr/share/squeezeboxserver/lib/Audio/Scan.pm
  > 
/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/C3PO/lib/Audio/Scan.pm.ORG_NOOP
  > 
--------------------
> > 
> 
> The last line is "your" scan.pm which I renamed in this case, but can
> be removed in total as well.
> 
> First 11 lines of the other scan.pm's:
> > 
Code:
--------------------
  >   > package Audio::Scan;
  > 
  > use strict;
  > 
  > our $VERSION = '1.02';
  > 
  > require XSLoader;
  > XSLoader::load('Audio::Scan', $VERSION);
  > 
  > use constant FILTER_INFO_ONLY => 1;
  > use constant FILTER_TAGS_ONLY => 2;
  > 
--------------------
> > 
> 
> /usr/share/squeezeboxserver/CPAN/Media/Scan.pm is different:
> > 
Code:
--------------------
  >   > package Media::Scan;
  > 
  > use strict;
  > use base qw(Exporter);
  > 
  > use Media::Scan::Audio;
  > use Media::Scan::Image;
  > use Media::Scan::Error;
  > use Media::Scan::Progress;
  > use Media::Scan::Video;
  > 
  > # Log levels
  > use constant MS_LOG_ERR    => 1;
  > use constant MS_LOG_WARN   => 2;
  > use constant MS_LOG_INFO   => 3;
  > use constant MS_LOG_DEBUG  => 4;
  > use constant MS_LOG_MEMORY => 9;
  > 
  > # Flags
  > use constant MS_USE_EXTENSION   => 1;
  > use constant MS_FULL_SCAN       => 1 << 1;
  > use constant MS_RESCAN          => 1 << 2;
  > use constant MS_INCLUDE_DELETED => 1 << 3;
  > use constant MS_WATCH_CHANGES   => 1 << 4;
  > use constant MS_CLEARDB         => 1 << 5;
  > 
  > our $VERSION = '0.01';
  > 
  > our @EXPORT = qw(
  > MS_LOG_ERR MS_LOG_WARN MS_LOG_INFO MS_LOG_DEBUG MS_LOG_MEMORY
  > MS_USE_EXTENSION MS_FULL_SCAN MS_RESCAN MS_INCLUDE_DELETED
  > MS_WATCH_CHANGES MS_CLEARDB
  > );
  > 
  > require XSLoader;
  > XSLoader::load('Media::Scan', $VERSION);
  > 
  > =head2 new( \@paths, \%options )
  > 
  > Create a new Media::Scan instance and begin scanning.
  > ......etc
  > 
--------------------
> > 
> 
> and /usr/share/squeezeboxserver/lib/Audio/Scan.pm is different as
> well, but then same as "yours":
> > 
Code:
--------------------
  >   > package Audio::Scan;
  > 
  > use strict;
  > 
  > our $VERSION;
  > 
  > require XSLoader;
  > 
  > BEGIN {
  > foreach ('0.99', '0.93', '0.95', '0.94') {
  > eval { XSLoader::load('Audio::Scan', $_); };
  > 
  > if (!$@) {
  > $VERSION = $_;
  > last;
  > }
  > }
  > }
  > 
  > 
  > use constant FILTER_INFO_ONLY => 1;
  > use constant FILTER_TAGS_ONLY => 2;
  > 
--------------------
> > 
> 
> Hope this helps?

YEs!

that's exactly where I'm losing my mind on...

Just to be sure, please forgive my pedantry

LMS is reporting that you are now using Perl 5.30 and Audo::Scan 1.02,
correct?

If so, it looks like Scan.pm is loaded from:

/usr/share/squeezeboxserver/CPAN/arch/5.30/Audio/Scan.pm

that load the bin from

/usr/share/squeezeboxserver/CPAN/arch/5.30/x86_64-linux-thread-multi/auto/Audio/Scan.so

or do you have a different architecture to load from, like 

/usr/share/squeezeboxserver/CPAN/arch/5.30/aarch_64-linux-thread-multi/auto/Audio/Scan.so


or similar?

That 's the difference from your case and gentoo on ARM, where it does
not works and it try to use version 1.01,  and i could not understand
how it could be, given the source code.

Thanks for your Help.



________________________________________________________________________
Author of C-3PO plugin,  Squeezelite-R2, Falcon Web interface - See
www.marcoc1712.it
------------------------------------------------------------------------
marcoc1712's Profile: http://forums.slimdevices.com/member.php?userid=34842
View this thread: http://forums.slimdevices.com/showthread.php?t=105309

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

Reply via email to