You must have grabbed the code before I edited it:
Code: Select all
sceKernelDelayThreadCB(100000);
There should be no real reason to use the CB (call back) variant as this does not register/need a call back, though it seems to work similar even without one to be proper it would be best to just use sceKernelDelayThread.
The template makefile for a kernel prx can be found at psp/sdk/samples/template/kprx_template in your sdk installation - provided you are using an up to date toolchain, that sample dir has a tonne of nifty things people here have contributed (not to mention all the other projects in the PSP repo on ps2dev svn.)
The actual makefile I used back when I initially tried this is
Code: Select all
TARGET = poweroff
OBJS = main.o
BUILD_PRX = 1
INCDIR =
CFLAGS = -O2 -G0 -Wall -fno-builtin-printf -fshort-wchar -fno-pic -mno-check-zero-division
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
LIBS = -lpsppower
USE_KERNEL_LIBC = 1
USE_KERNEL_LIBS = 1
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build_prx.mak
As you can see I was messing about with CFLAGS which was why I suggested starting with the template.
Where the hell did you learn all that stuff, cory1492? I just can't find anything on internet...
Lurk around here for a few years, read some c/cpp manuals and you'd be surprised what you pick up (doesn't hurt that the topics and search here are pretty broad and cover most everything PSP programming related.) Indexing the sdk source is also a great asset for info, and digging up the PSP programming tutorial site is also a good place to start. Still, there are many aspects of the PSP and it's OS I have absolutely no way to relate to and no explanation/starting point to work with - perhaps ignorance is bliss?
As to your error image, it is trying to build an eboot from the looks of it - possibly because you didn't specify the firmware version but more likely because you specified an eboot title.