8002013C

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Dariusc123456
Posts: 388
Joined: Tue Aug 12, 2008 12:46 am

8002013C

Post by Dariusc123456 »

I receive an error code that means Library Not Found. Can someone help me fix this?

makefile

Code: Select all

TARGET = test
OBJS = main.o pshimg_user.o

INCDIR = 
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS) -c

LIBDIR =
LDFLAGS = 
LIBS = -lpsppower -lpspkubridge -lpspctrl -lpspkernel
PSP_FW_VERSION = 500

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Playstation Image test

BUILD_PRX = 1

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak

main.c

Code: Select all

#include <pspsdk.h>
#include <pspkernel.h>
#include <stdio.h>
#include "pshn-img.h"
#include <pspctrl.h>
#include "kubridge.h"
PSP_MODULE_INFO&#40;"pshimg-test", 0, 1, 1&#41;;
#define printf pspDebugScreenPrintf

int LoadStartModule&#40;char *module, int partition&#41;
&#123;
	SceUID mod = kuKernelLoadModule&#40;module, 0, NULL&#41;;

	if &#40;mod < 0&#41;
		return mod;

	return sceKernelStartModule&#40;mod, 0, NULL, NULL, NULL&#41;;
&#125;

int onPress&#40;int flag&#41;&#123;
while&#40;1&#41;
    &#123;
        SceCtrlData pad;

        sceCtrlReadBufferPositive&#40;&pad, 1&#41;;
        if&#40;pad.Buttons & flag&#41;
        &#123;
            break;
        &#125;
       &#125;
 return 1;
&#125;
int main&#40;int argc, char argv&#91;&#93;&#41;
&#123;
	pspDebugScreenInit&#40;&#41;;
	SceUID mod = LoadStartModule&#40;"pshimg.prx", 0&#41;;
	if&#40;mod < 0&#41;&#123;
		printf&#40;"Error&#58; Couldnt Start PRX pshimg.prx &#40;0x%08x&#41;\n", mod&#41;;
		sceKernelExitGame&#40;&#41;;
	&#125;
	printf&#40;"Now testing TEST.PSHIMG\n"&#41;;
	SceUID fd = sceIoOpen&#40;"test.pshimg", PSP_O_RDONLY, 777&#41;;
	if&#40;pshnInit&#40;fd, 0&#41; == 1&#41;&#123;
		printf&#40;"TEST.PSHIMG is now verify as a image file\n\n"&#41;;
		printf&#40;"Version&#58; 0x%08x\n", header.version&#41;;
		printf&#40;"Image Title&#58; %s\n\n", header.title&#41;;
		printf&#40;"Now Reading Files blocks\n"&#41;;
		pshnLoadSection&#40;fd&#41;;
		printf&#40;"Reading Complete\n"&#41;;
		printf&#40;"Filename\tSize\n"&#41;;
		int i, j;
		for&#40;i = 0;i<10;i++&#41;&#123;
			for&#40;j=0;j<10;j++&#41;&#123;
				printf&#40;"%s\t%d\n", section&#91;i&#93;.filename&#91;j&#93;, section&#91;i&#93;.size&#91;j&#93;&#41;;
				if&#40;section&#91;i&#93;.size&#91;j&#93; == 0&#41;&#123;
					break;
				&#125;
			&#125;
		&#125;
	&#125;
		printf&#40;"Press X to exit\n"&#41;;
		onPress&#40;PSP_CTRL_CROSS&#41;;
		sceKernelExitGame&#40;&#41;;
	return 0;
&#125;
PSHN - Playstation Hacking Network
PSX/PS1 - HACK - Game Shark
PS2 - HACK - Swap
PSP - HACK - Pandora
PS3 - ?
Post Reply