MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

Toyguy
MAME Fan
Reged: 04/09/07
Posts: 2
Send PM


Compile Errors
#314138 - 09/06/13 07:40 AM


I'm finally getting my old MAME cabinet out of storage after about 2 years and I want to bring it up to speed. I downloaded the Dev Tools using the "easy" option of preconfigured downloads, which I dumped as instructed into a \mingw folder. I downloaded the package with both the 32 bit and 64 bit compilers as I will need to compile for both my 32-bit cabinet PC and my 64-bit desktop.

I then grabbed the source for 0.149 and ran a make as instructed, form the source directory root, after adding both the 32 and 64 bit paths to my Windows PATH.

It chugs through for quite a while before throwing this:

Compiling src/mame/machine/pcshare.c...
Compiling src/mame/machine/ticket.c...
Compiling src/mame/video/avgdvg.c...
Compiling src/mame/audio/decobsmt.c...
Archiving obj/windows64/mame/shared.a...
Compiling src/osd/windows/winmain.c...
src/osd/windows/winmain.c: In function 'LONG exception_filter(_EXCEPTION_POINTER
S*)':
src/osd/windows/winmain.c:1153:33: error: 'CONTEXT' has no member named 'Rax'
src/osd/windows/winmain.c:1154:33: error: 'CONTEXT' has no member named 'Rbx'
src/osd/windows/winmain.c:1155:33: error: 'CONTEXT' has no member named 'Rcx'
src/osd/windows/winmain.c:1156:33: error: 'CONTEXT' has no member named 'Rdx'
src/osd/windows/winmain.c:1158:33: error: 'CONTEXT' has no member named 'Rsi'
src/osd/windows/winmain.c:1159:33: error: 'CONTEXT' has no member named 'Rdi'
src/osd/windows/winmain.c:1160:33: error: 'CONTEXT' has no member named 'Rbp'
src/osd/windows/winmain.c:1161:33: error: 'CONTEXT' has no member named 'Rsp'
src/osd/windows/winmain.c:1163:33: error: 'CONTEXT' has no member named 'R8'
src/osd/windows/winmain.c:1164:33: error: 'CONTEXT' has no member named 'R9'
src/osd/windows/winmain.c:1165:33: error: 'CONTEXT' has no member named 'R10'
src/osd/windows/winmain.c:1166:33: error: 'CONTEXT' has no member named 'R11'
src/osd/windows/winmain.c:1168:33: error: 'CONTEXT' has no member named 'R12'
src/osd/windows/winmain.c:1169:33: error: 'CONTEXT' has no member named 'R13'
src/osd/windows/winmain.c:1170:33: error: 'CONTEXT' has no member named 'R14'
src/osd/windows/winmain.c:1171:33: error: 'CONTEXT' has no member named 'R15'
src/osd/windows/winmain.c: In member function 'bool stack_walker::reset()':
src/osd/windows/winmain.c:1259:41: error: 'CONTEXT' has no member named 'Rip'
src/osd/windows/winmain.c:1260:44: error: 'CONTEXT' has no member named 'Rsp'
src/osd/windows/winmain.c:1261:44: error: 'CONTEXT' has no member named 'Rsp'
src/osd/windows/winmain.c: In member function 'void stack_walker::reset(CONTEXT&
, HANDLE)':
src/osd/windows/winmain.c:1285:41: error: 'CONTEXT' has no member named 'Rip'
src/osd/windows/winmain.c:1286:44: error: 'CONTEXT' has no member named 'Rsp'
src/osd/windows/winmain.c:1287:44: error: 'CONTEXT' has no member named 'Rsp'
make: *** [obj/windows64/osd/windows/winmain.o] Error 1

Anyone have any thoughts on how to fix this error? I also applied the u1 update to 0.149 and tried a second time, getting the exact same errors.

Thanks!
Dave



redk9258
Regular
Reged: 09/21/03
Posts: 3968
Loc: Troy, Illinois USA
Send PM


Re: Compile Errors new [Re: Toyguy]
#314144 - 09/06/13 12:20 PM


Instead of adding anything to the path try calling setenv.bat before you start compiling.

CALL C:\MINGW\mingw64-w64\setenv.bat
or
CALL C:\MINGW\mingw64-w32\setenv.bat

You also need to run setup-Python.bat and setup-Qt.bat once if you haven't.



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: Compile Errors new [Re: redk9258]
#314152 - 09/06/13 04:00 PM


> Instead of adding anything to the path try calling setenv.bat before you start
> compiling.
>
> CALL C:\MINGW\mingw64-w64\setenv.bat
> or
> CALL C:\MINGW\mingw64-w32\setenv.bat
>
> You also need to run setup-Python.bat and setup-Qt.bat once if you haven't.

Yes. Remove all the changes made to the PATH and use the batch files. Based on the error messages, he managed to start compiling a mixed 32 and 64 bit version of MAME and the compiler finally put the poor bastard creature out of its misery. You only enable one set of tools at a time, and always start with a clean PATH in a fresh new command prompt.



msbhvn
MAME Fan
Reged: 02/29/08
Posts: 42
Loc: Teh Internet!!1
Send PM


Re: Compile Errors new [Re: redk9258]
#314155 - 09/06/13 04:28 PM


> You also need to run setup-Python.bat and setup-Qt.bat once if you haven't.

Just out of curiosity, what are Python and Qt used for in MAME? I know Qt is a GUI library, which I wouldn't think would be needed for a Windows command-line build.

I've compiled Mame 0.149 and u1 with Visual Studio and I don't recall seeing anything happening with Python or Qt.



Those guys at Narcotics Anonymous are assholes, I told them I have a 3 litre a day Coke habit and they kicked me out!



Toyguy
MAME Fan
Reged: 04/09/07
Posts: 2
Send PM


Re: Compile Errors new [Re: R. Belmont]
#314164 - 09/06/13 06:17 PM


Thanks guys! That did the trick. That's good info that probably ought to get added to the Development Tools page on the Mamedev website. It doesn't say a word about any of those batch files, and just tells you to add a path setting and run make.



StilettoAdministrator
They're always after me Lucky ROMS!
Reged: 03/07/04
Posts: 6472
Send PM


Re: Compile Errors new [Re: msbhvn]
#314167 - 09/06/13 06:22 PM


> > You also need to run setup-Python.bat and setup-Qt.bat once if you haven't.
>
> Just out of curiosity, what are Python and Qt used for in MAME? I know Qt is a GUI
> library, which I wouldn't think would be needed for a Windows command-line build.
>
> I've compiled Mame 0.149 and u1 with Visual Studio and I don't recall seeing anything
> happening with Python or Qt.

Can't remember Python but Qt is used for the new debugger.

- Stiletto



Mamesick
Troll Lamer
Reged: 09/21/03
Posts: 1649
Loc: Italy
Send PM


Re: Compile Errors new [Re: Stiletto]
#314168 - 09/06/13 07:26 PM


> > > You also need to run setup-Python.bat and setup-Qt.bat once if you haven't.
> >
> > Just out of curiosity, what are Python and Qt used for in MAME? I know Qt is a GUI
> > library, which I wouldn't think would be needed for a Windows command-line build.
> >
> > I've compiled Mame 0.149 and u1 with Visual Studio and I don't recall seeing
> anything
> > happening with Python or Qt.
>
> Can't remember Python but Qt is used for the new debugger.
>
> - Stiletto

Python is used for some CPU cycles-exact cores (M6502 family, etc.)


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 137 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1576