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 

PRX - Bug with including files?

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



Joined: 26 Sep 2005
Posts: 15

PostPosted: Wed Nov 23, 2005 2:07 pm    Post subject: PRX - Bug with including files? Reply with quote

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?
Back to top
View user's profile Send private message
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