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 

whatz wrong!!

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



Joined: 26 Oct 2008
Posts: 6

PostPosted: Sun Oct 26, 2008 2:15 am    Post subject: whatz wrong!! Reply with quote

so i redid my pc coz itz vid driver got corrupted so i reinstalled the osilb pspdev kit and tried to compile my soucre didnt work thought it was a problem with my code so i decide to compile a simple hello world code by psdonkey but it still wouldnt compile a simple hello world source it gave me this...
Quote:
//OSlib header file
#include <oslib/oslib.h>

//callbacks
PSP_MODULE_INFO("OSLib Sample", 0, 1, 1);
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);

int main()
{
//Initialization of the Oslib library
oslInit(0);

//Initialization of the graphics mode
oslInitGfx(OSL_PF_8888, 0);

//Initialization of the text console
oslInitConsole();

//Print on the screen this text
oslPrintf("Hello World");

//Wait for a button to be pressed
oslWaitKey();

//terminate the program
oslEndGfx();
oslQuit();
return 0;
}


Back to top
View user's profile Send private message
Onii



Joined: 05 Oct 2008
Posts: 40

PostPosted: Sun Oct 26, 2008 2:36 am    Post subject: Reply with quote

This is not psp related. This is BASIC programming. Your compiler can't find your include file.

The very first error says that it can't find oslib.h.
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Sun Oct 26, 2008 3:17 am    Post subject: Reply with quote

You did not install Oslib.
Make sure you include a blank line at the end too
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
b-k24



Joined: 26 Oct 2008
Posts: 6

PostPosted: Sun Oct 26, 2008 4:45 am    Post subject: Reply with quote

i did install the oslib to the specified dir...this isnt the first time i installed it on my pc..i also tried uninstalling and reinstalling but it still fails to find the library



what do i need to do? jus copy the oslib.h/OSlib.lib into the C:\pspdev\psp\sdk\include dir
Back to top
View user's profile Send private message
Onii



Joined: 05 Oct 2008
Posts: 40

PostPosted: Sun Oct 26, 2008 11:09 am    Post subject: Reply with quote

Add the include paths for osl to your makefile.

EDIT: While we're at it you will need to add the osl library to your makefile too if it's not already there.
Back to top
View user's profile Send private message
Dariusc123456



Joined: 12 Aug 2008
Posts: 394

PostPosted: Sun Oct 26, 2008 12:48 pm    Post subject: Reply with quote

Onii wrote:
Add the include paths for osl to your makefile.

EDIT: While we're at it you will need to add the osl library to your makefile too if it's not already there.


When its installed, it dont need to be on the makefile, unless you dont have it in the include folder. Then you do what you need todo.
Back to top
View user's profile Send private message AIM Address
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