Page 1 of 1

x86 Version

Posted: April 28th, 2021, 7:25 pm
by JamesCRocks
Hi,

Where can I find the latest x86 Windows version of MPD? I have a new[ish] client machine from which I plan to run MPD but mpd.exe doesn't run presumably because it's Windows 10 Pro x86 whereas my other client is 64 bit. The machine processor is an Atom D525 (4Gb RAM, 500Gb HD) which is supposed to be 64 bit capable, but I can't get it to install so I can't upgrade.

Thanks

James

Re: x86 Version

Posted: April 29th, 2021, 11:25 am
by max
The official Windows build is 64 bit only. If you want to run MPD on 32 bit Windows, you need to build your own.

Re: x86 Version

Posted: April 29th, 2021, 4:27 pm
by JamesCRocks
max wrote: April 29th, 2021, 11:25 amThe official Windows build is 64 bit only. If you want to run MPD on 32 bit Windows, you need to build your own.
What does that mean? That I have to compile it myself? From my limited search, it looks like that might be an art all by itself.

James

Re: x86 Version

Posted: May 2nd, 2021, 5:03 am
by max
Yes, build and compile is the same thing in this context. It's a documented procedure.

Re: x86 Version

Posted: May 2nd, 2021, 6:15 pm
by skidoo
Have a look at https://www.musicpd.org/doc/html/user.h ... or-windows Cross compile static binary for Windows x86 under linux as described.

Re: x86 Version

Posted: May 2nd, 2021, 7:57 pm
by skidoo
On Debian testing i686 (yes, very old machine) Windows build of MPD failed. MPD latest from git.

Code: Select all

$ ../../win32/build.py --32
...

Code: Select all

checking whether byte ordering is bigendian... unknown
configure: error: unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help
Traceback (most recent call last):
  File "/home/user/src/MPD/output/win32/../../win32/build.py", line 120, in <module>
    x.build(toolchain)
  File "/home/user/src/MPD/python/build/autotools.py", line 59, in build
    build = self.configure(toolchain)
  File "/home/user/src/MPD/python/build/autotools.py", line 55, in configure
    subprocess.check_call(configure, cwd=build, env=toolchain.env)
  File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/user/src/MPD/output/win32/lib/src/libmodplug-0.8.9.0/configure', 'CC=/usr/bin/i686-w64-mingw32-gcc', 'CXX=/usr/bin/i686-w64-mingw32-g++', 'CFLAGS=-O2 -g -march=pentium3', 'CXXFLAGS=-O2 -g -march=pentium3', 'CPPFLAGS=-isystem /home/user/src/MPD/output/win32/lib/i686-w64-mingw32/root/include -DWINVER=0x0600 -D_WIN32_WINNT=0x0600 -D_FORTIFY_SOURCE=0 ', 'LDFLAGS=-L/home/user/src/MPD/output/win32/lib/i686-w64-mingw32/root/lib -static-libstdc++ -static-libgcc ', 'LIBS= ', 'AR=/usr/bin/i686-w64-mingw32-ar', 'RANLIB=/usr/bin/i686-w64-mingw32-ranlib', 'STRIP=/usr/bin/i686-w64-mingw32-strip', '--host=i686-w64-mingw32', '--prefix=/home/user/src/MPD/output/win32/lib/i686-w64-mingw32/root', '--enable-silent-rules', '--disable-shared', '--enable-static']' returned non-zero exit status 1.

Re: x86 Version

Posted: May 2nd, 2021, 11:17 pm
by skidoo
ok

Code: Select all

$ export ac_cv_c_bigendian=no
did the trick. But how to fix

Code: Select all

download https://dl.bintray.com/boostorg/release/1.75.0/source/boost_1_75_0.tar.bz2
Traceback (most recent call last):
  File "/home/elwood/src/MPD/output/win32/../../win32/build.py", line 119, in <module>
    if not x.is_installed(toolchain):
  File "/home/elwood/src/MPD/python/build/project.py", line 45, in is_installed
    tarball = self.download(toolchain)
  File "/home/elwood/src/MPD/python/build/project.py", line 42, in download
    return download_and_verify(self.url, self.md5, toolchain.tarball_path)
  File "/home/elwood/src/MPD/python/build/download.py", line 20, in download_and_verify
    urllib.request.urlretrieve(url, tmp_path)
  File "/usr/lib/python3.9/urllib/request.py", line 239, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.9/urllib/request.py", line 523, in open
    response = meth(req, response)
  File "/usr/lib/python3.9/urllib/request.py", line 632, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.9/urllib/request.py", line 561, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.9/urllib/request.py", line 641, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
Boost archive not availble :(

Re: x86 Version

Posted: May 3rd, 2021, 8:02 am
by max
That's unfortunate. But you can try updating to 1.76 which was released recently.

Re: x86 Version

Posted: May 3rd, 2021, 8:52 am
by skidoo
URL of Boost source archive changed. PR?

Re: x86 Version

Posted: May 8th, 2021, 10:37 am
by skidoo
@JamesCRocks> compiled a static linked 32 bit executable for Windows from git master. Size is around 110 MB, interessted?

@max> 110 MB? That is REALLY huge...

Re: x86 Version

Posted: June 5th, 2021, 6:25 pm
by JamesCRocks
skidoo wrote: May 8th, 2021, 10:37 am@JamesCRocks> compiled a static linked 32 bit executable for Windows from git master. Size is around 110 MB, interested?
If it works, yes, I would be.

James