Diferencia entre revisiones de «Desarrollo para la XBox con Mac»

Contenido eliminado Contenido añadido
Sin resumen de edición
Mas traduccion
Línea 25:
Esto instalara, configurara e instalara los compiladores cruzados [[Gnu Compiler Collection | gcc]] y las herramientas en tu sistema. Nota: este paso tomara un tiempo.
 
===CompileErrores Errorsde compilacion===
 
A la hora de escribir este texto, hay un errore de compilacion cuando el instalador ejecuta 'make' para el paquete 'binutils'. El error exacto es mostrado debajo:
As of this writing, there is a compile error when the installer executes make for the binutils package. The exact error is listed below:
 
$.../work/binutils-2.15.91-20040904-1/gas/config/tc-i386.h:457:
error: array type has incomplete element type
 
ToPara getevitar aroundeste this problemproblema, changecambia theel compilercompilador toa gcc-3.3 whencuando se preparingprepare thea buildcontruir.
 
$ sudo gcc_select 3.3
 
Entonces, una vez que el paquete 'binutils' ha compilado satisfactoriamente, para la instalacion (Ctrl + C) (el instalador fallaria en cualquier caso) y cambia el compilador otra vez a gcc-4.0. Entonces la instalacion deberia completarse satisfactoriamente.
Then, once the binutils package has compiled successfully, halt the install (Ctrl+C) (the install will fail anyway) and change the compiler back to gcc-4.0. Then the install should complete successfully.
 
===TestingProbando===
 
Este es un paso opcional. Yo he probado que la configuracion funcionaba escribiendo un programa [[Hola Mundo]] y ejecutandolo en mi maquina Windows. El contenido de 'hola.c' es mostrado debajo:
This is an option step. I just tested that the setup worked, by writing a Hello World! program, and running it on my Windows box. The contents of hello.c are shown below:
 
#include <stdio.h>
Línea 46:
int main(int argc, char **argv)
{
printf ("HelloHola\n");
return 0;
}
 
ThenPara to compilecompilar, it'ses justcomo likeel normal gcc/++:
 
$ i386-mingw32-gcc -o hellohola.exe hellohola.c
 
ThisEsto producesproduce aun windows executablearchivo hellohola.exe thatejecuble canpara beWindows runque nativelypuede incorrer nativamente en [[microsoft windows|Windows]]. NoteNota thatque thisesto onlysolo testsprueba thela configuracion del [[crosscompilador compilercruzado]] setup, andy notno [[openXDK|OpenXDK]].
 
==OpenXDK==
 
[[openXDK|OpenXDK]] ises a freeun kit forlibre developingpara applicationsdesarrollar thataplicacion willque runcorreran onen thela [[Xbox]]. ItContiene containsun areemplazo completecompleto de [[libc]] replacement, usesusa [[Simple_Directmedia_Layer|SDL]] forpara multimedia (soundsonido andy networkingred areno notestan currentlyactualmente supportedsoportados) andy compilescompila withcon gcc.
 
YouPuedes candescargar downloadla the latestultima version fromdesde [[SourceForge]]. MakeEstate sureseguro tode downloaddescargar theel binaryarchivo filebinario OpenXDK_#_bin.zip (wheredonde # ises thela version). NoteNota: althougha itpesar saysde it'sque fordice theque i386es platformpara la plataforma i386, thatseste es ournuestro targetsistema systemobjetivo, andy [[openxdk|OpenXDK]] will NOTNO compilecompilara (evenincluso withcon i386-mingw32-gcc) onen theel Mac.
 
===Cxbe===