Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
newbie questions - porting dgen (Genesis EMU) /w MIPSpro unresolved test symbol "pow
#21
Re: newbie questions - porting dgen (Genesis EMU) /w MIPSpro unresolved test symbol "pow
Yeah, those faux-CRT effects in emulators tend to be a massive horsepower sink. Gens offers a reasonably performant simple horizontal blur to mimic the Genesis's notorious NTSC color smearing (some games rely on this to turn dithering into color blending or even quasi-transparency!) but that's as far as I'll bother taking it.
Computers: Amiga 1200, DEC VAXStation 4000/60, DEC MicroPDP-11/73
Synthesizers: Roland JX-10/SH-09/MT-32/D-50, Yamaha DX7-II/V50/TX7/TG33/FB-01, Korg MS-20 Mini/ARP Odyssey/DW-8000/X5DR, Ensoniq SQ-80, E-mu Proteus/2, Nord Lead 2, Behringer Model D
commodorejohn Offline
Octane

Posts: 105
Threads: 6
Joined: May 2018
Find Reply
07-14-2018, 05:24 PM
#22
Re: newbie questions - porting dgen (Genesis EMU) /w MIPSpro unresolved test symbol "pow
commodorejohn post_id=1517 time=1531589060 user_id=106 Wrote:Yeah, those faux-CRT effects in emulators tend to be a massive horsepower sink. Gens offers a reasonably performant simple horizontal blur to mimic the Genesis's notorious NTSC color smearing (some games rely on this to turn dithering into color blending or even quasi-transparency!) but that's as far as I'll bother taking it.

dgen also has a pretty cool blur effect (f5 to cycle through "Crap TV" effects - blur, scanlines, interlace, etc; f6 to cycle through the "scaler" effects - scale, hqx, scale2x, etc). Seems the "Crap TV" effects dont seem to have an impact on performance, but enabling the "scaler" effects eats alot of performance.

I think the blur effect is pretty cool, def reminds me of some old TV's I had
gijoe77 Offline
Tezro

Posts: 354
Threads: 23
Joined: Jun 2018
Find Reply
07-15-2018, 09:52 AM
#23
Re: newbie questions - porting dgen (Genesis EMU) /w MIPSpro unresolved test symbol "pow
ok, so i think I have a good handle on compiling dgen now. I wanted to add the ability of using compressed rom images (.zip files for example). I had this capability with dgen 1.33 when i did a test compile on a recent linux system, so I know the code can support it.

I was under the impression I needed libarchives for this. so I went and compile and installed libarchives3.3.2, but I seem to not be able to meet my goals.

first I compiled/installed openssl, then i compiled/installed libarchives, both into /usr/local

when I compiled dgen 1.33 with these options, here was the "./configure --help" flag that caught my attention:

Code:
--with-libarchive       use libarchive for compressed ROMs [default=auto]

so with /usr/local/include/archive.h existing, I did this:

Code:
./configure --with-sdl-prefix=/usr/nekoware --oldincludedir=/usr/local/include --enable-joystick=no  --with-libarchive

and the configure script gave me this:

Code:
checking archive.h usability... no
checking archive.h presence... no
checking for archive.h... no

Code:
Compressed ROMs: no

I tried playing around with various command line options, but eventually i ended up just saying F* it and doing:

Code:
cp -i /usr/local/include/archive.h /usr/include/
./configure --with-sdl-prefix=/usr/nekoware --oldincludedir=/usr/local/include --enable-joystick=no  --with-libarchive

I actually got more ahead here:

Code:
checking archive.h usability... yes
checking archive.h presence... yes
checking for archive.h... yes
checking for archive_read_support_format_raw in -larchive... no

but still ended up final config with :
Code:
Compressed ROMs: no

I was under the impression that once I had libarchives I would have "compressed rom" support, can someone shed some light what im doing wrong?
gijoe77 Offline
Tezro

Posts: 354
Threads: 23
Joined: Jun 2018
Find Reply
07-22-2018, 03:59 AM
#24
Re: newbie questions - porting dgen (Genesis EMU) /w MIPSpro unresolved test symbol "pow
Hi gijoe,

keep always in mind that you have all you need to resolve this kind of issues. In this case just look into the configure script itself:

1. How does it detect libarchive?
2. How does it determine compressed rom support (it displays [auto], so there is some algorithm for this inside configure)

And then set the correct settings. A possible solution could be setting the include dir for configure to both /usr/include and /usr/local/include, so it finds archive.h. This can be done in a variety of ways, for example modifying CPPFLAGS (CPP = C PreProcessor): Here go all the -I/path/to/include/files flags. Another example is to specify include and lib dirs specifically through appropriate flags, when configure allows this: --libXYZ-includedir=/path/to/libXYZ/include and --libXYZ-libdir=/path/to/libXYZ/lib. These flags get translated to the corresponding -I and -L flags for the C PreProcessor (CPPFLAGS) and linker (LDFLAGS).


Tru
TruHobbyist Offline
O2

Posts: 43
Threads: 6
Joined: May 2018
Find Reply
07-22-2018, 09:28 AM
#25
Re: newbie questions - porting dgen (Genesis EMU) /w MIPSpro unresolved test symbol "pow
@gijoe77

Libarchive you got working? Details please!
I'm the manager
Besides irix.cc, I run these sites:
projectkitsune.com
kazuo.io

