libretro / mame2016-libretro

Late 2016 version of MAME (0.174) for libretro. Compatible with MAME 0.174 sets.
Other
33 stars 40 forks source link

MINGW32 is not set. Stop. Cannot compile with MSYS2 #9

Open runvnc opened 7 years ago

runvnc commented 7 years ago

I am trying to compile on Windows 10 using various recent MSYS2 installs. I have tried the Msys2 MinGW 64-bit and 32 bit shells. This is the error I get:

makefile:942: *** MINGW32 is not set.  Stop.

I followed the directions here https://bot.libretro.com/docs/compilation/windows/ for installing build tools etc with pacman and other directions.

 pacman -S --noconfirm --needed wget git make mingw-w64-x86_64-toolchain mingw-w64-x86_64-ntldd mingw-w64-x86_64-zlib mingw-w64-x86_64-pkg-config mingw-w64-x86_64-SDL2 mingw-w64-x86_64-libxml2 mingw-w64-x86_64-freetype mingw-w64-x86_64-python3 mingw-w64-x86_64-ffmpeg
warning: wget-1.19.1-1 is up to date -- skipping
warning: git-2.12.1-1 is up to date -- skipping
warning: make-4.2.1-1 is up to date -- skipping
:: There are 17 members in group mingw-w64-x86_64-toolchain:
:: Repository mingw64
   1) mingw-w64-x86_64-binutils  2) mingw-w64-x86_64-crt-git  3) mingw-w64-x86_64-gcc  4) mingw-w64-x86_64-gcc-ada  5) mingw-w64-x86_64-gcc-fortran
   6) mingw-w64-x86_64-gcc-libgfortran  7) mingw-w64-x86_64-gcc-libs  8) mingw-w64-x86_64-gcc-objc  9) mingw-w64-x86_64-gdb
   10) mingw-w64-x86_64-headers-git  11) mingw-w64-x86_64-libmangle-git  12) mingw-w64-x86_64-libwinpthread-git  13) mingw-w64-x86_64-make
   14) mingw-w64-x86_64-pkg-config  15) mingw-w64-x86_64-tools-git  16) mingw-w64-x86_64-winpthreads-git  17) mingw-w64-x86_64-winstorecompat-git

Enter a selection (default=all):
warning: mingw-w64-x86_64-binutils-2.28-1 is up to date -- skipping
warning: mingw-w64-x86_64-crt-git-5.0.0.4817.b0e7567e-1 is up to date -- skipping
warning: mingw-w64-x86_64-gcc-6.3.0-2 is up to date -- skipping
warning: mingw-w64-x86_64-gcc-ada-6.3.0-2 is up to date -- skipping
warning: mingw-w64-x86_64-gcc-fortran-6.3.0-2 is up to date -- skipping
warning: mingw-w64-x86_64-gcc-libgfortran-6.3.0-2 is up to date -- skipping
warning: mingw-w64-x86_64-gcc-libs-6.3.0-2 is up to date -- skipping
warning: mingw-w64-x86_64-gcc-objc-6.3.0-2 is up to date -- skipping
warning: mingw-w64-x86_64-gdb-7.12.1-2 is up to date -- skipping
warning: mingw-w64-x86_64-headers-git-5.0.0.4819.e4dfb654-1 is up to date -- skipping
warning: mingw-w64-x86_64-libmangle-git-5.0.0.4760.d3089b5-1 is up to date -- skipping
warning: mingw-w64-x86_64-libwinpthread-git-5.0.0.4816.8692be6a-1 is up to date -- skipping
warning: mingw-w64-x86_64-make-4.2.1-1 is up to date -- skipping
warning: mingw-w64-x86_64-pkg-config-0.29.2-1 is up to date -- skipping
warning: mingw-w64-x86_64-tools-git-5.0.0.4760.d3089b5-1 is up to date -- skipping
warning: mingw-w64-x86_64-winpthreads-git-5.0.0.4816.8692be6a-1 is up to date -- skipping
warning: mingw-w64-x86_64-winstorecompat-git-5.0.0.4760.d3089b5-1 is up to date -- skipping
warning: mingw-w64-x86_64-ntldd-git-r15.e7622f6-2 is up to date -- skipping
warning: mingw-w64-x86_64-zlib-1.2.11-1 is up to date -- skipping
warning: mingw-w64-x86_64-pkg-config-0.29.2-1 is up to date -- skipping
warning: mingw-w64-x86_64-SDL2-2.0.5-1 is up to date -- skipping
warning: mingw-w64-x86_64-libxml2-2.9.4-4 is up to date -- skipping
warning: mingw-w64-x86_64-freetype-2.7.1-1 is up to date -- skipping
warning: mingw-w64-x86_64-python3-3.5.3-2 is up to date -- skipping
warning: mingw-w64-x86_64-ffmpeg-3.2.4-2 is up to date -- skipping

I am trying to do a 64 bit build but I think the problem occurred when I tried to follow 32 bit install/setup instructions also.

I initially tried with libretro-super and got the same error. I definitely am able to compile in general (just not this project) with commands like gcc in that shell after following the setup instructions from the link above.

Thanks for any hints you may have.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/44036637-mingw32-is-not-set-stop-cannot-compile-with-msys2?utm_campaign=plugin&utm_content=tracker%2F52957340&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F52957340&utm_medium=issues&utm_source=github).
r-type commented 7 years ago

A quick way to fix will be to pass MINGW64 along the make cmd. But it is strange.this variable should be set if unset. Are you sure to calling make -f Makefile.libretro?

r-type commented 7 years ago

And tes for 64 bit should be MINGW64 not 32. Use make -f Makefile.libretro PTR64=1 for a 64Bit build

runvnc commented 7 years ago

When I tested alone instead of with super I just typed make. Thanks for your help, I will try your suggestions.

On Apr 11, 2017 11:40 PM, "not6" notifications@github.com wrote:

A quick way to fix will be to pass MINGW64 along the make cmd. But it is strange.this variable should be set if unset. Are you sure to calling make -f Makefile.libretro?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/libretro/mame2016-libretro/issues/9#issuecomment-293488022, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVOnAz8RQK0DTJ6uJFZFZ6aKFRBN_rhks5rvHHygaJpZM4M6kw4 .