You are not logged in.
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
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
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
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
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
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
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
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
anakin wrote:
Where can i found make ? It was not include in devkitpro ?
Make is in: C:\devkitPro\msys\bin
Offline
Normally the system variable "PATH" is suppose to have this path in it.
In a command prompt type:
echo %PATH%
And check if the path to make.exe appears.
Offline
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
Did you reboot your PC after the installation?
Offline
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
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
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
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
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
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 <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
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
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
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
So now does libgrrlib.a exists in c:\devkitpro\libogc\lib\wii ?
Offline
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
You can't just copy the .a file, you need the header files to be in C:\devkitPro\libogc\include
Offline
what is the header files ? the .h files ?
thanks
Offline