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
  • No one is chatting at the moment.
  • a_username_that_is_cool @ a_username_that_is_cool:
    DDDS . Dual Developer Dedede System :)
    +1
  • BakerMan @ BakerMan:
    also happy birthday @Xdqwerty
    +1
  • BigOnYa @ BigOnYa:
    Is it me you're looking for?
  • MysticStarlight @ MysticStarlight:
    'Cause I wonder where you are
  • MysticStarlight @ MysticStarlight:
    wait I got the lyrics mixed up
    +1
  • BigOnYa @ BigOnYa:
    And I wonder what you do...Lol
  • BigOnYa @ BigOnYa:
    Its all good, I'm here to talk to you.
  • BigOnYa @ BigOnYa:
    Hello
  • BigOnYa @ BigOnYa:
    I've been playing fallout4 all day, I went into a elevator and it kept going, never stopped, waited 5 minutes, must of been a bug. How bout you, whatcha do today?
    +1
  • MysticStarlight @ MysticStarlight:
    I'm wondering why a stray tuxedo cat has a cloudy eye
  • MysticStarlight @ MysticStarlight:
    I've been playing TOTK all day also
    +1
  • MysticStarlight @ MysticStarlight:
    Oh you reminded me of those elevator nightmares
  • BigOnYa @ BigOnYa:
    Awesome game, fun how they force you to build, but you can build as you want
  • MysticStarlight @ MysticStarlight:
    It is super fun, I actually prefer it over BoTW
    +1
  • BigOnYa @ BigOnYa:
    The guy holding the sign always cracked me up, esp when you fail, and it falls
  • MysticStarlight @ MysticStarlight:
    Ah yes, that guy lol. I still need to find all his signs. The game has a lot to do though so I don't know what to finish first
  • MysticStarlight @ MysticStarlight:
    I'm 120 hours in and am still like 44.4% done
    +1
  • BigOnYa @ BigOnYa:
    Good times. Building is starting to get good around now for you. You making me want to make run thru again.
  • BigOnYa @ BigOnYa:
    Ok good chatting, enjoy your gaming, and avoid the lightning, or put your sword away. Good night.
  • K3Nv2 @ K3Nv2:
    All I gotta do is not spend $10 in the next 5 days and I'll break even this month lol
  • K3Nv2 @ K3Nv2:
    @BigOnYa, tell your wife not to forget her wallet
    +1
    K3Nv2 @ K3Nv2: https://youtu.be/YMAa6obDNZs?si=rymChLKeTdyS8nqk