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 Contributor
sourav_bhattacharjee
Posts: 4
Registered: ‎03-28-2012
My Device: Playbook
Accepted Solution

Need help to add libcurl library in QNX momentics IDE

Hi,

I am new to Native SDK development for Tablet OS, I am working on a application which have some UI part, need to handle HTTP connections and also need to run in background.

 

I have tried but failed to download libcurl library for handle the HTTP connections. Can anyone give me the link to download the library file for QNX momentics IDE, and a example source code of using this library for handling HTTP requests, JSON parsing ?

 

Also I need to find a way to run my application in background. So I am looking for a solution to do so.

 

Thanks in advance  :Helpsmilie: .

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook

Re: Need help to add libcurl library in QNX momentics IDE

I am pretty sure I saw libcurl port to PB at github in blackberry opensource projects. What happened to it? Where did it go to?

Please use plain text.
Developer
rcmaniac25
Posts: 1,805
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.634 Dev OS, Z30 (STA100-5)-10.3.1.634 Dev OS, Passport (SQW100-1)-10.3.0.1418, PlayBook (16GB)-2.1.0.1917

Re: Need help to add libcurl library in QNX momentics IDE

libcurl is built into the NDK. Just import headers from the "curl" folder such as <curl/curl.h>. Make sure to reference the library (curl) in your project.
---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook

Re: Need help to add libcurl library in QNX momentics IDE

That's nice! thanks.

Please use plain text.
New Contributor
sourav_bhattacharjee
Posts: 4
Registered: ‎03-28-2012
My Device: Playbook

Re: Need help to add libcurl library in QNX momentics IDE

Thanks rcmaniac25, for your help. Yes this is worked and now I can handle my HTTP requests. For other new developers I simply just describe the process to add curl library in NDK.

 

1. Right click on your project and go to Configure>Add Library.

2. Click Next and then select the first option(Standard Blackberry platform library).

3. Click Next and write "curl" in the filter box.

4. Finally select the curl Network>Curl option.

Please use plain text.