Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 29
Registered: ‎05-05-2012
My Device: PB 32
My Carrier: Koodo Mobile

Where is libfreetype2.a?

I'm trying to use freetype2 but when I add the library I get an error that it doesn't exist. Doing a search, I found that the .a file doesn't exist in the bbndk directory anywhere, although the header files are there.

Retired
Posts: 74
Registered: ‎07-22-2008
My Device: BlackBerry Z10
My Carrier: N/A

Re: Where is libfreetype2.a?

You shouldn't be linking against libfreetype2.a.   If you link to static libraries you have to maintain dependencies manually so it is not recommended.  Instead you should link to libfreetype2.so.  To add libfreetype2 to your project, click on the project menu on the top>Add Library, select Standard BlackBerry Platform library, Under Graphics and Windowing select Free Type 2.

 

 

Thanks,
Pratik Sapra
Gaming & Apps Consultant
Developer Relations
@pratiksapra
Developer
Posts: 29
Registered: ‎05-05-2012
My Device: PB 32
My Carrier: Koodo Mobile

Re: Where is libfreetype2.a?

[ Edited ]

I've tried that a couple times and get linker errors...

Retired
Posts: 74
Registered: ‎07-22-2008
My Device: BlackBerry Z10
My Carrier: N/A

Re: Where is libfreetype2.a?

Can you copy & paste the error you are getting?

Thanks,
Pratik Sapra
Gaming & Apps Consultant
Developer Relations
@pratiksapra