PSP Hacks - Forums
Go Back   PSP Hacks - Forums > PSP Community > PSP Programming & Development

Notices

Reply
 
Thread Tools Display Modes
  #851  
Old 08-22-2008, 05:15 PM
pirata nervo pirata nervo is online now
Moderator
PSP Titan
 
Join Date: Mar 2007
Location: www.consoleworld.net
Posts: 5,008
pirata nervo is on a distinguished road
Default

huh?
the makefile is something totally different from the source code.
__________________

Upgrade your PSP Slim or FAT now!
NervOS Official Forum
Reply With Quote
  #852  
Old 08-22-2008, 05:53 PM
Dark_Sabre's Avatar
Dark_Sabre Dark_Sabre is offline
Programmer of The Month
PSP Ninja
 
Join Date: Jul 2007
Location: Tauranga, New Zealand
Posts: 720
Dark_Sabre User Has a Beginner Reputation
Default

this would go into a file called "makefile" (without quotes)
Code:
TARGET = Nathan_Test1
OBJS = main.o  

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

LIBDIR =
LDFLAGS =
STDLIBS= -losl -lpng -lz \
  -lpspsdk -lpspctrl -lpspumd -lpsprtc -lpsppower -lpspgu -lpspaudiolib -lpspaudio -lm
LIBS=$(STDLIBS)$(YOURLIBS)

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Nathan_Test1

PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
and this would be your "main.c"
Code:
//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;
}
I don't see why you need oslib, the psp sdk's libraries are fine for that.
__________________

ah... it feels good to have a sig again....

SabrOS Progress: Currently working on GUI
Latest release
Reply With Quote
  #853  
Old 09-18-2008, 03:44 AM
undefeated undefeated is offline
PSP Ninja
 
Join Date: Nov 2007
Location: Brooklyn, NY
Posts: 603
undefeated User Has a Beginner Reputation
Default

Links don't work....
__________________
Upcoming prospect.
"From PSP Hacks!"
www.myspace.com/e_n_j
Reply With Quote
  #854  
Old 09-18-2008, 06:27 PM
thehman thehman is offline
PSP Veteran
 
Join Date: Mar 2007
Posts: 1,077
thehman User Has a Beginner Reputation
Default

Quote:
Originally Posted by undefeated View Post
Links don't work....
Every thread with internal links needs to be updated since the forum change,
__________________

ʕθ̿␣̅θ̿ʔ ℋiЬЬyℬot™
Reply With Quote
  #855  
Old 09-21-2008, 06:22 AM
Blade_punk's Avatar
Blade_punk Blade_punk is offline
Moderator
PSP Monk
 
Join Date: Nov 2006
Location: Candy Mountain
Posts: 2,686
Blade_punk will become famous soon enoughBlade_punk will become famous soon enough
Default

I'll fix the first post when I get a moment
__________________
The PSP Programming and Development Mega Thread
-Rock Station-
PSN: Xsjado7
Quote:
Why don't you try walking on your hands! Then you could use your feet for hi-5's and eating sandwiches. You know, all the important stuff!
Reply With Quote
  #856  
Old 09-21-2008, 08:22 AM
thehman thehman is offline
PSP Veteran
 
Join Date: Mar 2007
Posts: 1,077
thehman User Has a Beginner Reputation
Default

The links in "The PSP Programming and Development Mega Thread" also needs fixing and the link to it in your sig, lol

Most of the threads that it linked to don't seem to exist any more anyway,
__________________

ʕθ̿␣̅θ̿ʔ ℋiЬЬyℬot™
Reply With Quote
  #857  
Old 09-24-2008, 09:51 PM
Blade_punk's Avatar
Blade_punk Blade_punk is offline
Moderator
PSP Monk
 
Join Date: Nov 2006
Location: Candy Mountain
Posts: 2,686
Blade_punk will become famous soon enoughBlade_punk will become famous soon enough
Default

I've updated the first post and now all the links work except for How to create full screen size images together to make large animations. I havent come across the post yet

Time to spend an eternity fixing the Mega Thread links
__________________
The PSP Programming and Development Mega Thread
-Rock Station-
PSN: Xsjado7
Quote:
Why don't you try walking on your hands! Then you could use your feet for hi-5's and eating sandwiches. You know, all the important stuff!
Reply With Quote
  #858  
Old 11-04-2008, 01:59 AM
carlyse_09 carlyse_09 is offline
PSP Newbie
 
Join Date: Nov 2008
Posts: 3
carlyse_09 User Has a Beginner Reputation
Default

Im excited to learn that idea..Im not that good w hen it comes to computer but i really want to learn different tings through it.Its interesting to learn and discover new things using the omputer
__________________
child need

Last edited by carlyse_09; 11-17-2008 at 10:01 PM.
Reply With Quote
  #859  
Old 12-03-2008, 03:35 PM
zanif zanif is offline
PSP Newbie
 
Join Date: Jun 2008
Posts: 14
zanif User Has a Beginner Reputation
Default

i just started learning c++ so im a little confused about adding libraries to the makefile. If i was using the libraries "ctime" and "cstdlib" how would i put that into the makefile?
Reply With Quote
  #860  
Old 12-03-2008, 04:06 PM
pirata nervo pirata nervo is online now
Moderator
PSP Titan
 
Join Date: Mar 2007
Location: www.consoleworld.net
Posts: 5,008
pirata nervo is on a distinguished road
Default

You don't need those in your makefile.
__________________

Upgrade your PSP Slim or FAT now!
NervOS Official Forum
Reply With Quote
Reply

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:41 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©