Page 1 of 1

cannot find -lfreetype??

Posted: Mon Dec 22, 2008 11:31 am
by booster666
Hello,
I am creating a new version of Pong 2,
But when i 'make' the project (ALT + 1)
In the output i get:

Code: Select all

> "make" 
linking ... pong2.elf
h:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/bin/ld.exe: cannot find -lfreetype
collect2: ld returned 1 exit status
make[1]: *** [/h/DevkitproProjects/first/pong2/pong2.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:00
What do i need to do??
Thanks

Re: cannot find -lfreetype??

Posted: Mon Dec 22, 2008 8:45 pm
by cuppm
Did you downloaded the GC/Wii FreeType library build and put the headers and lib in the libogc folder like it specifies? If you didn't put it there, is the lib path specified in your make file?

Re: cannot find -lfreetype??

Posted: Tue Dec 23, 2008 11:27 am
by booster666
I installed it in the libogc folder, but now i get this error.

Code: Select all

linking ... pong2.elf
h:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/bin/ld.exe: cannot find -lmxml
collect2: ld returned 1 exit status
make[1]: *** [/h/DevkitproProjects/first/pong2/pong2.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:00

Re: cannot find -lfreetype??

Posted: Tue Dec 23, 2008 12:53 pm
by cuppm
The "cannot find -l<something>" error means it can't find the <something> library. In this case it means it can't find the mxml library. Try looking here http://code.google.com/p/wiichat/.

Re: cannot find -lfreetype??

Posted: Tue Dec 23, 2008 2:10 pm
by booster666
cuppm wrote:The "cannot find -l<something>" error means it can't find the <something> library. In this case it means it can't find the mxml library. Try looking here http://wiibrew.org/wiki/Development_Tools.
I have installed mxml libary but i think i am missing this file:libmxml.a

edit: don't link to banned sites

This i got:H:\devkitPro\libogc\include\mxml.h
This i dont have:H:\devkitPro\libogc\lib\wii\libmxml.a

libmxml.a isnt enywhere on my PC or in the mxml-2.5.tar.gz

Re: cannot find -lfreetype??

Posted: Fri Mar 06, 2009 4:04 am
by segers_j
ld is the linker, the linker has nothing to do with .h files. The .a file is what the linker wants. It must be named lib<whatever the linker is looking for>.a and it must be in the paths the linker searches as defined in the make file. http://wiichat.googlecode.com/files/mxml-wii.tgz includes the .a file in mxml-wii/mxml/lib.

Happy coding -- Jerry