You are not logged in.
When I trying to compile any Sourcecode with GRRLIb then I get this error:
> "make"
linking ... 3D_sample1.elf
c:/devkitPro/libogc/lib/wii\libgrrlib.a(GRRLIB_ttf.o): In function `GRRLIB_ExitTTF':
GRRLIB_ttf.c:(.text.GRRLIB_ExitTTF+0x14): undefined reference to `FT_Done_FreeType'
c:/devkitPro/libogc/lib/wii\libgrrlib.a(GRRLIB_ttf.o): In function `GRRLIB_InitTTF':
GRRLIB_ttf.c:(.text.GRRLIB_InitTTF+0x14): undefined reference to `FT_Init_FreeType'
c:/devkitPro/libogc/lib/wii\libpng.a(png.o): In function `png_calculate_crc':
png.c:(.text.png_calculate_crc+0x34): undefined reference to `crc32'
c:/devkitPro/libogc/lib/wii\libpng.a(png.o): In function `png_reset_crc':
png.c:(.text.png_reset_crc+0x20): undefined reference to `crc32'
c:/devkitPro/libogc/lib/wii\libpng.a(pngread.o): In function `png_read_destroy':
pngread.c:(.text.png_read_destroy+0x1fc): undefined reference to `inflateEnd'
c:/devkitPro/libogc/lib/wii\libpng.a(pngread.o): In function `png_read_row':
pngread.c:(.text.png_read_row+0x168): undefined reference to `inflate'
c:/devkitPro/libogc/lib/wii\libpng.a(pngread.o): In function `png_create_read_struct_2':
pngread.c:(.text.png_create_read_struct_2+0x2d0): undefined reference to `inflateInit_'
c:/devkitPro/libogc/lib/wii\libpng.a(pngrutil.o): In function `png_inflate':
pngrutil.c:(.text.png_inflate+0x68): undefined reference to `inflate'
pngrutil.c:(.text.png_inflate+0x8c): undefined reference to `inflateReset'
pngrutil.c:(.text.png_inflate+0x128): undefined reference to `inflateReset'
c:/devkitPro/libogc/lib/wii\libpng.a(pngrutil.o): In function `png_read_finish_row':
pngrutil.c:(.text.png_read_finish_row+0x1b4): undefined reference to `inflate'
pngrutil.c:(.text.png_read_finish_row+0x3c0): undefined reference to `inflateReset'
collect2: ld returned 1 exit status
make[1]: *** [/c/devkitPro/GRRLIB/examples/3D_sample1/3D_sample1.elf] Error 1
"make": *** [build] Error 2
> Process Exit Code: 2
> Time Taken: 00:01
Whats wrong with the libraries?
Last edited by lolligertyp (2010-07-28 23:15:19)
Offline
Did you install the libraries correctly (GRRLIB, libpng, PNGU, linjpeg, Freetype and zlib)?
Offline
Yeah i think so
Offline
Try to use the Makefile in /GRRLIB and not the one in /GRRLIB/GRRLIB. The last one will only install GRRLIB, but you need all the libs in the lib folder as well.
Offline
Yes I make all the libs and then I installed then in the libogc folder
Offline
normally you don't need to do anything manually, just type : make clean all install
Offline
ok I will try
Offline
Less errors then before but:
> "make"
linking ... 3D_sample1.elf
c:/devkitPro/libogc/lib/wii\libgrrlib.a(GRRLIB_ttf.o): In function `GRRLIB_ExitTTF':
GRRLIB_ttf.c.text.GRRLIB_ExitTTF+0x14): undefined reference to `FT_Done_FreeType'
c:/devkitPro/libogc/lib/wii\libgrrlib.a(GRRLIB_ttf.o): In function `GRRLIB_InitTTF':
GRRLIB_ttf.c.text.GRRLIB_InitTTF+0x14): undefined reference to `FT_Init_FreeType'
collect2: ld returned 1 exit status
make[1]: *** [/c/devkitPro/GRRLIB/examples/3D_sample1/3D_sample1.elf] Error 1
"make": *** [build] Error 2
> Process Exit Code: 2
> Time Taken: 00:01
Thats Freetype but wte???
Offline
Freetype is not installed?
Where did you get your version of GRRLIB? Are you using 4.3.0? => http://code.google.com/p/grrlib/downloads/list
Offline
I got it from wiibrew.org. Thats 4.3.0
Offline
I don't understand what went wrong!
Try to go to the \GRRLIB\lib\freetype folder and try installing only FreeType with make clean all install
Offline
Still the same error
Offline
Look inside the folder C:\devkitPro\libogc\lib\wii for the file libfreetype.a, is it there?
Is there a folder named C:\devkitPro\libogc\include\freetype ?
Offline
try to go to /GRRLIB then make clean all install
and show us the full output.
Offline
Thank you, I forgot to recompile GRRLIB ^^
Offline
I think we should put these lines in bold inside the README file
The easy way is to install GRRLIB and all the required libraries in a single
command:
c:
cd \grr\trunk\GRRLIB
make clean all install
Offline