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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Custom Fonts

What kind of problem? it is in NDK Project settings, you can't find it?

Super Contributor
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook
My Carrier: NA

Re: Custom Fonts

I get the errors:

 

/Applications/bbndk/host_10_0_9_52/darwin/x86/usr/bin/ntoarm-ld: cannot find -lcpp,
/Applications/bbndk/host_10_0_9_52/darwin/x86/usr/bin/ntoarm-ld: cannot find QtCore,: No such file or directory
/Applications/bbndk/host_10_0_9_52/darwin/x86/usr/bin/ntoarm-ld: cannot find QtGui: No such file or directory

 

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Custom Fonts

Can you post compiler lines too (all output in console)?
Super Contributor
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook
My Carrier: NA

Re: Custom Fonts

**** Build of configuration Device-Debug for project QtFonts ****

**** Internal Builder is used for build               ****
qcc -o QtFonts src/moc_myedit.o src/main.o -lcpp, QtCore, QtGui -V4.6.3,gcc_ntoarmv7le -w1 -g -Wl,-z,relro -Wl,-z,now -L/Applications/bbndk/target_10_0_9_386/qnx6/../target-override/armle-v7/lib -L/Applications/bbndk/target_10_0_9_386/qnx6/armle-v7/usr/lib/qt4/lib -L/Applications/bbndk/target_10_0_9_386/qnx6/../target-override/armle-v7/usr/lib
/Applications/bbndk/host_10_0_9_52/darwin/x86/usr/bin/ntoarm-ld: cannot find -lcpp,
/Applications/bbndk/host_10_0_9_52/darwin/x86/usr/bin/ntoarm-ld: cannot find QtCore,: No such file or directory
/Applications/bbndk/host_10_0_9_52/darwin/x86/usr/bin/ntoarm-ld: cannot find QtGui: No such file or directory
cc: /Applications/bbndk/host_10_0_9_52/darwin/x86/usr/bin/ntoarm-ld error 1
Build error occurred, build is stopped
Time consumed: 141  ms.  

 

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Custom Fonts

My guesss you missed this step:

 9. Under C/C++ Build->Settings->QCC Linker->Libraries add following folders in
    'Library Paths (-L)' section: ${QNX_TARGET}/${CPUVARDIR}/usr/lib/qt4/lib. 

as I cannot see this path in your -L directive.

And this:

-lcpp, QtCore, QtGui 

is very weird specification of libraries. It does not work this way. Every library has to be added as separate line.

So read this

10. Under C/C++ Build->Settings->QCC Linker->Libraries add following libraries in
    'Libraries (-l)' section: cpp, QtCore, QtGui. Click OK.

as

10. Under C/C++ Build->Settings->QCC Linker->Libraries add following libraries in
    'Libraries (-l)' section: cpp, QtCore, QtGui. Every library should be added as separate line every time hitting + sighn. Click OK.
Super Contributor
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook
My Carrier: NA

Re: Custom Fonts

I was adding

cpp, QtCore, QtGui

all on one line, I added themin seperate and it compiles. When I run it, I get the error:

 

ldd:FATAL: Could not load library libQtCore.so.4

 

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
Highlighted
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Custom Fonts

Are you sure you copied bar-descriptor.xml file? Check it should have this line at the very bottom

    <env var="LD_LIBRARY_PATH" value="/usr/lib/qt4/lib"/>

Are you deploying to DevAlpha I hope?