Previous Thread
Next Thread
Print Thread
Page 36 of 42 1 2 34 35 36 37 38 41 42
Joined: Feb 2004
Posts: 2,259
Likes: 11
Very Senior Member
Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,259
Likes: 11
You have to add the sources to the appropriate lua file or it won't compile/link them.

Joined: Jan 2012
Posts: 1,150
Likes: 3
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2012
Posts: 1,150
Likes: 3
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
Joined: May 2004
Posts: 949
Likes: 14
D
Senior Member
Offline
Senior Member
D
Joined: May 2004
Posts: 949
Likes: 14
You forgot to add it to the linkProjects_mame_mess function.

Joined: Jan 2012
Posts: 1,150
Likes: 3
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2012
Posts: 1,150
Likes: 3
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
Joined: Nov 2010
Posts: 86
Member
Offline
Member
Joined: Nov 2010
Posts: 86
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 !!!

Joined: Aug 2004
Posts: 1,444
Likes: 6
Very Senior Member
Offline
Very Senior Member
Joined: Aug 2004
Posts: 1,444
Likes: 6
Still works with 5.3.0

Joined: Apr 2015
Posts: 387
E
Senior Member
Offline
Senior Member
E
Joined: Apr 2015
Posts: 387
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

Joined: Feb 2004
Posts: 2,259
Likes: 11
Very Senior Member
Online Content
Very Senior Member
Joined: Feb 2004
Posts: 2,259
Likes: 11
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

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

Thanks!

Joined: May 2007
Posts: 566
Likes: 2
M
Senior Member
Offline
Senior Member
M
Joined: May 2007
Posts: 566
Likes: 2
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 42 1 2 34 35 36 37 38 41 42

Link Copied to Clipboard
Who's Online Now
2 members (Vas Crabb, 1 invisible), 29 guests, and 3 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,960
Posts117,773
Members5,001
Most Online890
Jan 17th, 2020
Forum Host
These forums are hosted by www.retrogamesformac.com
Forum hosted by www.retrogamesformac.com