PDA

View Full Version : [Solved] Some questions about "OpenXDK"



demonixis
March 18th, 2009, 08:10
Hi all, i'm new to this board ^^'

OpenXDK 0.1 was released but I don't find a recent changelog...

So i've installed cygwin with some lib for my personnal use and i've copied the openXDK folder to /usr/local and the binary in /bin/ . For testing that, i've downloaded the sample on sourceforge (Sample 0.07), and when i want compile them i've have an error message (for SDL only, not for simple programm).

so the compile log :

i386-pc-xbox-gcc -c comingSoon.c -c -g -std=gnu99 -ffreestanding -nostdlib -fno-builtin -fno-exceptions -mno-cygwin -march=i386 -DENABLE_XBOX -DDISABLE_CDROM -I/usr/local/openxdk/i386-pc-xbox/include -I/usr/local/openxdk/include -I/usr/local/openxdk/include/SDL
i386-pc-xbox-gcc -o comingSoon.exe comingSoon.o -L/usr/local/openxdk/i386-pc-xbox/lib -L/usr/local/openxdk/lib -lSDL -lopenxdk -lhal -lc -lhal -lusb -lc -lxboxkrnl -nostdlib -Wl,--file-alignment,0x20 -Wl,--section-alignment,0x20 -shared -Wl,--entry,_WinMainCRTStartup -Wl,--strip-all
cxbe -TITLE:'comingSoon.exe' -DUMPINFO:"comingSoon.cxbe" -OUT:"comingSoon.xbe" comingSoon.exe > /dev/null
i386-pc-xbox-gcc -c debugPrint.c -c -g -std=gnu99 -ffreestanding -nostdlib -fno-builtin -fno-exceptions -mno-cygwin -march=i386 -DENABLE_XBOX -DDISABLE_CDROM -I/usr/local/openxdk/i386-pc-xbox/include -I/usr/local/openxdk/include -I/usr/local/openxdk/include/SDL
i386-pc-xbox-gcc -o debugPrint.exe debugPrint.o -L/usr/local/openxdk/i386-pc-xbox/lib -L/usr/local/openxdk/lib -lSDL -lopenxdk -lhal -lc -lhal -lusb -lc -lxboxkrnl -nostdlib -Wl,--file-alignment,0x20 -Wl,--section-alignment,0x20 -shared -Wl,--entry,_WinMainCRTStartup -Wl,--strip-all
cxbe -TITLE:'debugPrint.exe' -DUMPINFO:"debugPrint.cxbe" -OUT:"debugPrint.xbe" debugPrint.exe > /dev/null
i386-pc-xbox-gcc -c reboot.c -c -g -std=gnu99 -ffreestanding -nostdlib -fno-builtin -fno-exceptions -mno-cygwin -march=i386 -DENABLE_XBOX -DDISABLE_CDROM -I/usr/local/openxdk/i386-pc-xbox/include -I/usr/local/openxdk/include -I/usr/local/openxdk/include/SDL
i386-pc-xbox-gcc -o reboot.exe reboot.o -L/usr/local/openxdk/i386-pc-xbox/lib -L/usr/local/openxdk/lib -lSDL -lopenxdk -lhal -lc -lhal -lusb -lc -lxboxkrnl -nostdlib -Wl,--file-alignment,0x20 -Wl,--section-alignment,0x20 -shared -Wl,--entry,_WinMainCRTStartup -Wl,--strip-all
cxbe -TITLE:'reboot.exe' -DUMPINFO:"reboot.cxbe" -OUT:"reboot.xbe" reboot.exe > /dev/null
i386-pc-xbox-gcc -c testNewlib.c -c -g -std=gnu99 -ffreestanding -nostdlib -fno-builtin -fno-exceptions -mno-cygwin -march=i386 -DENABLE_XBOX -DDISABLE_CDROM -I/usr/local/openxdk/i386-pc-xbox/include -I/usr/local/openxdk/include -I/usr/local/openxdk/include/SDL
i386-pc-xbox-gcc -o testNewlib.exe testNewlib.o -L/usr/local/openxdk/i386-pc-xbox/lib -L/usr/local/openxdk/lib -lSDL -lopenxdk -lhal -lc -lhal -lusb -lc -lxboxkrnl -nostdlib -Wl,--file-alignment,0x20 -Wl,--section-alignment,0x20 -shared -Wl,--entry,_WinMainCRTStartup -Wl,--strip-all
cxbe -TITLE:'testNewlib.exe' -DUMPINFO:"testNewlib.cxbe" -OUT:"testNewlib.xbe" testNewlib.exe > /dev/null
i386-pc-xbox-gcc -c fileHal.c -c -g -std=gnu99 -ffreestanding -nostdlib -fno-builtin -fno-exceptions -mno-cygwin -march=i386 -DENABLE_XBOX -DDISABLE_CDROM -I/usr/local/openxdk/i386-pc-xbox/include -I/usr/local/openxdk/include -I/usr/local/openxdk/include/SDL
i386-pc-xbox-gcc -o fileHal.exe fileHal.o -L/usr/local/openxdk/i386-pc-xbox/lib -L/usr/local/openxdk/lib -lSDL -lopenxdk -lhal -lc -lhal -lusb -lc -lxboxkrnl -nostdlib -Wl,--file-alignment,0x20 -Wl,--section-alignment,0x20 -shared -Wl,--entry,_WinMainCRTStartup -Wl,--strip-all
cxbe -TITLE:'fileHal.exe' -DUMPINFO:"fileHal.cxbe" -OUT:"fileHal.xbe" fileHal.exe > /dev/null
i386-pc-xbox-gcc -c fileStdio.c -c -g -std=gnu99 -ffreestanding -nostdlib -fno-builtin -fno-exceptions -mno-cygwin -march=i386 -DENABLE_XBOX -DDISABLE_CDROM -I/usr/local/openxdk/i386-pc-xbox/include -I/usr/local/openxdk/include -I/usr/local/openxdk/include/SDL
i386-pc-xbox-gcc -o fileStdio.exe fileStdio.o -L/usr/local/openxdk/i386-pc-xbox/lib -L/usr/local/openxdk/lib -lSDL -lopenxdk -lhal -lc -lhal -lusb -lc -lxboxkrnl -nostdlib -Wl,--file-alignment,0x20 -Wl,--section-alignment,0x20 -shared -Wl,--entry,_WinMainCRTStartup -Wl,--strip-all
cxbe -TITLE:'fileStdio.exe' -DUMPINFO:"fileStdio.cxbe" -OUT:"fileStdio.xbe" fileStdio.exe > /dev/null
i386-pc-xbox-gcc -c sdlVideo.c -c -g -std=gnu99 -ffreestanding -nostdlib -fno-builtin -fno-exceptions -mno-cygwin -march=i386 -DENABLE_XBOX -DDISABLE_CDROM -I/usr/local/openxdk/i386-pc-xbox/include -I/usr/local/openxdk/include -I/usr/local/openxdk/include/SDL
i386-pc-xbox-gcc -o sdlVideo.exe sdlVideo.o -L/usr/local/openxdk/i386-pc-xbox/lib -L/usr/local/openxdk/lib -lSDL -lopenxdk -lhal -lc -lhal -lusb -lc -lxboxkrnl -nostdlib -Wl,--file-alignment,0x20 -Wl,--section-alignment,0x20 -shared -Wl,--entry,_WinMainCRTStartup -Wl,--strip-all

and the errors :


/usr/local/openxdk/lib/libusb.a(misc.o):misc.c:(.text+0xab): undefined reference to `_IoInputDword'
/usr/local/openxdk/lib/libusb.a(misc.o):misc.c:(.text+0xba): undefined reference to `_IoInputDword'
collect2: ld returned 1 exit status
make: *** [sdlVideo.exe] Error 1

Can someone help me ? or can give me links ?

Thanks.

Edit : My makefile was bad :s it's ok now