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 

Settings for Danzeff OSK

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



Joined: 16 May 2007
Posts: 31

PostPosted: Wed May 16, 2007 11:21 am    Post subject: Settings for Danzeff OSK Reply with quote

Hello everyone! Iīm (a newbie) writing a program which needs taking some info from a virtual keyboard. Iīve read the readme.txt but still have some questions:

Canīt compile the program because of the Makefile. This is what iīm using:

TARGET = savedata
OBJS = main.o danzeff.o

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

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = PSPSDK Savedata Sample

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

I know it isnīt enough. Somebody could explain what do I need to add?

Thanks for everything :)
Back to top
View user's profile Send private message
Fanjita



Joined: 28 Sep 2005
Posts: 217

PostPosted: Wed May 16, 2007 7:08 pm    Post subject: Reply with quote

What errors do you get?
_________________
Got a v2.0-v2.80 firmware PSP? Download the eLoader here to run homebrew on it!
The PSP Homebrew Database needs you!
Back to top
View user's profile Send private message
PeterLeRoi



Joined: 16 May 2007
Posts: 31

PostPosted: Wed May 16, 2007 11:36 pm    Post subject: Reply with quote

Ok, finally reduce all the errors to just one. I want to initialize the keyboard with:

danzeff_load();

But then, when trying to compile, it gives an error:

main: undefined refence to 'danzeff_load'

But with other functions like: int danzeff_dirty() or void danzeff_render() wchich are included in "danzeff.c"; it compiles fine. Some idea how could I resolve the problem?

Edited: Ok, the error was=> void danzeff_load();




Now it compiles, but doesnīt show any keyboard on screen.


The source code should be:

/* */
void danzeff_load();
void danzeff_render();
/* */

Compile, and add "graphics" folder next to the EBOOT, no?

I canīt get it working.
Back to top
View user's profile Send private message
everlasting



Joined: 19 Mar 2007
Posts: 41

PostPosted: Thu May 17, 2007 1:21 pm    Post subject: Reply with quote

You need to setup the graphics. You should look at some samples included in the SDK concerning the GU. Once you have setup the graphics as done in the mentioned samples and you have loaded the images with danzeff_load() it would be enough to do:
while(1){
sceGuStart(GU_DIRECT, list);

danzeff_readInput(pad);
danzeff_render();

sceGuFinish();
sceGuSync(0, 0);

sceDisplayWaitVblankStart();
sceGuSwapBuffers();
}

Hope this help you.
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