Previous Thread
Next Thread
Print Thread
Page 36 of 52 1 2 34 35 36 37 38 51 52
Joined: Jan 2007
Posts: 213
M
Senior Member
Offline
Senior Member
M
Joined: Jan 2007
Posts: 213
u7 fails to compile on PPC G5 / OSX 10.5.8 / Xcode 3.1.4 / SDL 1.2.14 when Namco System 22 is reached. Here is the log.

Compiling src/mame/video/namcos22.c...
src/mame/video/namcos22.c: In function void namcos22s_mix_textlayer(running_machine&, bitmap_t*, const rectangle*, int):
src/mame/video/namcos22.c:1593: error: cannot convert bool to unsigned int __vector__ in initialization
src/mame/video/namcos22.c:1625: error: could not convert fade_enabled to bool
src/mame/video/namcos22.c: In function void namcos22_mix_textlayer(running_machine&, bitmap_t*, const rectangle*):
src/mame/video/namcos22.c:1644: error: cannot convert bool to unsigned int __vector__ in initialization
src/mame/video/namcos22.c:1645: error: cannot convert int to unsigned int __vector__ in initialization
src/mame/video/namcos22.c:1671: error: could not convert shadow_enabled to bool
src/mame/video/namcos22.c:1683: error: could not convert fade_enabled to bool
make: *** [obj/sdl/mame/mame/video/namcos22.o] Error 1
make: *** Waiting for unfinished jobs....

Joined: Mar 2001
Posts: 16,892
Likes: 51
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,892
Likes: 51
That's odd. I'll check it out.

Joined: Mar 2001
Posts: 16,892
Likes: 51
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,892
Likes: 51
I've figured out the problem, just not exactly why.

Easy fix: edit src/emu/video/rgbvmx.h

At the very bottom, look for this line:

Code:
#endif /* __RGBVMX__ */


Right before it, insert this line:

Code:
#include <stdbool.h>


So you end up with:

Code:
#include <stdbool.h>
#endif /* __RGBVMX__ */


That should work (tested on 10.5.8 dual G5 2.0).

Joined: Jan 2007
Posts: 213
M
Senior Member
Offline
Senior Member
M
Joined: Jan 2007
Posts: 213
The fix works great: u7 build successful again on PowerMacs! :-) Thanks a lot!

Joined: Feb 2007
Posts: 549
S
Senior Member
Offline
Senior Member
S
Joined: Feb 2007
Posts: 549
Compiling u8 stops here on 10.6.8:
Code:
cc1plus: warnings being treated as errors
src/emu/sound/ymz770.c: In member function void ymz770_device::internal_reg_write(int, UINT8):
src/emu/sound/ymz770.c:931: warning: comparison is always true due to limited range of data type
make: *** [obj/sdl/mame64/emu/sound/ymz770.o] Error 1
make: *** Waiting for unfinished jobs....

Joined: Sep 2000
Posts: 463
Likes: 1
M
Senior Member
Online Content
Senior Member
M
Joined: Sep 2000
Posts: 463
Likes: 1
Same error on 10.7.2
(Starting from fresh source)


The following statement is true...
The preceding statement is false.
Joined: Sep 2006
Posts: 200
Senior Member
Offline
Senior Member
Joined: Sep 2006
Posts: 200
u8 runs fine on Slackware Linux 13.37....

MAME packages for Slackware Linux users is here:

http://sourceforge.net/projects/mameforslack/files/

Enjoy them!!! wink


Sorry, my English is bad!
MAME for Slackware
Joined: Jan 2007
Posts: 213
M
Senior Member
Offline
Senior Member
M
Joined: Jan 2007
Posts: 213
I confirm the same error above on PPC G4 / OSX 10.5.8 / Xcode 3.1.4 / SDL 1.2.14

Joined: Mar 2001
Posts: 16,892
Likes: 51
R
Very Senior Member
OP Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,892
Likes: 51
Yes, my first notice that there was to be a release today was after it had been tagged. Follow the lead of the patch here to change line 931 and it'll compile.

Joined: Feb 2007
Posts: 549
S
Senior Member
Offline
Senior Member
S
Joined: Feb 2007
Posts: 549
Thanks, it works now.

Page 36 of 52 1 2 34 35 36 37 38 51 52

Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
3 members (Golden Child, oddi, ksherlock), 26 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
Topics9,070
Posts118,935
Members5,014
Most Online890
Jan 17th, 2020
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