ok nevermind the above i started over by using kennelbounds tut again and i only have one error now
C:\openxdk\openxdk\samples\Makefile.win [Build Error] [comingSoon.o] Error 1
heres the make file
# Project: Project1
# Makefile created by Dev-C++ 4.9.9.2
CPP = i386-pc-xbox-g++
CC = i386-pc-xbox-gcc
WINDRES = i386-pc-xbox-windres
RES =
OBJ = comingSoon.o $(RES)
LINKOBJ = comingSoon.o $(RES)
LIBS = -L"C:/cygwin/usr/local/openxdk/lib" -L"C:/cygwin/usr/local/openxdk/i386-pc-xbox/lib" -nostdlib -Wl,--file-alignment,0x20 -Wl,--section-alignment,0x20 -shared -Wl,--entry,_WinMainCRTStartup -Wl,--strip-all -lstdc++ -lSDL -lopenxdk -lhal -lc -lhal -lusb -lc -lxboxkrnl -L"C:/cygwin/usr/local/openxdk/lib" -L"C:/cygwin/usr/local/openxdk/i386-pc-xbox/lib" -mwindows -nostdlib -Wl,--file-alignment,0x20 -Wl,--section-alignment,0x20 -shared -Wl,--entry,_WinMainCRTStartup -Wl,--strip-all -lstdc++ -lSDL -lopenxdk -lhal -lc -lhal -lusb -lc -lxboxkrnl
INCS = -I"C:/cygwin/usr/local/openxdk/include" -I"C:/cygwin/usr/local/openxdk/i386-pc-xbox/include" -I"C:/cygwin/usr/local/openxdk/include/include" -I"C:/cygwin/usr/local/openxdk/include/SDL" -I"C:/cygwin/usr/local/openxdk/i386-pc-xbox/include" -I"C:/cygwin/usr/local/openxdk/include"
CXXINCS = -I"C:/cygwin/usr/local/openxdk/i386-pc-xbox/include" -I"C:/cygwin/usr/local/openxdk/include" -I"C:/cygwin/usr/local/openxdk/include/SDL" -I"C:/cygwin/usr/local/openxdk/include/include" -I"C:/cygwin/usr/local/openxdk/i386-pc-xbox/include" -I"C:/cygwin/usr/local/openxdk/include"
BIN = Project1.exe
CXXFLAGS = $(CXXINCS) -c -g -std=gnu99 -ffreestanding -nostdlib -fno-builtin -fno-exceptions -mno-cygwin -march=i386 -DENABLE_XBOX -DDISABLE_CDROM -c -g -std=gnu99 -ffreestanding -nostdlib -fno-builtin -fno-exceptions -mno-cygwin -march=i386 -DENABLE_XBOX -DDISABLE_CDROM
CFLAGS = $(INCS) -c -g -std=gnu99 -ffreestanding -nostdlib -fno-builtin -fno-exceptions -mno-cygwin -march=i386 -DENABLE_XBOX -DDISABLE_CDROM -c -g -std=gnu99 -ffreestanding -nostdlib -fno-builtin -fno-exceptions -mno-cygwin -march=i386 -DENABLE_XBOX -DDISABLE_CDROM
RM = rm -f
.PHONY: all all-before all-after clean clean-custom
all: all-before Project1.exe all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o "Project1.exe" $(LIBS)
comingSoon.o: comingSoon.c
$(CPP) -c comingSoon.c -o comingSoon.o $(CXXFLAGS)
here's the source
extern "C" {
#include "comingSoon.h"
#include <hal/xbox.h>
#include <hal/video.h>
#include <xboxkrnl/xboxkrnl.h>
}
extern "C" void XBoxStartup(){
{
int *frame_buffer = (int*)XVideoGetFB();
// ******************************************************************
// * clear to black
// ******************************************************************
{
for(int c=0;c<640*480;c++)
frame_buffer[c] = 255;
}
// ******************************************************************
// * render coming_soon image, centered
// ******************************************************************
{
for(int y=220, r=0;y<260;y++)
{
for(int x=160;x<480;x++,r++)
{
int v = y*640+x;
frame_buffer[v] = coming_soon[r] | (coming_soon[r] <<
| (coming_soon[r] << 16) | (0xFF << 24);
}
}
}
XSleep(5000);
XReboot();
}
downlab edaward err someone tell me whats wrong??
This post has been edited by ColdReader: Aug 6 2005, 03:09 PM