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:
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:
Here is my full output:
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