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
BGmot
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?

Please use plain text.
Super Contributor
JeffLemon
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
Please use plain text.
Developer
BGmot
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)?
Please use plain text.
Super Contributor
JeffLemon
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
Please use plain text.
Developer
BGmot
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.
Please use plain text.
Super Contributor
JeffLemon
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
Please use plain text.
Developer
BGmot
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?

Please use plain text.