You are not logged in.

#1 2009-12-10 18:12:21

anakin
Member

Help for include grrlib in devkitpro template

Hi,

I want to program wii homebrew with grrlib.

I use the devkitpro template.

I make my dol with programmer's notepad.

I have make my dol with no problem.

I want to use the GRRLIB in my project.

I have copy the libgrrlib.a in with the other .a files.

I have copy the GRRLIB forlder (who contain an other grrlib folder) to my source folder.

i have just add : #include "grrlib/grrlib.h" in my project (template.c) under the other include.

I have a error message. (GRRLIB__lib.h : No such file or directory, GRRLIB__inline.h ...)
if i change to #include "grrlib.h" it says grrlib.h : No such file or directory

I think i have copy the .h file of grrlib in the wrong folder (source).

I can't find a tutorial to configure devkitpro, makefile and programmer's notepad

there is something to configure in programmer's notepad ?
where can i copy the files ?

If I want to just compile the template GRRIB exemple (not the devitpro TEMPLATE) i have an error with powerpc-eabi/lib/ctmain.o  (undefined reference to main)



thanks

Last edited by anakin (2009-12-10 18:24:20)

Offline

 

#2 2009-12-10 18:23:38

Crayon
Bad Mother Fucker

Re: Help for include grrlib in devkitpro template

1) Download  GRRLIB 4.1.1 (if it's not done): http://code.google.com/p/grrlib/downloads/list
2) Unzip the archive
3) RTFM => Open README.html and read it

Offline

 

#3 2009-12-10 18:37:42

anakin
Member

Re: Help for include grrlib in devkitpro template

I have read the readme.

I have do all right I thing.

I have launch the install.bat
I have add -lgrrlib to my Makefile
I don't add the GRRLIB folder to my project (because it is installed as system library)
I add #include <grrlib.h> to my template.c

I compile

I have an error on GRRBLIB_Init
undefined reference to psguMtxIdentity, guOrtho...

thanks

Offline

 

#4 2009-12-10 18:41:40

Crayon
Bad Mother Fucker

Re: Help for include grrlib in devkitpro template

I don't think psguMtxIdentity is used in GRRLIB. It must be a problem with your code.

EDIT:
It might be a typo in your last post, if that's the case, you meant guMtxIdentity

Last edited by Crayon (2009-12-10 18:59:01)

Offline

 

#5 2009-12-10 18:58:20

Crayon
Bad Mother Fucker

Re: Help for include grrlib in devkitpro template

Are you using the latest version of libogc? It's suppose to be at 1.8.1.

DevkitPro could be downloaded for Windows at http://sourceforge.net/projects/devkitp … Installer/

Offline

 

#6 2009-12-10 19:17:26

anakin
Member

Re: Help for include grrlib in devkitpro template

i have install devkitpro today. Does it have the latest version of libogc ?
I install via donwload. it is libogc 1.8.1

thx

Last edited by anakin (2009-12-10 19:19:54)

Offline

 

#7 2009-12-10 19:21:57

Crayon
Bad Mother Fucker

Re: Help for include grrlib in devkitpro template

anakin wrote:

i have install devkitpro today. Does it have the latest version of libogc ?

Yes, but it depends where you download it from.

Could you paste your code here, so I could look at it.

Use the code tag, see http://grrlib.santo.fr/forum/help.php

Offline

 

#8 2009-12-10 19:28:51

anakin
Member

Re: Help for include grrlib in devkitpro template

New problem :
I just go home and i want to test on my personnal computer.

