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
Contributor
Posts: 44
Registered: ‎09-14-2012
My Device: BB 10 Dev alpha
Accepted Solution

SystemUiButton

[ Edited ]

I getting compile error when I trying to use SystemUiButton.

Seems that some libs are not linked.

 

What libs I should add to .pro file?

And in general case, how can I know which libs should be linked?

 

Thanks in advance

Developer
Posts: 80
Registered: ‎09-03-2012
My Device: 9810

Re: SystemUiButton

Add this

LIBS+= -lbbsystem

Always Success
Contributor
Posts: 44
Registered: ‎09-14-2012
My Device: BB 10 Dev alpha

Re: SystemUiButton

Thanks, MFSI!

 

But that can you say about second part of my question: How can I know which libs should be linked in general case?

Developer
Posts: 80
Registered: ‎09-03-2012
My Device: 9810

Re: SystemUiButton

I too don't exactly know the reference where i would find about the required library. I too want to know about the correct reference for this.

 

Since I had been using now I now know that this functionality belongs to this library.

 

What I followed from the very beginning is that I know about  the header file for required control  to be included in my code.

 

Like if my using any header file

#include <bb/system/SystemToast.hpp>

 then I know the library will be "lbbsystem" derived from its header file (I know thats pretty illogical(guess) but yet it worked and i am doing this way)

 

similarly for

#include <bb/data/JsonDataAccess>

 library will be "lbbdata"

and so on..

 

Most of the libraries you need primarily will be out of these :

 

-lm -lbps -lbbsystem -lbbdata -lbbplatform -lbbdevice -lbbcore -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lQtXmlPatterns -lQtXml -lQtGui -lQtNetwork -lQtCore

 

just a pattern i am following to get required libraries.

 

 

I am too seeking correct reference for this .

 

 

 

Always Success
Contributor
Posts: 44
Registered: ‎09-14-2012
My Device: BB 10 Dev alpha

Re: SystemUiButton

Oh, thanks a lot for detailed response.