kodi-game / game.libretro.mame

MAME - Multiple Arcade Machine Emulator
https://github.com/libretro/mame
0 stars 3 forks source link

MAME requires Python to build on windows #1

Open garbear opened 8 years ago

garbear commented 8 years ago

from the jenkins log:

[ 75%] Performing build step for 'mame'
mingw32-make.exe REGENIE=1 VERBOSE=1 NOWERROR=1 PYTHON_EXECUTABLE=python2 CONFIG=libretro  LIBRETRO_OS="win" ARCH="" LIBRETRO_CPU="x86_64" 
process_begin: CreateProcess(NULL, uname -m, ...) failed.
mingw32-make.exe[1]: Entering directory `C:/jenkins/slave/workspace/WIN-32/project/cmake/addons/build/mame/src/mame'
mingw32-make.exe[1]: Leaving directory `C:/jenkins/slave/workspace/WIN-32/project/cmake/addons/build/mame/src/mame'
makefile:736: *** Python is not available in path.  Stop.
mingw32-make.exe: *** [build] Error 2
NMAKE : fatal error U1077: 'call' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.

@wsnipex, @montellese, can we somehow add python as a dependency similar to msys and mingw?

wsnipex commented 8 years ago

no idea how this works on windows, but python is probably pre-compiled there, just like msys and mingw. According to https://github.com/xbmc/xbmc/blob/master/project/BuildDependencies/scripts/0_package.list#L48 the package name should be "python". Try adding it to https://github.com/kodi-game/game.libretro.mame/tree/master/depends/windows

But on all other platforms this could potentially be a huge pita, depending on how python is used. Is it for host or target platform? Is it only needed for building or at runtime?

garbear commented 8 years ago

This is for host at buildtime. I don't think MAME uses python other than building.

Montellese commented 8 years ago

In the Kodi buildsystem (at least on win32) we don't have anything that requires python during build time so we'd have to create that from scratch. The prebuilt python package that is downloaded on win32 as a build dependency does not contain the python.exe executable but only the libraries (DLLs and python modules) so that won't be of much help.

garbear commented 8 years ago

I can't find a way around requiring python while building mame on windows. How much work would packaging prebuilt python be?