HomeForumsWhat's newResources 
 
 
ssf binary test
mrkotfw - Feb 20, 2005
 mrkotfw Feb 20, 2005
a rather useless thread but i'm pretty desperate. is anyone willing to test color test...? i'm on linux and ssf doesn't seem to run at all on wine. (i need it to be ssf because it supports the back screen) this is a test to see if i can write something without using any sega libraries.

 vbt Feb 20, 2005

  
	
	
Originally posted by Piratero@Sun, 2005-02-20 @ 11:38 PM

a rather useless thread but i'm pretty desperate. is anyone willing to test color test...? i'm on linux and ssf doesn't seem to run at all on wine. (i need it to be ssf because it supports the back screen) this is a test to see if i can write something without using any sega libraries.

[post=130100]Quoted post[/post]



Black screen with SSF 0.06 and Girigiri

 mrkotfw Feb 20, 2005
ah bummer.

Code:
  
int

main(void)

{

  TVMD = DISP | BDCLMD;

  EXTEN = 0;

  VRSIZE = 0;

  BGON = 0;

  CHCTLA = 0;

  BKTAU = ((BACK_CRAM >> 16) & 0x7);

  BKTAL = (BACK_CRAM & 0xFFFF);

  *(vu16 *)BACK_CRAM = RGB(28,20,16);

  for(;;) {

    synch();

  }

  return 0;

}

 antime Feb 21, 2005
First off, the back screen registers hold the value of the address divided by two (the colour definitions are 15-bit values and thus use a 2-byte alignment). Secondly, the back screen is not well supported in emulators (but I don't remember if SSF in particular had problems). Lastly, have you tried using (the CVS version of) Yabause? It's by no means perfect, but it's steadily improving and you can look in the source code to see exactly what is supported and what is not.

 mrkotfw Feb 21, 2005
i understand

Code:
  
#define VDP2_VRAM_A1 0x25E20000

#define BACK_CRAM (VDP2_VRAM_A1 + 0x1FFFE)

do i divide the address for BKTAL? i did check yabause and it does have back screen support (but it's commented out -- i found this out a few hours ago)

p.s: i accidently posted in the saturn section, is there a way it could be moved to the saturn dev section?

 antime Feb 21, 2005
BKTAL = BACK_CRAM >> 1;

BKTAU = (BACK_CRAM >> 17) & 7;

 mrkotfw Feb 21, 2005
i'll try that, thanks

 mrkotfw Feb 23, 2005
it works now thanks to Guillaumito. he added back screen support! (antime's copper bar demo works along with my own color test) screenshot here...

 slinga Feb 24, 2005
Any advice for the linux noob? I'm running SuSE 9.2, and after downloading an unzipping\untarring I get this error when I try to configure:

...

checking for sdl-config... no

configure: error: You need SDL

I dowloaded and installed SDL, even though I already had it (rpm -u). Still no dice.

 mrkotfw Feb 24, 2005
a bit off topic but sure. did you run
Code:
  
# ldconfig
? i suggest you run a better distro. something like Slackware... or gentoo.... also, you probably need to specify where you installed the libs. as you know, this all must be done as root

 slinga Feb 24, 2005
Nope didn't work....I did a find for sdl-config and it doesn't look like I have it on my hard drive.

 mrkotfw Feb 24, 2005
well, why not try to compile sdl from source?

 it290 Feb 24, 2005
You need the sdl-devel package if you're going to compile SDL based programs.

 slinga Feb 24, 2005
It290: You are correct, thanks.

 Guillaume Feb 25, 2005

  
	
	
It290: You are correct, thanks.


Is it compiling (and running) now?

I've never tried to compile it on a SuSE but it should work.

 slinga Feb 25, 2005
Not yet,

I now get this error:


  
	
	
*** The pkg-config script could not be found. Make sure it is

*** in your path, or set the PKG_CONFIG environment variable

*** to the full path to pkg-config.

*** Or see http://www.freedesktop.org/software/pkgconfig... to get pkg-config.

checking for left and right in STL streams... yes

configure: creating ./config.status

config.status: creating Makefile

config.status: creating src/Makefile

config.status: creating doc/Makefile

config.status: executing depfiles commands



Since it made the makefile, I tried "make", but I get source code errors:


  
	
	
Making all in src

make[1]: Entering directory `/home/poberoi/yabause/src'

source='memory.cc' object='memory.o' libtool=no \

depfile='.deps/memory.Po' tmpdepfile='.deps/memory.TPo' \

depmode=gcc3 /bin/sh ../depcomp \

g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"yabause\" -DVERSION=\"0.0.7\" -DHAVE_LIBGL=1 -DSTL_LEFT_RIGHT=1 -I. -I. -g -O2 -I/usr/include/SDL -D_REENTRANT -c -o memory.o `test -f 'memory.cc' || echo './'`memory.cc

In file included from registres.hh:22,

from memory.cc:21:

vdp1.hh:31:19: GL/gl.h: No such file or directory

In file included from vdp1.hh:35,

from registres.hh:22,

from memory.cc:21:

vdp2.hh:34:19: GL/gl.h: No such file or directory

In file included from vdp1.hh:35,

from registres.hh:22,

from memory.cc:21:

vdp2.hh:71: error: syntax error before `[' token

In file included from registres.hh:22,

from memory.cc:21:

vdp1.hh:59: error: 'GLuint' is used as a type, but is not defined as a type.

vdp1.hh:79: error: syntax error before `[' token

make[1]: *** [memory.o] Error 1

make[1]: Leaving directory `/home/poberoi/yabause/src'

make: *** [all-recursive] Error 1



I'm guessing it's from that pkg-config. I'll search the web for the proper rpm.

 mrkotfw Feb 26, 2005
you need opengl, it looks like you're missing the header files /usr/include?

 slinga Feb 26, 2005
Nuts, looks like I'm so outta luck: http://www.linuxhardware.org/article.pl?si...236&m...

My IBM T22 Laptop (4 years old) doesn't support openGl. Bah my super computer (and super laptop) should be here in a month.

 slinga May 15, 2005
Bah, I got my super computer, everything runs super fast, but I still can't compile Yabause.

I'm getting the errors regarding OpenGL looks like. The back of my video card says it supports openGL. Any advice? I hope it doesn't involve installing drivers. I'm still too much of a noob for that.

 mrkotfw Jul 10, 2005
well, i get complaints about the glut library, i try this:
Code:
  
export LDFLAGS="-L/usr/X11R6/lib"
also, i strongly suggest you cvs update the code because it is the latest and greatest :cheers