Re: LMS for Windows using Strawberry Perl
ralphy <ralphy.aeeek0-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
I was able to build LMS using PAR-Packer and have created a
'self-extracting zip file'
(https://sourceforge.net/projects/lmsclients/files/utility/slimserver-8.3.0-1642205175.exe/download)
for testing.
The files install into c:\program files\squeezebox by default so you
need to run it with admin rights.
Then launch runslimserver.cmd to start the server.
Here's the script I used to compile the executables and you need to
include some perl DLLs too.
Code:
--------------------
@ECHO ON
C:
CD \Strawberry
CALL cpanm -n PAR::Packer
CD "\Program Files\Squeezebox\slimserver"
CALL pp -o ..\slimserver.exe -M Win32:: -X XML::Parser -X XML::Parser::Expat -X YAML::XS -X Class::XSAccessor -X Template::Stash::XS slimserver.pl
CALL pp -o ..\scanner.exe -M Win32:: -X XML::Parser -X XML::Parser::Expat -X YAML::XS -X Class::XSAccessor -X Template::Stash::XS scanner.pl
CALL pp -o ..\gdresize.exe -M Win32:: -X XML::Parser -X XML::Parser::Expat -X YAML::XS -X Class::XSAccessor -X Template::Stash::XS gdresize.pl
CALL pp -o ..\gdresized.exe -M Win32:: -X XML::Parser -X XML::Parser::Expat -X YAML::XS -X Class::XSAccessor -X Template::Stash::XS gdresized.pl
CALL pp -o ..\cleanup.exe -M Win32:: -X XML::Parser -X XML::Parser::Expat -X YAML::XS -X Class::XSAccessor -X Template::Stash::XS cleanup.pl
CD \Strawberry\c\bin
COPY libexpat-1__.dll "\Program Files\Squeezebox\"
COPY libgif-7__.dll "\Program Files\Squeezebox\"
COPY libjpeg-9__.dll "\Program Files\Squeezebox\"
COPY libpng16-16__.dll "\Program Files\Squeezebox\"
COPY zlib1__.dll "\Program Files\Squeezebox\"
COPY libcrypto-1_1-x64__.dll "\Program Files\Squeezebox\"
COPY libssl-1_1-x64__.dll "\Program Files\Squeezebox\"
COPY libwinpthread-1.dll "\Program Files\Squeezebox\"
COPY libgcc_s_seh-1.dll "\Program Files\Squeezebox\"
COPY libstdc++-6.dll "\Program Files\Squeezebox\"
--------------------
This tricky part was excluding the modules that are included in LMS
that are also in Strawberry perl, otherwise the LMS modules fail to
load.
I've tested the installer on Windows 10 1909 and 21H2 64-bit as well as
Windows 7 SP1 64-bit.
I now need to script the entire build process which on Windows is going
to be a pain.
Ralphy
*1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.
------------------------------------------------------------------------
ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=115740