View unanswered posts | View active topics It is currently Mon Sep 24, 2018 7:34 am



Reply to topic  [ 3 posts ] 
 Error compiling wii examples 
Author Message

Joined: Sat Dec 28, 2013 2:42 pm
Posts: 24
After a fresh installation on windows (using devkitProUpdater-3.0.3), running Makefile from C:\devkitPro\examples\wii, I have this error:

make[1]: ingresso nella directory "/opt/devkitpro/examples/wii/filesystem/directory"
directory.c
C:/devkitPro/examples/wii/filesystem/directory/source/directory.c: In function 'main':
C:/devkitPro/examples/wii/filesystem/directory/source/directory.c:65:14: error: storage size of 'statbuf' isn't known
struct stat statbuf;
^~~~~~~
C:/devkitPro/examples/wii/filesystem/directory/source/directory.c:75:3: warning: implicit declaration of function 'stat'; did you mean 'strcat'? [-Wimplicit-function-declaration]
stat(pent->d_name,&statbuf);
^~~~
strcat
C:/devkitPro/examples/wii/filesystem/directory/source/directory.c:78:6: warning: implicit declaration of function 'S_ISDIR' [-Wimplicit-function-declaration]
if(S_ISDIR(statbuf.st_mode))
^~~~~~~
C:/devkitPro/examples/wii/filesystem/directory/source/directory.c:65:14: warning: unused variable 'statbuf' [-Wunused-variable]
struct stat statbuf;
^~~~~~~
make[2]: *** [/opt/devkitpro/devkitPPC/base_rules:18: directory.o] Error 1
make[1]: *** [Makefile:100: build] Error 2
make[1]: uscita dalla directory "/opt/devkitpro/examples/wii/filesystem/directory"
make: *** [Makefile:15: examples] Error 1

What's wrong?

pacman output:

