Discuss the development of new homebrew software, tools and libraries.
Moderators: cheriff , TyRaNiD
coolkehon
Posts: 355 Joined: Mon Oct 20, 2008 5:44 am
Post
by coolkehon » Thu May 07, 2009 12:44 pm
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: Select all
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: Select all
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
Wally
Posts: 663 Joined: Mon Sep 26, 2005 11:25 am
Post
by Wally » Thu May 07, 2009 2:59 pm
-lpspkernel maybe?
Torch
Posts: 825 Joined: Wed May 28, 2008 2:50 am
Post
by Torch » Thu May 07, 2009 4:05 pm
#include <systemctrl.h> ?
-lpspsystemctrl_kernel ?
coolkehon
Posts: 355 Joined: Mon Oct 20, 2008 5:44 am
Post
by coolkehon » Fri May 08, 2009 12:00 am
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: Select all
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: Select all
**** 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
[/b]
TyRaNiD
Posts: 907 Joined: Sun Jan 18, 2004 12:23 am
Post
by TyRaNiD » Fri May 08, 2009 3:27 am
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
coolkehon
Posts: 355 Joined: Mon Oct 20, 2008 5:44 am
Post
by coolkehon » Fri May 08, 2009 5:44 am
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