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: 64
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Rogers

Writing a Cordova plugin that links against QtCore

When I try and import a class like QDir, I get the following error:

 

Description    Resource    Path    Location    Type
fatal error: QtCore/qstring.h: No such file or directory    DiscreteCamera        line 45, external location: C:\devel\bbndk10.1\target_10_1_0_1020\qnx6\usr\include\qt4\QtCore\qdir.h    C/C++ Problem

I have added the QtCore lib by going Project --> Configure --> Add Library --> Standard BlackBerry library  and then selecting Platform -->QtCore

 

When I explore my imported libs QtCore/qstring.h is in fact there. Any ideas on how to fix this error? My project is based directly off of this sample:

https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10-Cordova/Template/plugin/src/b...

 

Retired
Posts: 856
Registered: ‎07-15-2008
My Device: Passport
My Carrier: Bell

Re: Writing a Cordova plugin that links against QtCore

This is most likely an issue with your include folders. I think that you've added the library to your project properly, but you may also have to update the include folders too. 

 

Make sure you have ${QNX_TARGET}/usr/include/qt4/QtCore listed in addition to the ${QNX_TARGET}/usr/include/qt4 directory.

 

You are referencing QDir which is also used by the LowLatencyAudio plugin. You may want to import that one and compare.

Tim Windsor
Open Source Technical Lead