PRX - Bug with including files?

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

Moderators: cheriff, TyRaNiD

Post Reply
AyAn4m1
Posts: 15
Joined: Mon Sep 26, 2005 2:45 am

PRX - Bug with including files?

Post by AyAn4m1 »

I should preface this post by saying that I have updated my toolchain and have exhausted all conventional troubleshooting methods before writing this. I am having a problem trying to link libpng and include source files in a PRX. The PRX is supposed to call drawing routines defined in render.h and plugin.h, both of which are dependant on libpng. My makefile is as follows:

Code: Select all

TARGET = Core
OBJS = main.o exports.o ../../render.o ../../plugin.o ../../lib/graphics.o ../../lib/framebuffer.o
LIBS = -lpng -lpspgu -lc -lz -lm

USE_PSPSDK_LIBC = 1
INCDIR = 
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build_prx.mak
When I make the code, I get a PRX that is 294kb and will not load. The LoadModule call returns a 0. If I comment out the drawing calls and remove the OBJS and LIBS (OBJS = main.o exports.o) it works fine... Anyone have any ideas as to what is happening?
Post Reply