Previous Thread
Next Thread
Print Thread
Page 30 of 40 1 2 28 29 30 31 32 39 40
Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #103206 12/21/15 09:43 PM
Joined: Dec 2013
Posts: 37
dlabi Offline
Member
Offline
Member
Joined: Dec 2013
Posts: 37
I'm struggling with compilation of mess using VC 2012(using mingw works fine). I have latest mame sources and buildtools.
My compile.bat looks like this

Quote:
call "c:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" amd64
call "c:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Utilities\bin\dx_setenv.cmd" x64
make -j9 MSBUILD=1 DEBUG=1 SYMBOLS=1 SUBTARGET=mess DIRECTINPUT=8 PTR64=1
I'm running compile.bat within buildtools console. I've tried instead of MSBUILD use MSVC_BUILD=1 without luck. I need to get pdb's for debugging inside VC IDE

It seems to me regardless MSBUILD=1 mingw is used and no vmess64d is generated. Thanx

Last edited by dlabi; 12/21/15 09:48 PM.

Check my blog at dlabi.cz
Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #103234 12/24/15 02:05 PM
Joined: Dec 2013
Posts: 37
dlabi Offline
Member
Offline
Member
Joined: Dec 2013
Posts: 37
I think I got it. I added parameter vs2012 so my command line looked following

Quote:
make -j9 MSBUILD=1 DEBUG=1 SYMBOLS=1 SUBTARGET=mess DIRECTINPUT=8 PTR64=1 vs2012


I don't know if all the parameters before vs2012 are neccess
ary (it's not running compilation) I left them there

This cmd creates vs2012 project which could be loaded into VC, there were few compile issues to deal with but fortunately I've managed to get .exe with pdbs. There is also possible to build xp compatible exe(I did not give try)

Merry Christmess to all guys!

Last edited by dlabi; 12/24/15 02:10 PM.

Check my blog at dlabi.cz
Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #103466 01/03/16 07:19 PM
Joined: Aug 2015
Posts: 379
Edstrom Offline
Senior Member
Offline
Senior Member
Joined: Aug 2015
Posts: 379
I just found the hard way that 7 segment display support ain't included in a build statement like
Code:
make SUBTARGET=tec1 SOURCES=src/mame/drivers/tec1.cpp REGENIE=1 DEBUG=2

but LED:s and some other artwork features are.

Is there a list of files I need to add to the SOURCES parameter to get a complete artwork support?

Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #103624 01/13/16 03:29 PM
Joined: Aug 2015
Posts: 379
Edstrom Offline
Senior Member
Offline
Senior Member
Joined: Aug 2015
Posts: 379
Ok so I made it, I set up the Mingw environment and compiled MESS on a 64 bit Windows 7 using the buildtools package and the instructions found on the Tools page. It worked after a few quirks:

Code:
[MINGW64] C:\Users\jolar\work\mame>git checkout didact_r4 
fatal: unable to join threaded lstat                      

I fixed by an additional git config thingie:
Code:
git config --replace-all core.preloadIndex false

I also had to set my HOME environment variable before anything worked
Code:
set HOME=\Users\jolar

Also the instructions lists two git commands on the same line which will not work.

However, this is soo much easier than my previous two failed attempts to get a Windows environment for MESS/MAME up and running. Thanks a lot for that!:)

Last edited by Edstrom; 01/13/16 03:36 PM.
Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #103626 01/13/16 03:51 PM
Joined: Mar 2001
Posts: 16,376
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,376
For the case where something isn't included automatically on a SOURCES= you just have to manually add that to the SOURCES. For instance, Apple II min-build looks like:

SOURCES=src/mame/drivers/apple2.cpp,src/mame/drivers/apple2e.cpp,src/mame/video/apple2.cpp

It doesn't (or didn't a few weeks ago at least) pick up the video/ file automatically.

Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #103672 01/16/16 03:02 PM
Joined: Aug 2015
Posts: 379
Edstrom Offline
Senior Member
Offline
Senior Member
Joined: Aug 2015
Posts: 379
yes, I just don't know what other files I need in the SOURCES argument to get the BCD display to work. It do compile and link but the display is dead. Is there a way to get genie to check for unsatisfied requirements or is this hidden by the late bindings?

Also for the record, I got a valuable tip from QMC2 regarding the lack of debugger keyboard short cuts in MAME-169 with Qt5 on Linux. Remove the appmenu-qt5 package and it works again:
Code:
sudo apt-get remove appmenu-qt5

Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #103679 01/16/16 07:09 PM
Joined: Mar 2001
Posts: 16,376
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,376
If you link successfully, then you are not missing anything.

In order to have an LED display on a driver, you must include a layout file. My recently submitted prophet600.cpp driver shows a pretty simple example with a 2-digit LED display.

Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #103694 01/18/16 07:40 AM
Joined: Aug 2015
Posts: 379
Edstrom Offline
Senior Member
Offline
Senior Member
Joined: Aug 2015
Posts: 379
Ahh, ok a linktime layout that is? Because it works by just dropping the layout in the artwork folder once the full MESS or MAME binary is used, but I guess it contains already some linked in layouts... That doesn't work right now with the single driver build, which is explained now, thx smile

Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #103702 01/18/16 01:49 PM
Joined: Mar 2001
Posts: 16,376
R
R. Belmont Online Content
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,376
You must #include "filename.lh" to establish the link between your driver and the layout (where "filename" is the name of the .lay file), and add MCFG_DEFAULT_LAYOUT(layout_filename) to the machine configuration. Then you're good to go even for single-driver builds.

Re: Can't compile latest MESS? READ THIS THREAD [Re: Just Desserts] #103707 01/18/16 04:52 PM
Joined: Nov 2010
Posts: 84
Breiztiger Offline
Member
Offline
Member
Joined: Nov 2010
Posts: 84
sorry for my ignorance but ...

i got a

'head' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
GCC 4.9.1 detected
Building configurations...

...

makefile:830: recipe for target 'windows_x64' failed
make: *** [windows_x64] Error 2

with mingw env

my last good compilation is from 3 january 2016

can someone tell me what i can change to compil again ;-)

thanks in advance

Last edited by Breiztiger; 01/18/16 04:52 PM.
Page 30 of 40 1 2 28 29 30 31 32 39 40

Who's Online Now
2 registered members (AJR, Cpt. Pugwash), 203 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,712
Posts114,515
Members4,869
Most Online510
Aug 26th, 2019
Powered by UBB.threads™ PHP Forum Software 7.7.3