Previous Thread
Next Thread
Print Thread
Page 36 of 39 1 2 34 35 36 37 38 39
Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #109264
03/28/17 01:26 AM
03/28/17 01:26 AM
Joined: Feb 2004
Posts: 1,965
Sydney, Australia
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member
Joined: Feb 2004
Posts: 1,965
Sydney, Australia
You have to add the sources to the appropriate lua file or it won't compile/link them.

Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #109267
03/28/17 06:08 AM
03/28/17 06:08 AM
Joined: Jan 2012
Posts: 899
Bavaria
rfka01 Offline
Senior Member
rfka01  Offline
Senior Member
Joined: Jan 2012
Posts: 899
Bavaria
This is the driver I'm toying with ... I hope that a kind soul will scrap that completely and make a nice bus/card system for the MFA smile

mfabfz.cpp

I've added the entries


Code
createMESSProjects(_target, _subtarget, "mfa")
files {
	MAME_DIR .. "src/mame/drivers/mfabfz.cpp",
}


to mess.lua
Code
@source:mfabfz.cpp
mfabfz                          // (c) 1982 Berufsfoerderungszentrum Essen


to mame.lst

and

Code
mfabfz.cpp


to mess.flt

Then I've compiled with REGENIE=1

The driver file gets compiled, but after that every attempt to get it linked results in

Code
Linking mess64.exe...                           
../../../../mingw-gcc/obj/x64/Release/generated/
z'                                              
collect2.exe: error: ld returned 1 exit status  
make[2]: *** [mess.make:253: ../../../../../mess
make[1]: *** [Makefile:733: mess] Fehler 2      
make: *** [makefile:994: windows_x64] Fehler 2  


NCR DMV- DEC Rainbow- Siemens PCD- ITT 3030-Oly People- Acorn A5000- Olivetti M20
Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #109268
03/28/17 07:26 AM
03/28/17 07:26 AM
Joined: May 2004
Posts: 854
Germany
D
Duke Offline
Senior Member
Duke  Offline
Senior Member
D
Joined: May 2004
Posts: 854
Germany
You forgot to add it to the linkProjects_mame_mess function.

Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #109278
03/29/17 03:01 PM
03/29/17 03:01 PM
Joined: Jan 2012
Posts: 899
Bavaria
rfka01 Offline
Senior Member
rfka01  Offline
Senior Member
Joined: Jan 2012
Posts: 899
Bavaria
Thanks, Duke.
I added it but it looks like the problem is still with my cobbled together driver file, although the compilation pass finishes.


NCR DMV- DEC Rainbow- Siemens PCD- ITT 3030-Oly People- Acorn A5000- Olivetti M20
Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #109600
05/17/17 02:04 PM
05/17/17 02:04 PM
Joined: Nov 2010
Posts: 73
Rennes (35) FRANCE
Breiztiger Offline
Member
Breiztiger  Offline
Member
Joined: Nov 2010
Posts: 73
Rennes (35) FRANCE
hi

just for info

with my old gcc 6.2 mame does'nt compil anymore

just update to gcc 6.3 and it's ok !!!

Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #109601
05/17/17 03:30 PM
05/17/17 03:30 PM
Joined: Aug 2004
Posts: 1,354
Robbbert Offline
Very Senior Member
Robbbert  Offline
Very Senior Member
Joined: Aug 2004
Posts: 1,354
Still works with 5.3.0

Re: Can't compile latest MAME? READ THIS THREAD [Re: Breiztiger] #109724
05/31/17 08:44 AM
05/31/17 08:44 AM
Joined: Apr 2015
Posts: 365
E
EoceneMiacid Offline
Senior Member
EoceneMiacid  Offline
Senior Member
E
Joined: Apr 2015
Posts: 365
Originally Posted by Breiztiger
hi

just for info

with my old gcc 6.2 mame does'nt compil anymore

just update to gcc 6.3 and it's ok !!!


Yeah i'm running into problems with 6.2 as well

How did you update to 6.3? I'm on a custom Kubuntu derivative and I can't find a working repository.
Not looking forward to compiling GCC first smirk

Re: Can't compile latest MAME? READ THIS THREAD [Re: EoceneMiacid] #109726
05/31/17 09:23 AM
05/31/17 09:23 AM
Joined: Feb 2004
Posts: 1,965
Sydney, Australia
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member
Joined: Feb 2004
Posts: 1,965
Sydney, Australia
Originally Posted by EoceneMiacid
How did you update to 6.3? I'm on a custom Kubuntu derivative and I can't find a working repository.
Not looking forward to compiling GCC first smirk


It's not actually GCC that's the problem, it's the libstdc++ headers, so if you build a new GCC you need to make it build against an updated libstdc++ or it won't solve anything. It's pretty easy to build GCC and make it install to an alternate path. Just add something like this to whatever other configure options you need:

Code
--prefix=/opt/gcc63 --mandir=/opt/gcc63/share/man --infodir=/opt/gcc63/share/info


Then put options like this in useroptions.mak for MAME:

Code
OVERRIDE_CC=/opt/gcc63/bin/gcc
OVERRIDE_CXX=/opt/gcc63/bin/g++
ARCHOPTS=-Wl,-R,/opt/gcc63/lib64

Re: Can't compile latest MAME? READ THIS THREAD [Re: Vas Crabb] #109727
05/31/17 01:28 PM
05/31/17 01:28 PM
Joined: Apr 2015
Posts: 365
E
EoceneMiacid Offline
Senior Member
EoceneMiacid  Offline
Senior Member
E
Joined: Apr 2015
Posts: 365
Vas to the rescue! Indeed all that needed to be done was update libstdc++ and then a make clean.

Thanks!

Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts] #110030
06/28/17 06:14 PM
06/28/17 06:14 PM
Joined: May 2007
Posts: 542
Germany
M
mizapf Offline
Senior Member
mizapf  Offline
Senior Member
M
Joined: May 2007
Posts: 542
Germany
Since I usually only work in Linux, gcc/clang is the typical tool chain for me. However, I consider to build mame binaries (for a subset of drivers) for Windows also. So I tried Visual Studio ... for the first time, following http://wiki.mamedev.org/index.php/Building_MAME_using_Microsoft_Visual_Studio_compilers

On that path, I found some points that are unclear to me.

  • Once you've done that, simply run: make ...

make is not found in the plain cmd. I suppose I have to run win32env.bat in msys64 first, then go to the mame folder.

  • Browse to folder containing solution file and open it with Visual Studio

I have no idea what a solution file is; sorry, utter newbie, as I said. Google said these are files with suffix .sln, so I searched the mame folder for such a file and got 24 of them. The one that sounds most promising, mame.sln, is located in a deep subdirectory (C:\prg\mame\build\projects\windows\mame\vs2015); is that the one to be opened?

Page 36 of 39 1 2 34 35 36 37 38 39

Who's Online Now
1 registered members (R. Belmont), 21 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,552
Posts111,739
Members4,800
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.158s Queries: 14 (0.116s) Memory: 5.7350 MB (Peak: 5.9580 MB) Zlib enabled. Server Time: 2018-07-15 19:16:24 UTC