Author Topic: Mame 0.98u1 , Compile problems newer neogeo games  (Read 18836 times)

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Mame 0.98u1 , Compile problems newer neogeo games
« on: July 18, 2005, 08:12:10 AM »
Has anyone had any problems compiling 98u1 with newer games added like svcsplus  I can no longer compile with some of the newer games added :(
IQ Forum Member

Offline Ashura-X

  • Member
  • ***
  • Posts: 138
  • Karma: +0/-0
Re: Mame 0.98u1 , Compile problems newer neogeo games
« Reply #1 on: July 19, 2005, 07:22:26 AM »
Has anyone had any problems compiling 98u1 with newer games added like svcsplus  I can no longer compile with some of the newer games added :(

Im still not tried the regular MAME build coz Im waiting new mameplus source to be out. BTW ... I saw if that kof10th UNIQUE is out so does anyone saw any mame driver for it ? A NeoMAMEPlus exists for play the entire game as well !

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: Mame 0.98u1 , Compile problems newer neogeo games
« Reply #2 on: July 19, 2005, 12:18:26 PM »
These are some of the errors I get now

Quote
Compiling src/drivers/neogeo.c...
src/drivers/neogeo.c: In function `init_matrimnd':
src/drivers/neogeo.c:7880: warning: ISO C90 forbids mixed declarations and code
src/drivers/neogeo.c: In function `svcchaos_gfx_decrypt':
src/drivers/neogeo.c:8098: warning: ISO C90 forbids mixed declarations and code
src/drivers/neogeo.c: In function `svcplus_sx_decrypt':
src/drivers/neogeo.c:8233: error: 'for' loop initial declaration used outside C9
9 mode
src/drivers/neogeo.c: In function `svcplusa_px_decrypt':
src/drivers/neogeo.c:8253: error: 'for' loop initial declaration used outside C9
9 mode
src/drivers/neogeo.c: In function `svcsplus_sx_decrypt':
src/drivers/neogeo.c:8294: error: 'for' loop initial declaration used outside C9
9 mode
src/drivers/neogeo.c: In function `init_kf2k4spe':
src/drivers/neogeo.c:8470: error: 'for' loop initial declaration used outside C9
9 mode
make: *** [obj/mame32pp/drivers/neogeo.o] Error 1
IQ Forum Member

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Mame 0.98u1 , Compile problems newer neogeo games
« Reply #3 on: July 19, 2005, 01:30:18 PM »
src/drivers/neogeo.c:8233: error: 'for' loop initial declaration used outside C9

Those lines probably have this

for (int i = 0...

Change it to

int i;
for (i = 0;


Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: Mame 0.98u1 , Compile problems newer neogeo games
« Reply #4 on: July 19, 2005, 10:25:26 PM »
Thanks IQ I will give that a go


Should it be like this now ?

Quote
static void svcplus_sx_decrypt( void )
{
   int size = memory_region_length( REGION_GFX1 );
   UINT8 *src = memory_region( REGION_GFX1 );
   UINT8 *dst = malloc( size );

   memcpy( dst, src, size );

   int i;
   for (i = 0; i < size; i += 0x10 ){
      memcpy( &src[ i        ], &dst[ i + 0x08 ], 0x08 );
      memcpy( &src[ i + 0x08 ], &dst[ i        ], 0x08 );
   }

   free(dst);
}
« Last Edit: July 19, 2005, 10:29:07 PM by James33 »
IQ Forum Member

Offline Ashura-X

  • Member
  • ***
  • Posts: 138
  • Karma: +0/-0
Re: Mame 0.98u1 , Compile problems newer neogeo games
« Reply #5 on: July 20, 2005, 12:54:03 PM »
ok now I have a problem on this function on my machine neogeo driver:
Compiling src/machine/neogeo.c...
src/machine/neogeo.c: In function `mslug5_bankswitch_w':
src/machine/neogeo.c:601: warning: implicit declaration of function `cpu_setbank

Any hint ?


DAmm found the problem ;)

Fully deprecated the use of cpu_setbank(), which was long ago replaced with
memory_set_bankptr(). [Aaron Giles]

Im still have same problem if James have :S
« Last Edit: July 20, 2005, 01:16:28 PM by Ashura-X »

Offline DsNo

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +9/-0
  • Junior Member
Re: Mame 0.98u1 , Compile problems newer neogeo games
« Reply #6 on: July 20, 2005, 01:06:50 PM »
ok now I have a problem on this function on my machine neogeo driver:
Compiling src/machine/neogeo.c...
src/machine/neogeo.c: In function `mslug5_bankswitch_w':
src/machine/neogeo.c:601: warning: implicit declaration of function `cpu_setbank

Any hint ?


DAmm found the problem ;)

Fully deprecated the use of cpu_setbank(), which was long ago replaced with
memory_set_bankptr(). [Aaron Giles]

all "cpu_setbank(" change to "memory_set_bankptr(" ... That's all...

Offline Ashura-X

  • Member
  • ***
  • Posts: 138
  • Karma: +0/-0
Re: Mame 0.98u1 , Compile problems newer neogeo games
« Reply #7 on: July 20, 2005, 01:26:16 PM »
all "cpu_setbank(" change to "memory_set_bankptr(" ... That's all...

OK but now I have these ISO c90 and c99 errors :S

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: Mame 0.98u1 , Compile problems newer neogeo games
« Reply #8 on: July 20, 2005, 06:51:48 PM »
The only error I have to fix is this " ISO C90 forbids mixed declarations and code "  Not sure how yet .
IQ Forum Member

Offline robber804

  • Newbies
  • *
  • Posts: 40
  • Karma: +0/-0
  • Relentless Bastard
Re: Mame 0.98u1 , Compile problems newer neogeo games
« Reply #9 on: July 20, 2005, 07:26:18 PM »
The only error I have to fix is this " ISO C90 forbids mixed declarations and code "  Not sure how yet .

use the old make file from 0.98 but add these lines after

ifneq ($(USE_MASH_DATAFILE),)
    DEFS += -DMASH_DATAFILE
endif

add

ifneq ($(USE_STORY_DATAFILE),)
    DEFS += -DSTORY_DATAFILE
endif


that fixed it for me
-robber804

Offline Ashura-X

  • Member
  • ***
  • Posts: 138
  • Karma: +0/-0
Re: Mame 0.98u1 , Compile problems newer neogeo games
« Reply #10 on: July 21, 2005, 06:48:30 AM »
use the old make file from 0.98 but add these lines after

ifneq ($(USE_MASH_DATAFILE),)
    DEFS += -DMASH_DATAFILE
endif

add

ifneq ($(USE_STORY_DATAFILE),)
    DEFS += -DSTORY_DATAFILE
endif


that fixed it for me


It´s a trap then because those lines are already on mame32plus make file :S
So I dunno HOW solve that sh** problem !!!!!! :(

Offline neo04

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +1/-0
Re: Mame 0.98u1 , Compile problems newer neogeo games
« Reply #11 on: July 21, 2005, 08:34:43 AM »
download the new mingw for mameplus... maybe it will solve ur problem: http://mameplus.emu-france.com/download.htm

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: Mame 0.98u1 , Compile problems newer neogeo games
« Reply #12 on: July 21, 2005, 09:48:28 AM »
use the old make file from 0.98 but add these lines after

ifneq ($(USE_MASH_DATAFILE),)
    DEFS += -DMASH_DATAFILE
endif

add

ifneq ($(USE_STORY_DATAFILE),)
    DEFS += -DSTORY_DATAFILE
endif


that fixed it for me


This works on the normal Mame build ?
IQ Forum Member

Offline Renegade

  • New Member
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Mame 0.98u1 , Compile problems newer neogeo games
« Reply #13 on: July 21, 2005, 11:02:15 PM »


        Are you using decrypted or encryted sets?

       When you list the errors try showing the line before, the line itself and the line after in the file that is giving the errors.

    Renegade

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: Mame 0.98u1 , Compile problems newer neogeo games
« Reply #14 on: July 22, 2005, 03:36:59 AM »
They Use bankswitch code etc .
In this case it complains on the line its self not before or after from I can tell .


Anyway Renegade do you want all my source or just the neogeo where the errors are ?
« Last Edit: July 22, 2005, 08:08:13 AM by James33 »
IQ Forum Member