So, I can build DGen on my Mac running 10.8.3 but, I get some weird colors when I try playing Sonic 3 & Knuckles. I've attached a screenshot & my dgenrc.5 file
Thanks for your report, this is unfortunately a somewhat recurrent problem.
Good news, there's already a workaround by enabling bool_swab. Either in the configuration file (~/.dgen/dgenrc) by adding the following line:
bool_swab = true
Or directly from DGen by typing:
:bool_swab true
Now in order to debug this, I need some more information. First, you sent dgenrc.5 which is the manual page. The actual configuration file is .dgenrc in your home directory (~/.dgen/dgenrc).
Next I'd like to know if you're running on a big endian machine (an older Mac PPC?) and whether you're using DGen in OpenGL mode (looks like it, but I'm not sure).
Can you also recompile DGen in debug mode (./configure --enable-debug), launch it from a terminal and paste the initialization output here?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello! I have got a same trouble. It looks like opengl wasn't configured correctly. Emu works fine, but when I try to set it in the fullscreen mode it starts blinking. My system is osx 10.5.8 powerpc g4.
Ok, your config.log file doesn't help me a lot unfortunately. Did you need to enable bool_swab to have OpenGL with correct colors on your PowerPC G4?
If it's blinking in fullscreen mode, it's probably another issue. Since I don't have the ability to reproduce this problem, maybe you should post a video somewhere and open another bug.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Indeed, your config.log says libGL can't be found. I don't know where it's supposed to be found in Mac OS X, although autoconf is supposed to know where to look.
You should try to locate libgl.dylib and gl.h manually and add their directories to CFLAGS and LDFLAGS for configure, like this:
OK, so you didn't have to ever use bool_swab on your Mac PPC, neither in OpenGL nor in non-OpenGL mode? In the end, the only problem is the doublebuffer thing, which is a separate issue I still can't reproduce myself.
I'm wondering what kind of setup eisnerguy1 had when opening this ticket. Perhaps bool_swab is required on Intel Macs.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The doublebuffer thing appears with
bool_opengl = false
bool_doublebuffer = true
only in fullscreen mode, by pressing alt-enter from the small window. By the way
bool_fullscreen doesn't make any effect on my system, so I left this value as false.
Now about wierd colors.
There're two equivalent boolean values in my dgenrc.auto. Here they are:
bool_swab
bool_opengl_swap
Either of them calls up wierd colors with any values of bool_opengl. So maybe one of them already was true in the ticket owner's setup.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Screenshot of Sonic 3 & Knuckles
dgenrc.5 file
Hello,
Thanks for your report, this is unfortunately a somewhat recurrent problem.
Good news, there's already a workaround by enabling bool_swab. Either in the configuration file (~/.dgen/dgenrc) by adding the following line:
bool_swab = true
Or directly from DGen by typing:
:bool_swab true
Now in order to debug this, I need some more information. First, you sent dgenrc.5 which is the manual page. The actual configuration file is .dgenrc in your home directory (~/.dgen/dgenrc).
Next I'd like to know if you're running on a big endian machine (an older Mac PPC?) and whether you're using DGen in OpenGL mode (looks like it, but I'm not sure).
Can you also recompile DGen in debug mode (./configure --enable-debug), launch it from a terminal and paste the initialization output here?
Hello! I have got a same trouble. It looks like opengl wasn't configured correctly. Emu works fine, but when I try to set it in the fullscreen mode it starts blinking. My system is osx 10.5.8 powerpc g4.
Ok, your config.log file doesn't help me a lot unfortunately. Did you need to enable bool_swab to have OpenGL with correct colors on your PowerPC G4?
If it's blinking in fullscreen mode, it's probably another issue. Since I don't have the ability to reproduce this problem, maybe you should post a video somewhere and open another bug.
Thank you for your response.
I've tried to do this. It was a bad idea.
bool_swab = false
turns correct colors back. It's ok now.
Yes. I've already found out that
bool_doublebuffer = false
solves this. It is not blinking anymore.
But I still can't configure opengl, unfortunately.
./configure
...
checking for library containing glEnd... no
...
Front-end
OpenGL: no
Could you help me with this? Program works fine on my configuration except that.
Last edit: Sunjoin 2013-12-13
Indeed, your config.log says libGL can't be found. I don't know where it's supposed to be found in Mac OS X, although autoconf is supposed to know where to look.
You should try to locate libgl.dylib and gl.h manually and add their directories to CFLAGS and LDFLAGS for configure, like this:
./configure CFLAGS=-I/directory/containing/gl.h/ LDFLAGS=-L/directory/containing/libgl.dylib
Also, your config.log says libarchive isn't installed. You should install it first if you want to use zipped ROMs.
Everything is clear now.
Here it is:
Before that I installed
libarchive
zlib
DGen works with PowerPC!
(Mac OS X 10.5.8)
OK, so you didn't have to ever use bool_swab on your Mac PPC, neither in OpenGL nor in non-OpenGL mode? In the end, the only problem is the doublebuffer thing, which is a separate issue I still can't reproduce myself.
I'm wondering what kind of setup eisnerguy1 had when opening this ticket. Perhaps bool_swab is required on Intel Macs.
No, I didn't.
The doublebuffer thing appears with
bool_opengl = false
bool_doublebuffer = true
only in fullscreen mode, by pressing alt-enter from the small window. By the way
bool_fullscreen doesn't make any effect on my system, so I left this value as false.
Now about wierd colors.
There're two equivalent boolean values in my dgenrc.auto. Here they are:
bool_swab
bool_opengl_swap
Either of them calls up wierd colors with any values of bool_opengl. So maybe one of them already was true in the ticket owner's setup.
You're right about bool_swab and bool_opengl_swap, these variable are aliased. bool_opengl_swap is kept for compatibility with older configurations.
Now about fullscreen flickering, apparently SDL has trouble with double buffering under Mac OS X, and it seems it's not a new issue:
http://lists.libsdl.org/pipermail/sdl-libsdl.org/2002-December/032375.html
Can you confirm that bool_doublebuffer=true works fine in OpenGL mode?
Yes, bool_doublebuffer=true works fine in OpenGL mode only.