You are not logged in.

#1 2010-07-28 21:44:45

lolligertyp
Member

[RESOLVED] Problem with GRRLIB by Compile a Source Code

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

 

#2 2010-07-28 21:47:17

Crayon
Bad Mother Fucker

Re: [RESOLVED] Problem with GRRLIB by Compile a Source Code

Did you install the libraries correctly (GRRLIB, libpng, PNGU, linjpeg, Freetype and zlib)?

Offline

 

#3 2010-07-28 21:50:32

lolligertyp
Member

Re: [RESOLVED] Problem with GRRLIB by Compile a Source Code

Yeah i think so

Offline

 

#4 2010-07-28 21:50:54

Crayon
Bad Mother Fucker

Re: [RESOLVED] Problem with GRRLIB by Compile a Source Code

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

 

#5 2010-07-28 21:51:49

lolligertyp
Member

Re: [RESOLVED] Problem with GRRLIB by Compile a Source Code

Yes I make all the libs and then I installed then in the libogc folder

Offline

 

#6 2010-07-28 21:55:41

Crayon
Bad Mother Fucker

Re: [RESOLVED] Problem with GRRLIB by Compile a Source Code

normally you don't need to do anything manually, just type : make clean all install

Offline

 

#7 2010-07-28 21:57:26

lolligertyp
Member

Re: [RESOLVED] Problem with GRRLIB by Compile a Source Code

ok I will try

Offline

 

#8 2010-07-28 22:07:53

lolligertyp
Member

Re: [RESOLVED] Problem with GRRLIB by Compile a Source Code

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.csad.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.csad.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

 

#9 2010-07-28 22:09:36

Crayon
Bad Mother Fucker

Re: [RESOLVED] Problem with GRRLIB by Compile a Source Code

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

 

#10 2010-07-28 22:20:33

lolligertyp
Member

Re: [RESOLVED] Problem with GRRLIB by Compile a Source Code

I got it from wiibrew.org. Thats 4.3.0

Offline

 

#11 2010-07-28 22:31:28

Crayon
Bad Mother Fucker

Re: [RESOLVED] Problem with GRRLIB by Compile a Source Code

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

 

#12 2010-07-28 22:35:32

lolligertyp
Member

Re: [RESOLVED] Problem with GRRLIB by Compile a Source Code

Still the same error

Offline

 

#13 2010-07-28 23:08:45

Crayon
Bad Mother Fucker

Re: [RESOLVED] Problem with GRRLIB by Compile a Source Code

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

 

#14 2010-07-28 23:10:12

NoNameNo
Administrator

Re: [RESOLVED] Problem with GRRLIB by Compile a Source Code

try to go to  /GRRLIB then make clean all install
and show us the full output.

Offline

 

#15 2010-07-28 23:15:04

lolligertyp
Member

Re: [RESOLVED] Problem with GRRLIB by Compile a Source Code

Thank you, I forgot to recompile GRRLIB ^^

Offline

 

#16 2010-07-28 23:25:12

Crayon
Bad Mother Fucker

Re: [RESOLVED] Problem with GRRLIB by Compile a Source Code

I think we should put these lines in bold inside the README file wink

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

 

Board footer

Powered by FluxBB