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
  • SylverReZ @ SylverReZ:
    @Xdqwerty, People who create revival services for the Wii end up in disaster, same goes for Pretendo lol.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, atleast wiimmfii went fine although people only use it for Mario kart Wii
  • SylverReZ @ SylverReZ:
    At least if they ban you for cheating, get another Wii. They're cheap as chips.
    +1
  • SylverReZ @ SylverReZ:
    Remember when RiiShop was a thing?
  • BakerMan @ BakerMan:
    not really
  • SylverReZ @ SylverReZ:
    It got shutdown because somebody "accidentally" leaked the database for the amount of people using the beta.
  • SylverReZ @ SylverReZ:
    RiiShop is the laziest way of downloading Wii games. Did somebody not think of this through?
  • BakerMan @ BakerMan:
    although i ended up accidentally changing my nand with no way of going back bc i didn't know you needed a gamecube controller to restore it (i have a wii minus/1.1, which doesn't have gamecube controller support)
  • SylverReZ @ SylverReZ:
    @BakerMan, I think you're talking about the recovery mode that the SaveMii used, and also was to restore softbricked systems.
  • SylverReZ @ SylverReZ:
    If your NAND was hardbricked, then just buy another Wii. Or go with the dirty NAND flasher method.
  • BakerMan @ BakerMan:
    and if i find the sd card i have my NAND backed up on, i can not only restore the NAND if i solder the right part in, but i can also put my NAND on dolphin, then i can play dolphin online, like PMEX Remix or MKWii Riibalanced
  • Xdqwerty @ Xdqwerty:
    Brb
  • SylverReZ @ SylverReZ:
    @BakerMan, Oh yeah, that was a thing too. Dolphin does support Wiimmfi.
  • BakerMan @ BakerMan:
    yeah you just need to put your NAND backup with wiimmfi on it
  • BakerMan @ BakerMan:
    ngl i feel like if a bunch of my friends have wiis and know how to get wiimmfi and back up their NAND, then we could do a PMEX Remix tournament
  • BakerMan @ BakerMan:
    maybe even add UMVC3/DBFZ and make it a biathlon/triathlon
  • Psionic Roshambo @ Psionic Roshambo:
    Too bad Excite Truck wasn't multi player :(
  • Psionic Roshambo @ Psionic Roshambo:
    Loved that game lol
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, sorry for the stupid suggestion I had in that thread
  • SylverReZ @ SylverReZ:
    Its fine
  • BakerMan @ BakerMan:
    what thread?
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=lxR2jow50Bs