AyAn4m1
Joined: 26 Sep 2005 Posts: 15
|
Posted: Wed Nov 23, 2005 2:07 pm Post subject: PRX - Bug with including files? |
|
|
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: | 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? |
|