Previous Thread
Next Thread
Print Thread
Page 36 of 44 1 2 34 35 36 37 38 43 44
Joined: Feb 2004
Posts: 2,597
Likes: 300
Very Senior Member
Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,597
Likes: 300
You have to add the sources to the appropriate lua file or it won't compile/link them.

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

Joined: Jan 2012
Posts: 1,179
Likes: 17
Very Senior Member
Offline
Very Senior Member
Joined: Jan 2012
Posts: 1,179
Likes: 17
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: 96
Likes: 1
Member
Offline
Member
Joined: Nov 2010
Posts: 96
Likes: 1
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,458
Likes: 9
Very Senior Member
Offline
Very Senior Member
Joined: Aug 2004
Posts: 1,458
Likes: 9
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,597
Likes: 300
Very Senior Member
Offline
Very Senior Member
Joined: Feb 2004
Posts: 2,597
Likes: 300
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: 584
Likes: 9
M
Senior Member
Offline
Senior Member
M
Joined: May 2007
Posts: 584
Likes: 9
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 44 1 2 34 35 36 37 38 43 44

Link Copied to Clipboard
Who's Online Now
3 members (Cpt. Pugwash, 2 invisible), 196 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