Re: Re: Error compiling (devkitPPC is set correctly)
Home › Forums › Development › Error compiling (devkitPPC is set correctly) › Re: Re: Error compiling (devkitPPC is set correctly)
SEE THE UPDATE AT THE BOTTOM
Thanks a lot for your help. I did make and make install on both libntfs and libext2fs and now it gets past the errors over the includes not being found. But, either because I’m very stupid or because WiiMC’s compilation process too complex for my brain’s capacity, I still can’t compile it. Now it complains about specific errors in the code:
root@GabrielUbuntuDesktop:/home/gabriel/wiimc-read-only# make
cd source/mplayer; make -f Makefile; cd ../..
make[1]: Entrando no diretório `/home/gabriel/wiimc-read-only/source/mplayer'
/opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc -MD -MP -O3 -pipe -g -ffast-math -mcpu=750 -meabi -mrvl -msdata -mpaired -mmultiple -mstring -mrecip -std=gnu99 -O3 -pipe -ffast-math -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/opt/devkitpro/portlibs/ppc/include -I/opt/devkitpro/libogc/include -Ilibdvdread4 -Ilibdvdnav -I/opt/devkitpro/portlibs/ppc/include/freetype2 -I/opt/devkitpro/libogc/include/ogc/machine -I/opt/devkitpro/devkitPPC/../buildscripts/powerpc-eabi/gcc/gcc/include -I. -Iffmpeg -mpaired -DGEKKO -mrvl -mcpu=750 -meabi -msdata -mmultiple -mstring -mrecip -c -o stream/stream.o stream/stream.c
stream/stream.c:30:21: fatal error: strings.h: No such file or directory
compilation terminated.
make[1]: ** [stream/stream.o] Erro 1
make[1]: Saindo do diretório `/home/gabriel/wiimc-read-only/source/mplayer'
fileop.cpp
/home/gabriel/wiimc-read-only/source/fileop.cpp: In function 'void* devicecallback(void*)':
/home/gabriel/wiimc-read-only/source/fileop.cpp:158:27: error: too many arguments to function 'BOOL ISO9660_Unmount()'
/opt/devkitpro/libogc/include/iso9660.h:13:6: note: declared here
/home/gabriel/wiimc-read-only/source/fileop.cpp: In function 'void AddPartition(sec_t, int, int, int*)':
/home/gabriel/wiimc-read-only/source/fileop.cpp:494:34: error: too many arguments to function 'BOOL ISO9660_Mount()'
/opt/devkitpro/libogc/include/iso9660.h:12:6: note: declared here
/home/gabriel/wiimc-read-only/source/fileop.cpp:497:47: error: 'ISO9660_GetVolumeLabel' was not declared in this scope
/home/gabriel/wiimc-read-only/source/fileop.cpp: In function 'int FindPartitions(int)':
/home/gabriel/wiimc-read-only/source/fileop.cpp:553:47: error: 'USBStorage_IsDVD' was not declared in this scope
/home/gabriel/wiimc-read-only/source/fileop.cpp: In function 'void UnmountPartitions(int)':
/home/gabriel/wiimc-read-only/source/fileop.cpp:793:26: error: too many arguments to function 'BOOL ISO9660_Unmount()'
/opt/devkitpro/libogc/include/iso9660.h:13:6: note: declared here
/home/gabriel/wiimc-read-only/source/fileop.cpp: In function 'bool MountDVD(bool)':
/home/gabriel/wiimc-read-only/source/fileop.cpp:993:36: error: too many arguments to function 'BOOL ISO9660_Mount()'
/opt/devkitpro/libogc/include/iso9660.h:12:6: note: declared here
/home/gabriel/wiimc-read-only/source/fileop.cpp: In function 'bool WakeupUSB()':
/home/gabriel/wiimc-read-only/source/fileop.cpp:1040:22: error: 'USBStorage_IsDVD' was not declared in this scope
make[1]: ** [fileop.o] Erro 1
make: ** [build] Erro 2
root@GabrielUbuntuDesktop:/home/gabriel/wiimc-read-only#
Or is this a problem with the code in SVN which has indeed errors, and I should try checking out other revision?
Anticipated thanks
Gabriel
EDIT: I’m managing to get past this and other problems using the instructions found at http://wiitaly.altervista.org/forum/viewtopic.php?f=52&t=133&start=10 : Google Translate helps a lot. I compiled the latest libogc and I’m now fixing the strings.h errors as they appear by putting
#ifndef GEKKO
#include
#endif
Let’s hope it compiles and the finished product works well.
EDIT2: Oh well. I knew things couldn’t be so easy. It seems that again something’s wrong. Perhaps, it’s because I put strings.h includes inside ifndefs?
Make now says this:
http://pastebin.com/RSg1AHxU
