Re: GRRLIB Help March 19, 2009 11:07PM | Registered: 15 years ago Posts: 444 |
/GRRLIB.c:15:40: error: ../../lib/libpng/pngu/pngu.h: No such file or directory d:/homebrew/mystuff/pong/source/GRRLIB.c:16:39: error: ../../lib/libjpeg/jpeglib.h: No such file or directoryhow do i locate the file where makefile is in?, main.c is in source the next level up.
Re: GRRLIB Help March 20, 2009 11:15AM | Registered: 15 years ago Posts: 83 |
Re: GRRLIB Help March 20, 2009 02:13PM | Admin Registered: 16 years ago Posts: 5,132 |
Re: GRRLIB Help March 21, 2009 02:08AM | Registered: 15 years ago Posts: 444 |
Re: GRRLIB Help March 21, 2009 04:16AM | Registered: 15 years ago Posts: 83 |
Oh snap, that sucks. Anyway, what do you mean by "call the dir"? And which dir in particular are you trying to "call"?Quote
g_man
i know that, but how do i call the dir, call might be the wrong word, but how do i get there, i wont be able test anything cause my parents took my computer away
Re: GRRLIB Help March 21, 2009 08:52PM | Registered: 15 years ago Posts: 444 |
Re: GRRLIB Help March 21, 2009 08:54PM | Admin Registered: 16 years ago Posts: 5,132 |
Re: GRRLIB Help March 21, 2009 11:09PM | Registered: 15 years ago Posts: 83 |
- Makefile - lib (dir) - libpng.a - source (dir) - gfx (dir) - image.h - GRRLIB (dir) - GRRLIB.c - GRRLIB.h - libpng (dir) - pngu (dir) - pngu.c - pngu.h - png.h - pngconf.h - main.cppThen, in your Makefile, your sources line would look like this:
SOURCES := source source/gfx source/GRRLIB source/libpng source/libpng/pnguIf you need to include a file like pngu.h, you could add the following to the file you want to include it to:
#include "libpng/pngu/pngu.h"That should point to what you need. Hope this helps.
Re: GRRLIB Help March 21, 2009 11:41PM | Registered: 15 years ago Posts: 444 |
Re: GRRLIB Help March 22, 2009 03:41PM | Registered: 15 years ago Posts: 83 |
Quote
g_man
when i originally looded at the #include i it had a /./ , or /../ , i can't remember is that how you do it, i don
t want to mess with my files that much, but i will if i hav to.
Re: GRRLIB Help March 22, 2009 05:20PM | Registered: 15 years ago Posts: 444 |
Re: GRRLIB Help March 22, 2009 05:50PM | Admin Registered: 16 years ago Posts: 5,132 |
Re: GRRLIB Help March 22, 2009 07:58PM | Registered: 15 years ago Posts: 444 |
extern const unsigned char ready[]; extern const int ready_size;
main.c linking ... pong.elf main.o: In function `main': d:/homebrew/mystuff/pong/source/main.c:107: undefined reference to `ready' d:/homebrew/mystuff/pong/source/main.c:107: undefined reference to `ready' GRRLIB.o: In function `GRRLIB_LoadTexturePNG': d:/homebrew/mystuff/pong/source/GRRLIB/GRRLIB.c:138: undefined reference to `PNGU_SelectImageFromBuffer' d:/homebrew/mystuff/pong/source/GRRLIB/GRRLIB.c:139: undefined reference to `PNGU_GetImageProperties' d:/homebrew/mystuff/pong/source/GRRLIB/GRRLIB.c:141: undefined reference to `PNGU_DecodeTo4x4RGBA8' d:/homebrew/mystuff/pong/source/GRRLIB/GRRLIB.c:142: undefined reference to `PNGU_ReleaseImageContext' collect2: ld returned 1 exit status make[1]: *** [/d/homebrew/mystuff/pong/pong.elf] Error 1 "make": *** [build] Error 2
Re: GRRLIB Help March 22, 2009 10:05PM | Registered: 15 years ago Posts: 83 |
#include "gfx/image.h" u8 *tex_image=GRRLIB_LoadTexture(image); GRRLIB_DrawImg(x,y,height,width,tex_image,0,1,1,255);
Re: GRRLIB Help March 22, 2009 10:17PM | Registered: 15 years ago Posts: 444 |
main.c d:/homebrew/mystuff/pong/source/main.c: In function 'main': d:/homebrew/mystuff/pong/source/main.c:106: error: 'ready' undeclared (first use in this function) d:/homebrew/mystuff/pong/source/main.c:106: error: (Each undeclared identifier is reported only once d:/homebrew/mystuff/pong/source/main.c:106: error: for each function it appears in.) d:/homebrew/mystuff/pong/source/main.c:106: error: incompatible types in initialization d:/homebrew/mystuff/pong/source/main.c:108: error: incompatible type for argument 3 of 'GRRLIB_DrawImg' d:/homebrew/mystuff/pong/source/main.c:108: error: incompatible type for argument 5 of 'GRRLIB_DrawImg' d:/homebrew/mystuff/pong/source/main.c:108: error: too many arguments to function 'GRRLIB_DrawImg' make[1]: *** [main.o] Error 1 "make": *** [build] Error 2
extern const unsigned char ready[]; extern const int ready_size;EDIT:
extern const unsigned char ready[]; extern const int ready_size;
main.c d:/homebrew/mystuff/pong/source/main.c: In function 'main': d:/homebrew/mystuff/pong/source/main.c:109: error: incompatible types in initialization d:/homebrew/mystuff/pong/source/main.c:111: error: incompatible type for argument 3 of 'GRRLIB_DrawImg' d:/homebrew/mystuff/pong/source/main.c:111: error: incompatible type for argument 5 of 'GRRLIB_DrawImg' d:/homebrew/mystuff/pong/source/main.c:111: error: too many arguments to function 'GRRLIB_DrawImg' make[1]: *** [main.o] Error 1 "make": *** [build] Error 2looks as though i'm using the wrong data type in the line you gave me here
u8 *tex_image=GRRLIB_LoadTexture(image); GRRLIB_DrawImg(x,y,height,width,tex_image,0,1,1,255);
Re: GRRLIB Help March 22, 2009 10:21PM | Registered: 15 years ago Posts: 83 |
GRRLIB_DrawImg(x,y,height,width,tex_image,0,1,1,255);You should be putting the actual x,y,height,width values in. Example, instead of the above, it should be something like:
GRRLIB_DrawImg(0,0,640,480,tex_image,0,1,1,255);
Re: GRRLIB Help March 22, 2009 10:29PM | Registered: 15 years ago Posts: 444 |
Re: GRRLIB Help March 23, 2009 12:00AM | Registered: 15 years ago Posts: 83 |
Re: GRRLIB Help March 23, 2009 12:49AM | Registered: 15 years ago Posts: 444 |
u8 *tex_ready=GRRLIB_LoadTexture(ready);error:
d:/homebrew/mystuff/pong/source/main.c:134: error: incompatible types in initialization
Re: GRRLIB Help March 23, 2009 01:05AM | Registered: 15 years ago Posts: 83 |