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 

*** No rule to make target `graphics.o'

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



Joined: 24 Sep 2007
Posts: 15
Location: Planet Earth

PostPosted: Wed Oct 03, 2007 11:33 am    Post subject: *** No rule to make target `graphics.o' Reply with quote

Im getting that error :
make: *** No rule to make target `graphics.o', needed by `hello.elf'

every time i try to incorporate graphics.h into my app.

Any ideas?

*Edit*

This is my Makefile
Code:

TARGET = hello
OBJS = main.o graphics.o framebuffer.o

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

LIBDIR =
LIBS = -lpspgu -lpng -lz -lm
LDFLAGS =

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Dump

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


Thanks...
AntiBNI
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Wed Oct 03, 2007 1:10 pm    Post subject: Reply with quote

Whereabouts is graphics.h hidden?

I got a feeling you havent linked them properly.

Try to keep them in the same directory unless you know what you are doing :P
Back to top
View user's profile Send private message AIM Address
FreePlay



Joined: 04 Jan 2006
Posts: 71
Location: Schenectady, New York, USA

PostPosted: Wed Oct 03, 2007 1:37 pm    Post subject: Reply with quote

Do you have graphics.c and framebuffer.c in there?

It's trying to build the object files. The error you get implies that you don't actually have the code for them anywhere.
Back to top
View user's profile Send private message
AntiBNI



Joined: 24 Sep 2007
Posts: 15
Location: Planet Earth

PostPosted: Wed Oct 03, 2007 8:34 pm    Post subject: Reply with quote

where should they be in?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Oct 03, 2007 9:28 pm    Post subject: Reply with quote

Given your makefile, the same directory main.c is in.
Back to top
View user's profile Send private message AIM Address
AntiBNI



Joined: 24 Sep 2007
Posts: 15
Location: Planet Earth

PostPosted: Wed Oct 03, 2007 10:06 pm    Post subject: Reply with quote

oh,lol xD

Il try it when i get home cuz im at the University right now.

Thnaks for the answer.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
AntiBNI



Joined: 24 Sep 2007
Posts: 15
Location: Planet Earth

PostPosted: Thu Oct 04, 2007 7:53 am    Post subject: Reply with quote

I have placed graphics.h and graphics.c in the same directory of my app and now i get an error like if i wouldn't been calling the graphics lib o.0

like
undefined reference to 'initGraphics()' and stuff

Im just experimenting with PNGs with PSP tho,il work on a brew after i finish with this error >_<

heres my code and here is my make file.

Code:
Code:


//PSP Header Files
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspctrl.h>
#include <pspdisplay.h>
#include <pspgu.h>
#include <png.h>
#include <stdio.h>
#include "graphics.h"
//This is the programs (Prog Name,major ver,minor ver)
PSP_MODULE_INFO ("Dump",0,1,1);

//Define Print as pspDebugScreenPrintf
#define printf pspDebugScreenPrintf

//Code Body
SceCtrlData pad;
int main()
{


          char buffer[200];
          Image* ourImage;


   pspDebugScreenInit();
          initGraphics();
      sprintf(buffer, "ourImage.png");
          ourImage = loadImage(buffer);

         blitAlphaImageToScreen(0 ,0 ,480 , 272, ourImage, 0, 0);
         flipScreen();
sceCtrlReadBufferPositive(&pad, 1);
         while (1)
         {
            if(pad.Buttons & PSP_CTRL_SQUARE)
            {
               sceKernelExitGame();
            }
         }



//end if


//Pause untill user press "Home"
sceKernelSleepThread();

return 0;

}
// end of code



Makefile:
Code:
TARGET = hello
OBJS = main.o graphics.o framebuffer.o

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

LIBDIR =
LIBS = -lpspgu -lpng -lz -lm
LDFLAGS =

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Image Example

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


I don't know whats with the error...

Thanks.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
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