Homebrew Error Compiling Snes9xGX

typo99

Well-Known Member
OP
Newcomer
Joined
Aug 30, 2008
Messages
59
Trophies
0
XP
126
Country
United States
So I'm trying to compile Snes9xGX and have run into an error.

I followed these directions to set up my environment for compiling:

http://code.google.com/p/snes9x-gx/wiki/Compiling

For step 2, I used the manual step from below since I use ubuntu:

http://wiki.devkitpro.org/index.php/Gettin...arted/devkitPPC

So after that was done I went into the snes9x directory and typed 'make'.

I get a compile error at this point:
Code:
s9xsupport.cpp
/opt/devkitpro/snes9x-gx-read-only/source/ngc/s9xsupport.cpp: In function 'void S9xSyncSpeed()':
/opt/devkitpro/snes9x-gx-read-only/source/ngc/s9xsupport.cpp:185: error: 'diff_usec' was not declared in this scope
make[2]: *** [s9xsupport.o] Error 1
make[1]: *** [build_wii] Error 2
make[1]: Leaving directory `/opt/devkitpro/snes9x-gx-read-only'
make: *** [wii] Error 2

Anyone know how to get past this error? I can't find a reference to 'diff_usec' in my /usr/include files.

This is the offending snippet from the source file s9xsupport.cpp:
Code:
extern "C" {

long long gettime();
u32 diff_usec(long long start,long long end);

}

Here is my full output:

Code:
make -f Makefile.wii
make[1]: Entering directory `/opt/devkitpro/snes9x-gx-read-only'
gui_button.cpp
gui_element.cpp
gui_filebrowser.cpp
gui_image.cpp
gui_imagedata.cpp
gui_keyboard.cpp
gui_optionbrowser.cpp
gui_savebrowser.cpp
gui_sound.cpp
gui_text.cpp
gui_trigger.cpp
gui_window.cpp
aram.cpp
audio.cpp
cheatmgr.cpp
dvd.cpp
filebrowser.cpp
fileop.cpp
filter.cpp
FreeTypeGX.cpp
freeze.cpp
gcunzip.cpp
http.cpp
input.cpp
memcardop.cpp
memfile.cpp
menu.cpp
networkop.cpp
patch.cpp
preferences.cpp
s9xconfig.cpp
s9xsupport.cpp
/opt/devkitpro/snes9x-gx-read-only/source/ngc/s9xsupport.cpp: In function 'void S9xSyncSpeed()':
/opt/devkitpro/snes9x-gx-read-only/source/ngc/s9xsupport.cpp:185: error: 'diff_usec' was not declared in this scope
make[2]: *** [s9xsupport.o] Error 1
make[1]: *** [build_wii] Error 2
make[1]: Leaving directory `/opt/devkitpro/snes9x-gx-read-only'
make: *** [wii] Error 2
 

typo99

Well-Known Member
OP
Newcomer
Joined
Aug 30, 2008
Messages
59
Trophies
0
XP
126
Country
United States
Jacobeian said:
you should also download and extract the latest libogc package from here

diif_usec is now defined in "ogc/lwp_watchdog.h"

I did that as part of my setup. The newest one they have linked to is 'libogc-13-05-2009.zip. So that shouldn't be a problem.

But, having said that, "ogc/lwp_watchdog.h" does not contain a declaration for diff_usec in the zip I downloaded - "libogc-13-05-2009.zip".

In fact I did a grep through all the header files in the "ogc" directory and diff_usec isn't in any of them.

Am I missing something here or do I need a different version of libogc? Where would I get that from?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • AncientBoi @ AncientBoi:
    ooowwww a new way for me to beat NFS 510 :D @SylverReZ
    +1
  • SylverReZ @ SylverReZ:
    @AncientBoi, Yeah, believe you can do PSP games as well. But a Pi5 is much powerful in comparison.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Not sure about other models of Pi4 but the Pi 4 B with 8GBs OCed to 2Ghz handles PSP really great except like 1 game I found and it is playable it just looks bad lol Motor Storm Arctic something or other.
  • Psionic Roshambo @ Psionic Roshambo:
    Other games I can have turned up to like 2X and all kinds of enhancements, Motorstorm hmmm nope 1X and no enhancements lol
  • Veho @ Veho:
    Waiting for Anbernic's rg[whatever]SP price announcement, gimme.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I will admit that one does seem more interesting than the usual Ambernic ones, and I already liked those.
  • Veho @ Veho:
    I dread the price point.
    +1
  • Veho @ Veho:
    This looks like one of their premium models, so... $150 :glare:
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    To me that seems reasonable.
  • Psionic Roshambo @ Psionic Roshambo:
    I mean since basically all the games are errmmm free lol
  • Veho @ Veho:
    I mean yeah sure but the specs are the same as a $50 model, it's just those pesky "quality of life" things driving up the price, like an actually working speaker, or buttons that don't melt, and stuff like that.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I think all in my Pi 4 was well north of 200 bucks 150ish for the Pi 4 the case the fancy cooler, then like 70 for the 500GB MicroSD then like 70 for the Xbox controller. But honestly it's a nice set up I really enjoy and to me was worth every penny. (even bought more controllers for 2 or 4 player games.) hmmm have never played any 2 player games yet :(
  • Veho @ Veho:
    Yeah that's what I hate about the RPi, it's supposedly $30 or something but it takes an additional $200 of accessories to actually turn it into a working something.
  • Psionic Roshambo @ Psionic Roshambo:
    yes that's the expensive part lol
  • Veho @ Veho:
    I mean sure it's flexible and stuff but so is uremum but it's fiddly.
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah a lot of it I consider a hobby, using Batocera I am constantly adjusting the collection adding and removing stuff, scraping the artwork. Haven't even started on some music for the theme... Also way down the road I am considering attempting to do a WiiFlow knock off lol
  • Veho @ Veho:
    I want everything served on a plate plz ktnx, "work" is too much work for me.
  • Veho @ Veho:
    Hmm, with that in mind, maybe a complete out-the-box solution with all the games collected, pacthed and optimized for me would be worth $150 :unsure:
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah it's all choice and that's a good thing :)
  • Bunjolio @ Bunjolio:
    animal crossing new leaf 11pm music
  • Bunjolio @ Bunjolio:
    avatars-kKKZnC8XiW7HEUw0-KdJMsw-t1080x1080.jpg
    wokey d pronouns
  • SylverReZ @ SylverReZ:
    What its like to do online shopping in 1998: https://www.youtube.com/watch?v=vwag5XE8oJo
    SylverReZ @ SylverReZ: What its like to do online shopping in 1998: https://www.youtube.com/watch?v=vwag5XE8oJo