Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

I don't know why I didn't think of this sooner. I was wondering if your Mame compile app could be written to produce a 64bit command line Mame compile? I have tried posting on various message boards on the subject and got basically no help. There is not really a lot of info on this either nor is there a how to compile page like regular 32bit Mame. Thanx in advance :rolleyes:

Posted

I remember you saying on Mameworld that you couldn't install VS 2005. Have you tried downloading the Platform SDK? It has a command line 64 bit compiler in that.

Here is a batch file I wrote for compiling Mame using that. The problem is I don't have a 64 bit machine to test it on. Apparently you can't compile a 64-bit version of Mame on a 32-bit processor. So it won't be until I can get a 64-bit processor will I be able to test. Your welcome to use my batch file as a guide and see if you can get it compiling. If you are successful maybe you could give me feedback on how you did it then I might be able to add support in Mame Compiler.

@ECHO OFF

REM CALL "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd" /XP64 /RETAIL
REM CALL "C:\Program Files\Microsoft DirectX SDK (November 2007)\Utilities\Bin\dx_setenv.cmd"
REM CALL "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" amd64

SET SDKBASE=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2
SET DXBASE=C:\Program Files\Microsoft DirectX SDK (November 2007)

SET PATH=C:\MinGW\bin;%SDKBASE%\Bin\win64\x86\AMD64
SET INCLUDE=%SDKBASE%\Include;%SDKBASE%\Include\crt;%DXBASE%\Include
SET LIB=%SDKBASE%\Lib\AMD64

mingw32-make MSVC_BUILD=1 PTR64=1
pause

Posted
I remember you saying on Mameworld that you couldn't install VS 2005. Have you tried downloading the Platform SDK? It has a command line 64 bit compiler in that.

Here is a batch file I wrote for compiling Mame using that. The problem is I don't have a 64 bit machine to test it on. Apparently you can't compile a 64-bit version of Mame on a 32-bit processor. So it won't be until I can get a 64-bit processor will I be able to test. Your welcome to use my batch file as a guide and see if you can get it compiling. If you are successful maybe you could give me feedback on how you did it then I might be able to add support in Mame Compiler.

@ECHO OFF

REM CALL "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd" /XP64 /RETAIL
REM CALL "C:\Program Files\Microsoft DirectX SDK (November 2007)\Utilities\Bin\dx_setenv.cmd"
REM CALL "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" amd64

SET SDKBASE=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2
SET DXBASE=C:\Program Files\Microsoft DirectX SDK (November 2007)

SET PATH=C:\MinGW\bin;%SDKBASE%\Bin\win64\x86\AMD64
SET INCLUDE=%SDKBASE%\Include;%SDKBASE%\Include\crt;%DXBASE%\Include
SET LIB=%SDKBASE%\Lib\AMD64

mingw32-make MSVC_BUILD=1 PTR64=1
pause

Thanx for the bat file. I will give it a try. But I thought mingw couldn't produce a 64 bit Mame. I don't know for sure jus correct me if I am wrong about this

Posted
Thanx for the bat file. I will give it a try. But I thought mingw couldn't produce a 64 bit Mame. I don't know for sure jus correct me if I am wrong about this

