Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when compiling MAME for Windows(uwp) #2466

Closed
wiired24 opened this issue Jul 12, 2017 · 11 comments
Closed

Error when compiling MAME for Windows(uwp) #2466

wiired24 opened this issue Jul 12, 2017 · 11 comments

Comments

@wiired24
Copy link

Hello,

I cannot get MAME to successfully build for Windows universal windows platform. I currently have the msys build tools for windows as well as Visual Studio 2015 with Update 3 installed. I've also grabbed the necessary dependencies for building mame from upstream via pacman i.e. python,gcc ,
Here is the error that I'm encountering. Any help would be appriciated. Thanks

Generated 1972 opcode handlers from 523 primitives
make[1]: Leaving directory '/c/Users/Public/homebrew/mame/src/devices/cpu/m68000'
c:/Users/Public/homebrew/mame/scripts/genie.lua:536: File definition for TARGET=mame SUBTARGET=mame does not exist
stack traceback:
[C]: in function 'error'
c:/Users/Public/homebrew/mame/scripts/genie.lua:536: in main chunk
[C]: in upvalue 'builtin_dofile'
[string "premake = { }..."]:84: in function 'dofile'
[string "_WORKING_DIR = os.getcwd()..."]:45: in function '_premake_main'
make: *** [makefile:1061: vs2015_uwp] Error 1

@Bavarese
Copy link
Contributor

Bavarese commented Jul 13, 2017

No experience with UWP here (i build on Win 7 64 bit).
Try "make clean" and use a stable source (0.187 for example).

Another advice: be careful when you set up a new environment.
You get a brand new GCC if you follow the update instructions on the developer wiki (like i did).

In case your GCC is newer than 6.3.0, build problems will arise. I had to start from scratch and roll back to the libraries and (MINGW-)binaries available on the wiki.

Specifiying both TARGET and SUBTARGET also looks a bit suspicious to me (SUBTARGET=mess or SUBTARGET=mame, nothing else).

What is the exact command you entered (make -j3 ...) ?

@wiired24
Copy link
Author

wiired24 commented Jul 13, 2017

make vs2015_uwp is the command I typed

I have also tried just typing "make" as well and i recieve the exact same error as well.

All the official instructions on the MAME Tools page say is to just type "make" after cloning MAME.
In my case i'm building for WIndows UWP. By scanning through the makefile I seen that MAME does support building for Windows UWP, which is what I'm attempting to build for.

EDIT: The version of GCC I'm using is 6.3.0 nothing newer

@wiired24
Copy link
Author

I've also tried typing makevs2015_uwp SUBTARGET=mame and I get the exact same error

@rb6502
Copy link
Contributor

rb6502 commented Jul 13, 2017

UWP (Windows Store) is not a supported-for-end-users configuration. Either you figure out how to build it or you leave it alone. To build for classic Windows in Visual Studio, use "make vs2015" and then open the resulting .SLN file in VS 2015 Update 3 (or VS 2017 with the VS2015 compiler option ticked).

@rb6502 rb6502 closed this as completed Jul 13, 2017
@wiired24
Copy link
Author

wiired24 commented Jul 13, 2017

@rb6502 I have tried typing make vs2015 as well. Just like the official github page says. Again I receive the exact same error, Just telling me to "Figure it out" doesn't help me in the slightest. If it were the case that I could just figure it out I wouldn't be asking for assistance.

To be clear:
Just Typing make fails with the same error
Typing make vs2015 fails with the same error
Typing make vs2015_uwp fails with the same error

@rb6502
Copy link
Contributor

rb6502 commented Jul 13, 2017

First off, you cannot use foreign Python to compile MAME; this is the root of your failure.

You must install the toolchain following EXACTLY the instructions at http://mamedev.org/tools/

If you miss Python or GCC or other things after following those instructions, you did it wrong as they are all included automatically with that installer.

@wiired24
Copy link
Author

I followed the instructions over on the tools page for setting everything up exactly to the T. After setting up the Git environment with git config --global core.autocrlf true, I did a git clone to pull the latest version of the MAME Source Code. Then when I was told to type make It gave me an error about Python not being in my path. To resolve that error using Pacman I installed Python. Then I received an error about GCC so I installed version 6.3.0 of GCC and was able to move past that error as well.

Until I got to where I'm about now. Which is where it finishes compressing and tries to build the m6800 CPU and it fails with the error message above. I have also tried removing my installation of both Python and GCC and to no avail.

@wiired24
Copy link
Author

I'll try installing msys64 again I'm just unsure where I went wrong

@wiired24
Copy link
Author

Upon doing a fresh installation of msys64 I get this

$ python
-bash: python: command not found

vanit@DESKTOP-KUACGG5 MSYS ~
$ gcc
-bash: gcc: command not found

It can't seem to find either Python or GCC

@wiired24
Copy link
Author

@rb6502 Hey I figured it out. The problem was I was using the msys shell and not the MinGW32 shell. I simply ran a make clean and started the build process over again and I successfuly was able to generate a VS2015 UWP Project :)

@OOKAMIFR
Copy link

OOKAMIFR commented Feb 4, 2021

@rb6502 Hey I figured it out. The problem was I was using the msys shell and not the MinGW32 shell. I simply ran a make clean and started the build process over again and I successfuly was able to generate a VS2015 UWP Project :)

hello
also generated successfully uwp project but don't find how to compile it and have uwp file
many thanks for help about :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants