Previous Thread
Next Thread
Print Thread
Page 30 of 44 1 2 28 29 30 31 32 43 44
Joined: Dec 2013
Posts: 37
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
Joined: Dec 2013
Posts: 37
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
Joined: Aug 2015
Posts: 406
Senior Member
Offline
Senior Member
Joined: Aug 2015
Posts: 406
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?


Because I can
Joined: Aug 2015
Posts: 406
Senior Member
Offline
Senior Member
Joined: Aug 2015
Posts: 406
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.

Because I can
Joined: Mar 2001
Posts: 17,215
Likes: 234
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,215
Likes: 234
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.

Joined: Aug 2015
Posts: 406
Senior Member
Offline
Senior Member
Joined: Aug 2015
Posts: 406
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


Because I can
Joined: Mar 2001
Posts: 17,215
Likes: 234
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,215
Likes: 234
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.

Joined: Aug 2015
Posts: 406
Senior Member
Offline
Senior Member
Joined: Aug 2015
Posts: 406
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


Because I can
Joined: Mar 2001
Posts: 17,215
Likes: 234
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 17,215
Likes: 234
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.

Joined: Nov 2010
Posts: 96
Likes: 1
Member
Offline
Member
Joined: Nov 2010
Posts: 96
Likes: 1
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 44 1 2 28 29 30 31 32 43 44

Link Copied to Clipboard
Who's Online Now
2 members (Kale, 1 invisible), 233 guests, and 1 robot.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,320
Posts121,923
Members5,074
Most Online1,283
Dec 21st, 2022
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com