All that is doing is using the MinGW mingw32-make.exe for the make file but it is configured to use the 64-bit compiler in the Platform SDK (ie. It won't use GCC)

Dont forget you will need to download the Microsoft Platform SDK and DirectX SDK.

http://www.microsoft.com/downloads/details...;displaylang=en

http://www.microsoft.com/downloads/details...;displaylang=en

Posted
All that is doing is using the MinGW mingw32-make.exe for the make file but it is configured to use the 64-bit compiler in the Platform SDK (ie. It won't use GCC)

Dont forget you will need to download the Microsoft Platform SDK and DirectX SDK.

http://www.microsoft.com/downloads/details...;displaylang=en

http://www.microsoft.com/downloads/details...;displaylang=en

does the OS have to be 64bit?

Posted

Running on win xp 64 bit edition with sp2

I edited as follows to match

@ECHO OFF

REM CALL "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd" /XP64 /RETAIL

REM CALL "C:\Program Files (x86)\Microsoft DirectX SDK (November 2007)\Utilities\Bin\dx_setenv.cmd"

REM CALL "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\vcvarsall.bat" amd64

SET SDKBASE=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2

SET DXBASE=C:\Program Files (x86)\Microsoft DirectX SDK (November 2007)

SET PATH=C:\MinGW\bin;%SDKBASE%\Bin\win64\x86\AMD64

SET INCLUDE=%SDKBASE%\Include;%SDKBASE%\Include\crt;%DXBASE%\Include

SET LIB=%SDKBASE%\Lib\AMD64

mingw32-make MSVC_BUILD=1 PTR64=1

pause

ok and the compile crashed almost immediately looking like this. Hey maybe between us two we can get this done cause I can test. :)

post-2450-1200030802_thumb.jpg

Posted

Thanks for sharing DJ Infinity, it's a shame you couldn't get it working using the batch file because that would be the only way I could add it to Mame Compiler. Those project files require Visual Studio and I was hoping to avoid the need for that.

Posted
Thanks for sharing DJ Infinity, it's a shame you couldn't get it working using the batch file because that would be the only way I could add it to Mame Compiler. Those project files require Visual Studio and I was hoping to avoid the need for that.

Excuse me for being a lil slow but the batch file points to visual studio doesn't it? :unsure: I mean don't you need a installation of that for it to work?

Posted
Excuse me for being a lil slow but the batch file points to visual studio doesn't it? :unsure: I mean don't you need a installation of that for it to work?

The REM at the start of those lines are REMark's meaning they are not executed. I was just trying to get the thing to compile first. Then I found out the makefile would need some major changes to get a 64-bit version compiling on a 32-bit machine. So the batch file is supposed to compile using the free 64-bit command line compiler that comes with the Platform SDK. Maybe try removing the REM's on the first two lines and see if it compiles then?

Posted
The REM at the start of those lines are REMark's meaning they are not executed. I was just trying to get the thing to compile first. Then I found out the makefile would need some major changes to get a 64-bit version compiling on a 32-bit machine. So the batch file is supposed to compile using the free 64-bit command line compiler that comes with the Platform SDK. Maybe try removing the REM's on the first two lines and see if it compiles then?

I was told that you need a 64 bit OS to compile a 64 bit Mame. but just so I make sure I have this right change bat file too look like this?

@ECHO OFF

SET SDKBASE=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2

SET DXBASE=C:\Program Files (x86)\Microsoft DirectX SDK (November 2007)

SET PATH=C:\MinGW\bin;%SDKBASE%\Bin\win64\x86\AMD64

SET INCLUDE=%SDKBASE%\Include;%SDKBASE%\Include\crt;%DXBASE%\Include

SET LIB=%SDKBASE%\Lib\AMD64

mingw32-make MSVC_BUILD=1 PTR64=1

pause

Posted

Well the idea is to experiment until it works. But when I said remove the REM I meant just that not the whole line. So try with these two lines also

CALL "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd" /XP64 /RETAIL
CALL "C:\Program Files (x86)\Microsoft DirectX SDK (November 2007)\Utilities\Bin\dx_setenv.cmd"

What those lines do is set up the environment for compiling using those tools. So I would try with these two also.

Posted
Well the idea is to experiment until it works. But when I said remove the REM I meant just that not the whole line. So try with these two lines also

CALL "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd" /XP64 /RETAIL
CALL "C:\Program Files (x86)\Microsoft DirectX SDK (November 2007)\Utilities\Bin\dx_setenv.cmd"

What those lines do is set up the environment for compiling using those tools. So I would try with these two also.

Ok HK I don't mind experimenting but you know I am a lil slow :unsure: post the bat file (the new way you want) and I'll test when I get home. I didn't drag my 64bit machine to work today :( sorry

Posted

Try this one

@ECHO OFF

CALL "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd" /XP64 /RETAIL
CALL "C:\Program Files (x86)\Microsoft DirectX SDK (November 2007)\Utilities\Bin\dx_setenv.cmd"

SET SDKBASE=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2
SET DXBASE=C:\Program Files (x86)\Microsoft DirectX SDK (November 2007)

SET PATH=C:\MinGW\bin;%SDKBASE%\Bin\win64\x86\AMD64
SET INCLUDE=%SDKBASE%\Include;%SDKBASE%\Include\crt;%DXBASE%\Include
SET LIB=%SDKBASE%\Lib\AMD64

mingw32-make MSVC_BUILD=1 PTR64=1
pause

Guest
This topic is now closed to further replies.
×
×
  • Create New...