Previous Thread
Next Thread
Print Thread
Page 36 of 37 1 2 34 35 36 37
#109264 - 03/28/17 01:26 AM Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts]  
Joined: Feb 2004
Posts: 1,828
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member

Joined: Feb 2004
Posts: 1,828
Sydney, Australia
You have to add the sources to the appropriate lua file or it won't compile/link them.

#109267 - 03/28/17 06:08 AM Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts]  
Joined: Jan 2012
Posts: 727
rfka01 Offline
Senior Member
rfka01  Offline
Senior Member

Joined: Jan 2012
Posts: 727
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
#109268 - 03/28/17 07:26 AM Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts]  
Joined: May 2004
Posts: 825
Duke Offline
Senior Member
Duke  Offline
Senior Member

Joined: May 2004
Posts: 825
Germany
You forgot to add it to the linkProjects_mame_mess function.

#109278 - 03/29/17 03:01 PM Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts]  
Joined: Jan 2012
Posts: 727
rfka01 Offline
Senior Member
rfka01  Offline
Senior Member

Joined: Jan 2012
Posts: 727
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
#109600 - 05/17/17 02:04 PM Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts]  
Joined: Nov 2010
Posts: 72
Breiztiger Offline
Member
Breiztiger  Offline
Member

Joined: Nov 2010
Posts: 72
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 !!!

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

Joined: Aug 2004
Posts: 1,325
Still works with 5.3.0

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

Joined: Apr 2015
Posts: 337
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

#109726 - 05/31/17 09:23 AM Re: Can't compile latest MAME? READ THIS THREAD [Re: EoceneMiacid]  
Joined: Feb 2004
Posts: 1,828
Vas Crabb Offline
Very Senior Member
Vas Crabb  Offline
Very Senior Member

Joined: Feb 2004
Posts: 1,828
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

#109727 - 05/31/17 01:28 PM Re: Can't compile latest MAME? READ THIS THREAD [Re: Vas Crabb]  
Joined: Apr 2015
Posts: 337
EoceneMiacid Offline
Senior Member
EoceneMiacid  Offline
Senior Member

Joined: Apr 2015
Posts: 337
Vas to the rescue! Indeed all that needed to be done was update libstdc++ and then a make clean.

Thanks!

#110030 - 06/28/17 06:14 PM Re: Can't compile latest MAME? READ THIS THREAD [Re: Just Desserts]  
Joined: May 2007
Posts: 528
mizapf Offline
Senior Member
mizapf  Offline
Senior Member

Joined: May 2007
Posts: 528
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 37 1 2 34 35 36 37

Who's Online Now
3 registered members (Pernod, Edstrom, ICEknight), 21 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,413
Posts108,956
Members4,757
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.033s Queries: 15 (0.012s) Memory: 5.0268 MB (Peak: 5.2535 MB) Zlib enabled. Server Time: 2017-09-26 21:49:05 UTC