[SOLVED] How to compile/run the wii examples

support for the powerpc toolchain
Post Reply
User avatar
jscoobyced
Posts: 11
Joined: Fri Apr 02, 2010 12:57 pm
Location: Bangkok

[SOLVED] How to compile/run the wii examples

Post by jscoobyced » Fri Apr 02, 2010 1:19 pm

Hi,

I have installed the devkit on Ubuntu 9.10 64bits without issue.
Then I downloaded the wii examples
I thought all I had to do is unzip into the /opt/devkitpro/examples/wii then run 'make' but it fails with this error:

Code: Select all

/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:32:33: warning: tremor/ivorbiscodec.h: No such file or directory
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:33:32: warning: tremor/ivorbisfile.h: No such file or directory
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:93: error: expected declaration specifiers or '...' before 'ogg_int64_t'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c: In function 'f_seek':
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:109: error: 'offset' undeclared (first use in this function)
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:109: error: (Each undeclared identifier is reported only once
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:109: error: for each function it appears in.)
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c: At top level:
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:235: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'callbacks'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:248: error: expected specifier-qualifier-list before 'OggVorbis_File'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c: In function 'ogg_add_callback':
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:286: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:289: error: 'private_data_ogg' has no member named 'pcm_indx'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:292: error: 'private_data_ogg' has no member named 'pcmout'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:292: error: 'private_data_ogg' has no member named 'pcmout_pos'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:293: error: 'private_data_ogg' has no member named 'pcm_indx'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:295: error: 'private_data_ogg' has no member named 'pcmout_pos'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:296: error: 'private_data_ogg' has no member named 'pcm_indx'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:297: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:303: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:305: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c: In function 'ogg_player_thread':
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:319: error: 'private_data_ogg' has no member named 'vi'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:319: warning: implicit declaration of function 'ov_info'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:319: error: 'private_data_ogg' has no member named 'vf'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:323: error: 'private_data_ogg' has no member named 'pcm_indx'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:324: error: 'private_data_ogg' has no member named 'pcmout_pos'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:325: error: 'private_data_ogg' has no member named 'eof'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:326: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:327: error: 'private_data_ogg' has no member named 'current_section'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:331: error: 'private_data_ogg' has no member named 'eof'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:333: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:336: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:338: error: 'private_data_ogg' has no member named 'pcmout'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:338: error: 'private_data_ogg' has no member named 'pcmout_pos'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:341: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:344: error: 'private_data_ogg' has no member named 'pcm_indx'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:346: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:348: error: 'private_data_ogg' has no member named 'seek_time'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:350: warning: implicit declaration of function 'ov_time_seek'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:350: error: 'private_data_ogg' has no member named 'vf'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:350: error: 'private_data_ogg' has no member named 'seek_time'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:351: error: 'private_data_ogg' has no member named 'seek_time'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:355: warning: implicit declaration of function 'ov_read'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:356: error: 'private_data_ogg' has no member named 'vf'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:357: error: 'private_data_ogg' has no member named 'pcmout'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:357: error: 'private_data_ogg' has no member named 'pcmout_pos'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:357: error: 'private_data_ogg' has no member named 'pcm_indx'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:358: error: 'private_data_ogg' has no member named 'current_section'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:359: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:363: error: 'private_data_ogg' has no member named 'mode'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:364: error: 'private_data_ogg' has no member named 'vf'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:366: error: 'private_data_ogg' has no member named 'eof'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:372: error: 'OV_HOLE' undeclared (first use in this function)
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:374: error: 'private_data_ogg' has no member named 'mode'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:375: error: 'private_data_ogg' has no member named 'vf'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:377: error: 'private_data_ogg' has no member named 'eof'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:384: error: 'private_data_ogg' has no member named 'pcm_indx'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:388: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:391: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:396: error: 'private_data_ogg' has no member named 'vi'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:398: error: 'private_data_ogg' has no member named 'vi'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:399: error: 'private_data_ogg' has no member named 'pcmout'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:399: error: 'private_data_ogg' has no member named 'pcmout_pos'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:400: error: 'private_data_ogg' has no member named 'pcm_indx'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:400: error: 'private_data_ogg' has no member named 'volume'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:401: error: 'private_data_ogg' has no member named 'volume'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:402: error: 'private_data_ogg' has no member named 'pcmout_pos'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:403: error: 'private_data_ogg' has no member named 'pcm_indx'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:404: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:408: error: 'private_data_ogg' has no member named 'vi'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:409: error: 'private_data_ogg' has no member named 'pcmout'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:409: error: 'private_data_ogg' has no member named 'pcmout_pos'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:410: error: 'private_data_ogg' has no member named 'pcm_indx'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:410: error: 'private_data_ogg' has no member named 'volume'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:411: error: 'private_data_ogg' has no member named 'volume'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:412: error: 'private_data_ogg' has no member named 'pcmout_pos'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:413: error: 'private_data_ogg' has no member named 'pcm_indx'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:414: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:420: warning: implicit declaration of function 'ov_clear'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:420: error: 'private_data_ogg' has no member named 'vf'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:421: error: 'private_data_ogg' has no member named 'fd'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:422: error: 'private_data_ogg' has no member named 'pcm_indx'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c: In function 'PlayOgg':
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:450: error: 'private_data_ogg' has no member named 'fd'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:452: error: 'private_data_ogg' has no member named 'fd'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:454: error: 'private_data_ogg' has no member named 'fd'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:458: error: 'private_data_ogg' has no member named 'mode'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:459: error: 'private_data_ogg' has no member named 'eof'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:460: error: 'private_data_ogg' has no member named 'volume'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:461: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:462: error: 'private_data_ogg' has no member named 'seek_time'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:465: error: 'private_data_ogg' has no member named 'seek_time'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:467: warning: implicit declaration of function 'ov_open_callbacks'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:467: error: 'private_data_ogg' has no member named 'fd'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:467: error: 'private_data_ogg' has no member named 'vf'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:467: error: 'callbacks' undeclared (first use in this function)
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:469: error: 'private_data_ogg' has no member named 'fd'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:470: error: 'private_data_ogg' has no member named 'fd'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:479: error: 'private_data_ogg' has no member named 'vf'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:480: error: 'private_data_ogg' has no member named 'fd'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c: In function 'PauseOgg':
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:490: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:494: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:496: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:497: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c: In function 'StatusOgg':
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:510: error: 'private_data_ogg' has no member named 'eof'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:512: error: 'private_data_ogg' has no member named 'flag'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c: In function 'SetVolumeOgg':
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:520: error: 'private_data_ogg' has no member named 'volume'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c: In function 'GetTimeOgg':
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:527: error: 'private_data_ogg' has no member named 'fd'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:529: warning: implicit declaration of function 'ov_time_tell'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:529: error: 'private_data_ogg' has no member named 'vf'
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c: In function 'SetTimeOgg':
/opt/devkitpro/examples/wii/audio/oggplayer/source/oggplayer.c:537: error: 'private_data_ogg' has no member named 'seek_time'
make[3]: *** [oggplayer.o] Error 1
make[2]: *** [build] Error 2
make[2]: Leaving directory `/opt/devkitpro/examples/wii/audio/oggplayer'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/opt/devkitpro/examples/wii/audio'
make: *** [all] Error 1
Should I 'sudo make'? is there anything else I should install?
I haven't installed separately the libogc since it appears the buildscripts took care of that.

Thanks,
JSC
Last edited by jscoobyced on Tue Apr 06, 2010 7:04 am, edited 1 time in total.
dkp newbie

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: How to compile/run the wii examples

Post by WinterMute » Fri Apr 02, 2010 9:10 pm

Sorry, I should probably put a note in those examples that need libs from the portlibs stuff.

http://wiki.devkitpro.org/index.php/portlibs

You'll need the tremor-lowmem-ppc lib.
Help keep devkitPro toolchains free, Donate today

Personal Blog

User avatar
jscoobyced
Posts: 11
Joined: Fri Apr 02, 2010 12:57 pm
Location: Bangkok

Re: How to compile/run the wii examples

Post by jscoobyced » Sat Apr 03, 2010 5:17 am

Thanks. That did the trick... Now I have to figure out the 'gxtexconv: Command not found' error. Probably something I need to build or configure.
dkp newbie

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: How to compile/run the wii examples

Post by WinterMute » Sat Apr 03, 2010 10:14 am

I should probably look through the buildscripts and make sure they error for the tools as well. gxtexconv needs freeimage to build, it's found in tools/gamecube.
Help keep devkitPro toolchains free, Donate today

Personal Blog

User avatar
jscoobyced
Posts: 11
Joined: Fri Apr 02, 2010 12:57 pm
Location: Bangkok

Re: How to compile/run the wii examples

Post by jscoobyced » Mon Apr 05, 2010 5:48 pm

Not sure it is a good thing to do, but I tried running "make" directly from the "tools" directory. There were several errors. When I look at the outputs from the main build script, there is no error when it is building the gxtexconv directory but I see many '> dev/null' so I guess the build errors are hidden.
Is there a way I can build the tools directory only?
dkp newbie

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: How to compile/run the wii examples

Post by WinterMute » Mon Apr 05, 2010 8:35 pm

Running make from the tools directory will work fine, you'll be building gba/ds tools as well that way though. For devkitPPC the script runs make in tools/gamecube tools/wii & tools/general - obviously you can also run make in the individual tool directories too.
Help keep devkitPro toolchains free, Donate today

Personal Blog

User avatar
jscoobyced
Posts: 11
Joined: Fri Apr 02, 2010 12:57 pm
Location: Bangkok

Re: How to compile/run the wii examples

Post by jscoobyced » Tue Apr 06, 2010 2:22 am

Ok, it seems that FreeImage.h is not in the buildscript package. There is a FreeImage.dll but no header file. I'll try to grab it from older build.
dkp newbie

User avatar
jscoobyced
Posts: 11
Joined: Fri Apr 02, 2010 12:57 pm
Location: Bangkok

Re: [SOLVED] How to compile/run the wii examples

Post by jscoobyced » Tue Apr 06, 2010 7:04 am

See this post.
dkp newbie

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest