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
New Developer
bigb2009
Posts: 34
Registered: ‎11-25-2009
My Device: Not Specified

Qt Creator, issue with fonts?

Okay, so I switched from Momentics to QTCreator, following various howto's and such, just trying to deploy a simple hello world app, but when I run it on the device(not the simulator), I am getting this in my app log on the device :
QBB: failed to open Locale pps, errno=13
QFontDatabase: Cannot find font directory /home/<username>/bbndk-2.0.0/Qt/stage/nto/armle-v7/usr/lib/qt4/lib/fonts - is Qt installed correctly?

 

Seems as though it's trying to find fonts, which of course there are none of the device(though it's referencing the paths on my local machine).  Do I need to deploy them and set the path w/ an enviroment variable, or am I doing something wrong? 

 

Thank you,

Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: Qt Creator, issue with fonts?

Which Qt build are you using? With mine the apps seem to find the system fonts perfectly well, and I don't have anything special that appears font-related in my bar-descriptor.xml or .cproject file.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
New Developer
bigb2009
Posts: 34
Registered: ‎11-25-2009
My Device: Not Specified

Re: Qt Creator, issue with fonts?

Blackberry's GIT... I think I may have gotten past that issue by adding :

<env var="QT_QPA_FONTDIR" value="/usr/fonts/font_repository/liberation"/>

 

into the bar-descriptor.xml..

 

Only thing I would LOVE to figure out now is how to be able to use the NDK as well as Qt in QtCreator... You can certainly use the creator to make the gui's and such, but I don't think you can still use NDK features, as it always says "include file not found.. "..Would love to be able to use some of the libraries and includes within Qt, but I don't think you can at this point add -L and -I to the compile scripts, and ever if you did, you will lose the sim, as it's looking for a N900, wrong architecture...

 

Though I am atleast at a point that I can do something.  Use QtCreator to set myself up, then from there, vi and the command line.  haha... Just like the good old days. :smileyhappy: 

Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: Qt Creator, issue with fonts?

Okay. Not sure you saw earlier threads/posts where I reported that the activity now is in the main Qt 4.8 branch, not BlackBerry's git, so if you were to switch to that (or use my binaries) you wouldn't have that issue. (Nor, possibly, other ones, since the BB one seems to be quite "stale" now.)

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
New Developer
bigb2009
Posts: 34
Registered: ‎11-25-2009
My Device: Not Specified

Re: Qt Creator, issue with fonts?

No I'm sorry I haven't... What was the title of the post? 

Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: Qt Creator, issue with fonts?

[ Edited ]

It came up around here: http://supportforums.blackberry.com/t5/Native-SDK-for-BlackBerry-Tablet/Cross-compiling-Qt-in-window...

 

(The forum search feature was more helpful this time than I thought it would be...)


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
New Developer
bigb2009
Posts: 34
Registered: ‎11-25-2009
My Device: Not Specified

Re: Qt Creator, issue with fonts?

..... And I'm off.. haha.. git cloning now... Yea, I tried the search, but it's pretty painful..

 

I'm assuming that I am just going to clone this guy, then basically follow the instructions here :

http://wiki.qt-project.org/QNX

 

I did also do a build of RIMs qtcreator, so I will give that a whirl as well, see what I can do. 

 

I have successfully built and installed a few Qt Apps with not many issues, but as soon as I added anything from the standard NDK, all hell broke loose.  Hopeing this somewhat fixes that. 

 

Thanks again for all your help again man, really appreciate it,

Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: Qt Creator, issue with fonts?

Note that in those instructions, they're still building "-opengl es1" for x86, when it appears es2 does now work.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
New Developer
bigb2009
Posts: 34
Registered: ‎11-25-2009
My Device: Not Specified

Re: Qt Creator, issue with fonts?

Yup, just finished compiling and installing.  Going to play now.  I used your most recent configure line, so I should be good to go there. 

 

Thanks again, I'll be on IRC probably next week a little more.. Have a newborn baby that I like to spend time with on the weekends. :smileyhappy: 

New Developer
bigb2009
Posts: 34
Registered: ‎11-25-2009
My Device: Not Specified

Re: Qt Creator, issue with fonts?

It does the same thing, there isn't anyway that I can find in Qt Creator to be able to tell it that your including files that are outside ot Qt. 

 

Example, I am trying to include this :

#include <bps/bps.h>
#include <bps/audiomixer.h>
#include <mm/renderer.h>

 

And it basically says no.  Not a big deal, as I can always just use QtCreator to create the UI, then take it out to compile and deploy/test.  Just slows things down a bit.