[SOLVED] How to compile/run the wii examples
Posted: 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:
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
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
I haven't installed separately the libogc since it appears the buildscripts took care of that.
Thanks,
JSC