I install devkitpro (http://www.devkitpro.org/downloads/). No problem. I run install.bat of GRRLIB but on this computer it doesn't know the "make" command.
It is windows 7 but it is win7 too on the PC i have tried this evening.
Where can i found make ? It was not include in devkitpro ?

But i can compile with the programmer's notepad (the make is good)


An idea ?

thx

Last edited by anakin (2009-12-10 19:30:07)

Offline

 

#9 2009-12-10 19:32:44

Crayon
Bad Mother Fucker

Re: Help for include grrlib in devkitpro template

anakin wrote:

Where can i found make ? It was not include in devkitpro ?

Make is in: C:\devkitPro\msys\bin

Offline

 

#10 2009-12-10 19:39:37

Crayon
Bad Mother Fucker

Re: Help for include grrlib in devkitpro template

Normally the system variable "PATH" is suppose to have this path in it.

In a command prompt type:

Code:

echo %PATH%

And check if the path to make.exe appears.

Offline

 

#11 2009-12-10 19:44:17

anakin
Member

Re: Help for include grrlib in devkitpro template

Crayon wrote:

Normally the system variable "PATH" is suppose to have this path in it.

In a command prompt type:

Code:

echo %PATH%

And check if the path to make.exe appears.

C:\GRRLIB\GRRLIB\lib\jpeg>echo %PATH%
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Wind
owsPowerShell\v1.0\

Offline

 

#12 2009-12-10 19:45:52

Crayon
Bad Mother Fucker

Re: Help for include grrlib in devkitpro template

Did you reboot your PC after the installation?

Offline

 

#13 2009-12-10 19:53:46

Crayon
Bad Mother Fucker

Re: Help for include grrlib in devkitpro template

If it's still not there, than add it manually. Check this Web site: http://www.itechtalk.com/thread3595.html

PS: I'm not responsible for the damages you may cause to your computer.

Offline

 

#14 2009-12-10 20:13:21

anakin
Member

Re: Help for include grrlib in devkitpro template

it's good,

i have copy the make.exe and the dll in c:\windows.

I have launch a cmd.exe command in administrator mode and i have launch the install.bat of grrlib.

Installation complete

I go to the test of the template unless grrlib and with grrlib.

Offline

 

#15 2009-12-10 20:42:27

anakin
Member

Re: Help for include grrlib in devkitpro template

I have add -lgrrlib in the makefile of the Template which in the exemples of devkitpro.

I compile : no problem

I add #include <grrlib.h> in the includes of the template.c like it is written in the readme of grrlib.

I compile : 'grrlib.h" no such file or directory...

thx

Last edited by anakin (2009-12-10 20:43:29)

Offline

 

#16 2009-12-10 20:45:12

anakin
Member

Re: Help for include grrlib in devkitpro template

sorry i have a pb with -lggrib... it seems

i have an error.

i must copy a grrlib file with .a extension in devkitpro no  ?

thx

Offline

 

#17 2009-12-10 20:47:38

anakin
Member

Re: Help for include grrlib in devkitpro template

i have my makefile

LIBS    :=    -lwiiuse -lbte -logc -lm -lgrrlib

error "can not find -lgrrlib"

i must copy the folder of grrlib (which contains an other folder grrlib) in the libogc of devkitpro ?

thx

Last edited by anakin (2009-12-10 20:48:48)

Offline

 

#18 2009-12-10 20:56:19

Crayon
Bad Mother Fucker

Re: Help for include grrlib in devkitpro template

anakin wrote:

i have my makefile

LIBS    :=    -lwiiuse -lbte -logc -lm -lgrrlib

First of all, you need more stuff. Try using this, the order in witch the libs appears is important:
LIBS    :=      -lgrrlib -lpngu -lpng -ljpeg -lz -lfat -lwiiuse -lbte -logc -lm

You know, there is a folder called examples in the main folder of GRRLIB.

EDIT:
This from README.html, the file you have read:

README.html wrote:

After everything is installed, simply put
    #include &lt;grrlib.h>     <!-- #include <grrlib.h> -->
at the top of your .c file and use the functions as required

You will also need to add
    -lgrrlib -lfat -ljpeg -lpngu -lpng -lz
to the libs line in your makefile
...Remember the order of the libraries is critical.  You may (need to) insert
other libraries in the middle of the list, you may need to add others to the
start, or even the end - but do _not_ change the order of the libraries shown
here.

Last edited by Crayon (2009-12-10 20:59:48)

Offline

 

#19 2009-12-10 21:08:30

anakin
Member

Re: Help for include grrlib in devkitpro template

first :

thanks for all Crayon

I had like you say :   -lgrrlib -lfat -ljpeg -lpngu -lpng -lz

so it done :

LIBS    :=    -lwiiuse -lbte -logc -lm -lgrrlib -lfat -ljpeg -lpngu -lpng -lz

error "cannot find -lgrrlib"

and //#include <grrlib.h> is in commentary... in the template.c

I must copy grrlib folder with the .h file in libogc ?

and in the devkitpro\libogc\lib\wii i have not a libgrrlib.a file. It is normal ?

thanks a lot

Last edited by anakin (2009-12-10 21:09:19)

Offline

 

#20 2009-12-10 21:14:13

Crayon
Bad Mother Fucker

Re: Help for include grrlib in devkitpro template

anakin wrote:

and in the devkitpro\libogc\lib\wii i have not a libgrrlib.a file. It is normal ?

NO, the installation failed.

When you do what's in the README.html:

README.html wrote:

install libgrrlib:
  c:
  cd \grr\trunk\GRRLIB\GRRLIB
  make clean all install

What is the output?

Offline

 

#21 2009-12-10 21:25:30

anakin
Member

Re: Help for include grrlib in devkitpro template

IB/GRRLIB/GRRLIB -I/c/devkitPro/libogc/include -c GRRLIB_fileIO.c -o GRRLIB_file
IO.o
powerpc-eabi-gcc -O2 -Wall -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float -I/c/GRRL
IB/GRRLIB/GRRLIB -I/c/devkitPro/libogc/include -c GRRLIB_print.c -o GRRLIB_print
.o
powerpc-eabi-gcc -O2 -Wall -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float -I/c/GRRL
IB/GRRLIB/GRRLIB -I/c/devkitPro/libogc/include -c GRRLIB_render.c -o GRRLIB_rend
er.o
powerpc-eabi-gcc -O2 -Wall -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float -I/c/GRRL
IB/GRRLIB/GRRLIB -I/c/devkitPro/libogc/include -c GRRLIB_snapshot.c -o GRRLIB_sn
apshot.o
powerpc-eabi-gcc -O2 -Wall -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float -I/c/GRRL
IB/GRRLIB/GRRLIB -I/c/devkitPro/libogc/include -c GRRLIB_texEdit.c -o GRRLIB_tex
Edit.o
powerpc-eabi-ar -r libgrrlib.a GRRLIB_bmf.o GRRLIB_bmfx.o GRRLIB_core.o GRRLIB_f
bAdvanced.o GRRLIB_fileIO.o GRRLIB_print.o GRRLIB_render.o GRRLIB_snapshot.o GRR
LIB_texEdit.o
c:\devkitPro\devkitPPC\bin\powerpc-eabi-ar.exe: creating libgrrlib.a
mkdir -p  /c/devkitPro/libogc/lib/wii  /c/devkitPro/libogc/include  /c/devkitPro
/libogc/include/grrlib
cp -f libgrrlib.a /c/devkitPro/libogc/lib/wii/
cp -f grrlib.h /c/devkitPro/libogc/include/
cp -f grrlib/GRRLIB__inline.h grrlib/GRRLIB__lib.h grrlib/GRRLIB_cExtn.h grrlib/
GRRLIB_clipping.h grrlib/GRRLIB_collision.h grrlib/GRRLIB_fbComplex.h grrlib/GRR
LIB_fbGX.h grrlib/GRRLIB_fbSimple.h grrlib/GRRLIB_handle.h grrlib/GRRLIB_pixel.h
grrlib/GRRLIB_settings.h grrlib/GRRLIB_texSetup.h /c/devkitPro/libogc/include/g
rrlib

C:\GRRLIB\GRRLIB\GRRLIB>

Offline

 

#22 2009-12-10 21:29:43

Crayon
Bad Mother Fucker

Re: Help for include grrlib in devkitpro template

So now does libgrrlib.a exists in c:\devkitpro\libogc\lib\wii ?

Offline

 

#23 2009-12-10 21:37:53

anakin
Member

Re: Help for include grrlib in devkitpro template

In dos administrator mode :

C:\GRRLIB\GRRLIB>cd GRRLIB

C:\GRRLIB\GRRLIB\GRRLIB>copy libgrrlib.a c:\devkitPro\libogc\lib\wii
Remplacer c:\devkitPro\libogc\lib\wii\libgrrlib.a (Oui/Non/Tous) : O
        1 fichier(s) copiť(s).

C:\GRRLIB\GRRLIB\GRRLIB>

Now I compile : no soucy

I change to : #include <grrlib.h> (I delete the commentary)

error : conflicting types for 'xfb'
previous declaration of 'xfb' was here
...

thx

Offline

 

#24 2009-12-10 21:42:16

Crayon
Bad Mother Fucker

Re: Help for include grrlib in devkitpro template

You can't just copy the .a file, you need the header files to be in C:\devkitPro\libogc\include

Offline

 

#25 2009-12-10 21:50:12

anakin
Member

Re: Help for include grrlib in devkitpro template

what is the header files ? the .h files ?

thanks

Offline

 

Board footer

Powered by FluxBB