Tezro
Octane2
Indigo2 IMPACT
Indigo2
3x O2
3x Indy

Raion Offline
Administrator
*******

Posts: 270
Threads: 46
Joined: Nov 2017
Discord: Umbra#0893
Website Find Reply
07-24-2018, 04:34 AM
#26
Re: newbie questions - porting dgen (Genesis EMU) /w MIPSpro unresolved test symbol "pow
Raion-Fox post_id=1702 time=1532406859 user_id=49 Wrote:@gijoe77

Libarchive you got working? Details please!

It's in the thread you were helping me with silly! https://forums.irix.cc/viewtopic.php?f=10&t=265&p=1821#p1655
well I can't say for sure it's working - I'm just assuming it works because it compiled and linked so maybe I shouldn't assume... Not too sure how to test it just yet... was hoping to check to see if its working with this dgen compile Smile
gijoe77 Offline
Tezro

Posts: 354
Threads: 23
Joined: Jun 2018
Find Reply
07-30-2018, 09:02 PM
#27
Re: newbie questions - porting dgen (Genesis EMU) /w MIPSpro unresolved test symbol "pow
TruHobbyist post_id=1669 time=1532251738 user_id=84 Wrote:CPPFLAGS (CPP = C PreProcessor)

OMG all this time I thought that was C++ CFLAGS...
gijoe77 Offline
Tezro

Posts: 354
Threads: 23
Joined: Jun 2018
Find Reply
07-30-2018, 09:03 PM
#28
Re: newbie questions - porting dgen (Genesis EMU) /w MIPSpro unresolved test symbol "pow
ok now that I got past the libarchive stuff (https://forums.irix.cc/viewtopic.php?f=10&t=265&p=1864#p1864), I want to try to use it for compressed ROM support in dgen, I'm getting a problem with linking to the proper libarchive library via C++:

Code:
export CC=/usr/bin/cc
export CXX=/usr/bin/CC
export CFLAGS="-c99 -diag_suppress 3649 -diag_error 1035 -woff all -Ofast=ip35 -g0 -O3 -n32 -mips4 -OPT:Olimit=0:roundoff=3:IEEE_ar=3:fast_sq=ON:div_split=ON:alias=typed -GCM:array_sp=ON -lfastm -TARG:platform=IP35:proc=r16000 -IPA"
export CXXFLAGS="-ptused -diag_suppress 3649 -woff all -Ofast=ip35 -g0 -O3 -n32 -mips4 -OPT:Olimit=0:roundoff=3:IEEE_ar=3:fast_sq=ON:div_split=ON:alias=typed -GCM:array_sp=ON -lfastm -TARG:platform=IP35:proc=r16000 -IPA"
export CPPFLAGS="-I/usr/local/include -I/usr/nekoware/include -L/usr/local/lib -L/usr/nekoware/lib"
export CXXCPP="/usr/bin/CC -E -I/usr/local/include -I/usr/nekoware/include -L/usr/local/lib -L/usr/nekoware/lib"
./configure --with-sdl-prefix=/usr/nekoware --oldincludedir=/usr/nekoware/include --enable-joystick=no

<snip>
checking archive.h usability... yes
checking archive.h presence... yes
checking for archive.h... yes
checking for archive_read_support_format_raw in -larchive... yes
<snip>
Compressed ROMs: yes

gmake
<snip>  
CXXLD  dgen
C++ prelinker: warning: could not locate library -larchive; assuming /usr/lib/libarchive.a
C++ prelinker: warning: could not locate library -larchive; assuming /usr/lib/libarchive.a
ld32: FATAL   9  : I/O error (-larchive): No such file or directory
gmake[1]: *** [dgen] Error 2

so It appears -larchive doesn't point to /usr/local/lib/libarchive.a - is there a way to point it to the proper path or should I just do a symbolic link to it? What's the proper way to address this?
gijoe77 Offline
Tezro

Posts: 354
Threads: 23
Joined: Jun 2018
Find Reply
08-01-2018, 12:01 AM
#29
Re: newbie questions - porting dgen (Genesis EMU) /w MIPSpro unresolved test symbol "pow
Code:
export LDFLAGS="-L/usr/local/lib"
is the environment setting you need to set to tell the linker which path it needs to search for libraries.
dexter1 Offline
Global Moderator
******

Posts: 130
Threads: 8
Joined: May 2018
Find Reply
08-01-2018, 10:05 AM
#30
Re: newbie questions - porting dgen (Genesis EMU) /w MIPSpro unresolved test symbol "pow
dexter1 post_id=1873 time=1533117946 user_id=141 Wrote:
Code:
export LDFLAGS="-L/usr/local/lib"
is the environment setting you need to set to tell the linker which path it needs to search for libraries.

Thanks dexter1! That was it! Works like a charm now! it supports zip, gz, rar, xz, bz2 - that's all i've tried so far.

I found a frontend that's supposed to work with an older version of dgen, but it's tcl/tk and the source is in Portuguese, so looks like I'll be learning tcl/tk and portuguese. I'll post everything I have once I gt this frontend working a bit.

Thanks to everyone for your kind help!
gijoe77 Offline
Tezro

Posts: 354
Threads: 23
Joined: Jun 2018
Find Reply
08-01-2018, 08:57 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)