# pacman -Sl dkp-libs
dkp-libs 3ds-bulletphysics 2.87-2
dkp-libs 3ds-bzip2 1.0.6-2
dkp-libs 3ds-curl 7.59.0-2
dkp-libs 3ds-examples 20180513-2
dkp-libs 3ds-flite 2.1-1
dkp-libs 3ds-freetype 2.9-1
dkp-libs 3ds-jansson 2.11-1
dkp-libs 3ds-libarchive 3.1.2-2
dkp-libs 3ds-libconfig 1.7.2-1
dkp-libs 3ds-libid3tag 0.15.1b-1
dkp-libs 3ds-libjpeg-turbo 1.5.3-1
dkp-libs 3ds-liblzma 5.2.3-1
dkp-libs 3ds-libmad 0.15.1b-1
dkp-libs 3ds-libogg 1.3.3-2
dkp-libs 3ds-libpng 1.6.34-1
dkp-libs 3ds-libvorbisidec 1.2.1-2
dkp-libs 3ds-mbedtls 2.8.0-1
dkp-libs 3ds-mikmod 3.3.11.1-1
dkp-libs 3ds-mpg123 1.25.10-1
dkp-libs 3ds-pkg-config 0.28-2
dkp-libs 3ds-sdl 1.2.15-4
dkp-libs 3ds-sdl_gfx 2.0.25-1
dkp-libs 3ds-sdl_image 1.2.12-1
dkp-libs 3ds-sdl_mixer 1.2.12-7
dkp-libs 3ds-sdl_ttf 2.0.11-1
dkp-libs 3ds-tinyxml2 6.0.0-1
dkp-libs 3ds-zlib 1.2.11-1
dkp-libs citro2d 1.0.0-1
dkp-libs citro3d 1.4.0-1
dkp-libs default-arm7 0.7.4-2
dkp-libs devkitpro-pkgbuild-helpers 1.0.6-1
dkp-libs dswifi 0.4.2-1
dkp-libs gamecube-examples 20180520-1
dkp-libs gba-examples 20170228-3
dkp-libs gp32-examples 20051021-2
dkp-libs libctru 1.5.0-1
dkp-libs libfat-gba 1.1.3-1
dkp-libs libfat-nds 1.1.3-1
dkp-libs libfat-ogc 1.1.3-1 [installato]
dkp-libs libfilesystem 0.9.14-1
dkp-libs libgba 0.5.1-1
dkp-libs libmirko 0.9.8-1
dkp-libs libnds 1.7.3-1
dkp-libs libnx 1.3.2-1
dkp-libs libogc 1.8.20-1 [installato]
dkp-libs libtonc 1.4.3-2
dkp-libs maxmod-gba 1.0.11-1
dkp-libs maxmod-nds 1.0.11-2
dkp-libs nds-examples 20180516-2
dkp-libs ppc-bzip2 1.0.6-1
dkp-libs ppc-freetype 2.9-3
dkp-libs ppc-libjpeg-turbo 1.5.3-1
dkp-libs ppc-libogg 1.3.3-2 [installato]
dkp-libs ppc-libpng 1.6.34-1
dkp-libs ppc-libvorbisidec 1.2.1-1 [installato]
dkp-libs ppc-mpg123 1.25.10-1
dkp-libs ppc-mxml 2.11-1
dkp-libs ppc-pkg-config 0.28-3
dkp-libs ppc-zlib 1.2.11-1
dkp-libs switch-bulletphysics 2.87-1
dkp-libs switch-bzip2 1.0.6-2
dkp-libs switch-curl 7.59.0-1
dkp-libs switch-examples 20180522-1
dkp-libs switch-flac 1.3.2-1
dkp-libs switch-freetype 2.9-3
dkp-libs switch-jansson 2.11-1
dkp-libs switch-libass 0.14.0-1
dkp-libs switch-libconfig 1.7.2-1
dkp-libs switch-libexpat 2.2.5-1
dkp-libs switch-libfribidi 1.0.4-1
dkp-libs switch-libjpeg-turbo 1.5.3-1
dkp-libs switch-libjson-c 0.13.1-1
dkp-libs switch-libmad 0.15.1b-1
dkp-libs switch-libmikmod 3.3.11.1-1
dkp-libs switch-libmodplug 0.8.8.5-1
dkp-libs switch-libogg 1.3.3-1
dkp-libs switch-libopus 1.2.1-1
dkp-libs switch-libpng 1.6.34-3
dkp-libs switch-libsamplerate 0.1.9-1
dkp-libs switch-libtheora 1.1.1-1
dkp-libs switch-libvorbis 1.3.5-1
dkp-libs switch-libvorbisidec 1.2.1-1
dkp-libs switch-libxml2 2.9.8-1
dkp-libs switch-mpg123 1.25.10-2
dkp-libs switch-pkg-config 0.28-2
dkp-libs switch-sdl2 2.0.8-8
dkp-libs switch-sdl2_gfx 1.0.4-1
dkp-libs switch-sdl2_image 2.0.3-3
dkp-libs switch-sdl2_mixer 2.0.2-2
dkp-libs switch-sdl2_net 2.0.1-1
dkp-libs switch-sdl2_ttf 2.0.14-2
dkp-libs switch-zlib 1.2.11-1
dkp-libs wii-examples 20180520-1 [installato]


Sun Sep 09, 2018 10:58 am
Profile
Site Admin

Joined: Tue Aug 09, 2005 3:21 am
Posts: 1290
Location: UK
Apologies. I hadn't got around to repackaging examples when I fixed this.

Update again & all should be well.

_________________
Help keep devkitPro toolchains free, Donate today

devkitPro IRC support
Personal Blog


Mon Sep 10, 2018 5:49 pm
Profile ICQ WWW

Joined: Sat Dec 28, 2013 2:42 pm
Posts: 24
Solved!
Thanks


Wed Sep 12, 2018 6:17 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
  Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.
Get devkitPro at SourceForge.net. Fast, secure and Free Open Source software downloads