forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

undefined reference to `sctrlKernelLoadExecVSHWithApitype

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Thu May 07, 2009 12:44 pm    Post subject: undefined reference to `sctrlKernelLoadExecVSHWithApitype Reply with quote

i get an error that i cant figure out i have all the include i'll also post libs that are in makefile note that not all libs are used but may / will be soon can anyone help me with this

Code:
main.o: In function `evalSelected()':
main.cpp:(.text+0x23d4): undefined reference to `sctrlKernelLoadExecVSHWithApitype(int, char const*, SceKernelLoadExecVSHParam*)'
collect2: ld returned 1 exit status
make: *** [make.elf] Error 1


Code:
STDLIBS = -lpspctrl -lpspumd -lpsprtc -lpsppower
STDLIBS += -lpspaudio -lpsphprm -lpspgu -lpspgum
STDLIBS += -lpspmpeg -lpsprtc -lpspsdk -lmikmod
STDLIBS += -lpspaudiocodec -lpspatrac3 -lpng
STDLIBS += -lAac -lFLAC -lvorbisidec -lmad
STDLIBS += -lpspusb -lpspusbstor -lpspkubridge -lpspsystemctrl_user
STDLIBS += -lc -lm -lz -lstdc++ -ljpeg

YOURLIBS = -lobjectdraw -losl -lconfig -lconfig++ \
         -lanytype -lunzip
Back to top
View user's profile Send private message MSN Messenger
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Thu May 07, 2009 2:59 pm    Post subject: Reply with quote

-lpspkernel maybe?
Back to top
View user's profile Send private message AIM Address
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Thu May 07, 2009 4:05 pm    Post subject: Reply with quote

#include <systemctrl.h> ?
-lpspsystemctrl_kernel ?
Back to top
View user's profile Send private message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Fri May 08, 2009 12:00 am    Post subject: Reply with quote

nope an here is full makefile its not that include isnt there its just that at the end it doesnt find i'll also post full output this is for another project so source cant be released is there another way to launch an eboot besides this method that will work without m33 libs

makefile
Code:
PSPSDK=$(shell psp-config --pspsdk-path)
PSPBIN = $(PSPSDK)/../bin
MAKE = $(shell make)

TARGET = make

OBJS = main.o \
      events/sys_redraw.o \
      events/callbacks.o \
      Drawing/ScrollingMenu.o

INCDIR =
LIBDIR =

CFLAGS = -G4 -Wall -O2 -G0
CXXFLAGS = $(CFLAGS) -fexceptions -fno-rtti
ASFLAGS = $(CFLAGS) 

LDFLAGS =

INCS = -I/usr/local/pspdev/include \
      -I/usr/local/pspdev/psp/include \
      -I/usr/local/pspdev/psp/sdk/include

CFLAGS := $(INCS)
 
STDLIBS = -lpspctrl -lpspumd -lpsprtc -lpsppower
STDLIBS += -lpspaudio -lpsphprm -lpspgu -lpspgum
STDLIBS += -lpspmpeg -lpsprtc -lpspsdk -lmikmod
STDLIBS += -lpspaudiocodec -lpspatrac3 -lpng
STDLIBS += -lAac -lFLAC -lvorbisidec -lmad
STDLIBS += -lpspusb -lpspusbstor -lpspkubridge -lpspsystemctrl_user
STDLIBS += -lc -lm -lz -lstdc++ -ljpeg

YOURLIBS = -lobjectdraw -losl -lconfig -lconfig++ \
         -lanytype -lunzip
 
LIBS = $(YOURLIBS) $(STDLIBS)

PSP_FW_VERSION = 500
BUILD_PRX = 1

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = pspgrub
PSP_EBOOT_ICON = NULL

#PSP_LOC = /media/KURT\'S\ PSP/PSP/GAME/$(PSP_EBOOT_TITLE)
#PSP_LOC = F:/PSP/GAME/$(PSP_EBOOT_TITLE)

include $(PSPSDK)/lib/build.mak

ifndef PSP_LOC
PSP_LOC = release
endif

install:
    mkdir -p $(PSP_LOC)
    cp -f EBOOT.PBP $(PSP_LOC)
    cp -f menu.cfg $(PSP_LOC)
   



output
Code:

**** Build of configuration Default for project bootloader ****

make clean all
rm -f make.prx make.elf main.o events/sys_redraw.o events/callbacks.o Drawing/ScrollingMenu.o  PARAM.SFO EBOOT.PBP EBOOT.PBP
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -fexceptions -fno-rtti -D_PSP_FW_VERSION=500   -c -o main.o main.cpp
main.cpp: In function ‘void evalSelected()’:
main.cpp:168: warning: deprecated conversion from string constant to ‘char*’
main.cpp:169: warning: deprecated conversion from string constant to ‘char*’
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -fexceptions -fno-rtti -D_PSP_FW_VERSION=500   -c -o events/sys_redraw.o events/sys_redraw.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -fexceptions -fno-rtti -D_PSP_FW_VERSION=500   -c -o events/callbacks.o events/callbacks.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -fexceptions -fno-rtti -D_PSP_FW_VERSION=500   -c -o Drawing/ScrollingMenu.o Drawing/ScrollingMenu.cpp
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/include -I/usr/local/pspdev/psp/include -I/usr/local/pspdev/psp/sdk/include  -D_PSP_FW_VERSION=500  -L. -L/usr/local/pspdev/psp/sdk/lib -specs=/usr/local/pspdev/psp/sdk/lib/prxspecs -Wl,-q,-T/usr/local/pspdev/psp/sdk/lib/linkfile.prx   main.o events/sys_redraw.o events/callbacks.o Drawing/ScrollingMenu.o /usr/local/pspdev/psp/sdk/lib/prxexports.o -lobjectdraw -losl -lconfig -lconfig++ -lanytype -lunzip  -lpspctrl -lpspumd -lpsprtc -lpsppower  -lpspaudio -lpsphprm -lpspgu -lpspgum  -lpspmpeg -lpsprtc -lpspsdk -lmikmod  -lpspaudiocodec -lpspatrac3 -lpng  -lAac -lFLAC -lvorbisidec -lmad  -lpspusb -lpspusbstor -lpspkernel -lpspsystemctrl_kernel -lpspkubridge -lpspsystemctrl_user  -lc -lm -lz -lstdc++ -ljpeg   -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o make.elf
/usr/local/pspdev/lib/gcc/psp/4.3.2/../../../../psp/lib/libc.a(lib_a-strtoul.o): In function `strtoul':
../../../../../newlib/libc/stdlib/strtoul.c:202: multiple definition of `strtoul'
/usr/local/pspdev/psp/sdk/lib/libpspkernel.a(SysclibForKernel_0013.o):SysclibForKernel.S:(.sceStub.text+0x0): first defined here
main.o: In function `evalSelected()':
main.cpp:(.text+0x23d4): undefined reference to `sctrlKernelLoadExecVSHWithApitype(int, char const*, SceKernelLoadExecVSHParam*)'
collect2: ld returned 1 exit status
make: *** [make.elf] Error 1
Back to top
View user's profile Send private message MSN Messenger
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Fri May 08, 2009 3:27 am    Post subject: Reply with quote

The fact that it has type info means it is not externed propery as a C export and so it can't find the mangled name in the libraries
Back to top
View user's profile Send private message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Fri May 08, 2009 5:44 am    Post subject: Reply with quote

so with that said how do i fix it because doing this through a prx worked but makes the app a little bloated wanted to have in one eboot
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group