Page 1 of 1

Error compiling

Posted: Sat Feb 19, 2011 1:24 pm
by thor1981
Hello,
This is mi first post on the web and is about compiling "hello world" for examples wii. Having followed the tutorial http://devkitpro.org/wiki/Getting_Started/devkitPPC, when I run make in the terminal, get the following error:

Code: Select all

alberto@alberto-desktop:~$ cd /opt/devkitpro/examples/wii/template
alberto@alberto-desktop:/opt/devkitpro/examples/wii/template$ make
template.c
/opt/devkitpro/devkitPPC/bin/powerpc-eabi-gcc: 4: Syntax error: "(" unexpected
make[1]: *** [template.o] Error 2
make: *** [build] Error 2
alberto@alberto-desktop:/opt/devkitpro/examples/wii/template$ 
Please I need help. :(

Re: Error compiling

Posted: Sun Feb 20, 2011 8:56 am
by nitrox
Make expects a makefile, not a c source file. Look for a file named "makefile" (with or without extension) and run
make again.

Re: Error compiling

Posted: Tue Feb 22, 2011 10:46 pm
by thor1981
I don't understand you. The source code is organizated well.

template-
+ makefile
+ source-----template.c

I hope to help soon. Thank you.

Re: Error compiling

Posted: Wed Feb 23, 2011 12:37 am
by WinterMute
You're trying to run the 64bit binaries on a 32bit system. Delete your devkitPPC folder, download the i686 archive & extract that into your devkitpro folder.

Re: Error compiling

Posted: Wed Feb 23, 2011 8:39 am
by thor1981
Ok, thanks. My OS is 32 bits, so I'll try as you say.

Re: Error compiling

Posted: Thu Feb 24, 2011 10:11 pm
by thor1981
Perfect!! The error was to use 64-bit version, but now comes another message.

Code: Select all

alberto@alberto-P4VM800:~/Escritorio/prueba$ make
main.c

In file included from /home/alberto/Escritorio/prueba/source/main.c:1:0:
/opt/devkitpro/libogc/include/multiusos.h:12:20: fatal error: ogcsys.h: No such file or directory
compilation terminated.
make[1]: *** [main.o] Error 1
make: *** [build] Error 2

Re: Error compiling

Posted: Fri Feb 25, 2011 11:34 am
by WinterMute
I don't know what multiusos.h is or why it's in the libogc folder but it's not something provided by us. The basic problem is that you don't have libogc installed though - the links to the latest libraries are always at http://devkitpro.org/wiki/Getting_Started/devkitPPC

Sadly the producers of third party libraries for the Wii insist on instructing users to install them in inappropriate places despite being warned not to.