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
Posts: 7
Registered: ‎09-18-2012
My Device: BB 10
My Carrier: O2
Accepted Solution

Openssl in Cascades

[ Edited ]

Hello,

I am trying to use OpenSSL in my cascades app. I have added openSSL library by "Configure->Add library... ->Standard BB platform library" and then selecting openSSL. After that I have followed the instructions of the cheatsheet to modify the .pro file.

But the problem comes when I compile my app with some openSSL code, for instance when I try to create a new RSA key  I got the following compaling error:

 

C:\bbndk\host_10_0_9_284\win32\x86\usr\bin\ntoarm-ld: note: 'RSA_new' is defined in DSO C:/bbndk/target_10_0_9_1101/qnx6/armle-v7/usr/lib/libcrypto.so.2 so try adding it to the linker command line
C:/bbndk/target_10_0_9_1101/qnx6/armle-v7/usr/lib/libcrypto.so.2: could not read symbols: Invalid operation

 
I am using openSSL because I have experience and the same code is used in the app for windows. So I wouldn't take me long to use it in BB10. So if someone knows how to use OpenSSL in a BB10, please help me!! Smiley Wink

Thank you in advance.

New Developer
Posts: 7
Registered: ‎09-18-2012
My Device: BB 10
My Carrier: O2

Re: Openssl in Cascades

Ok, I have fixed it adding in the .pro file:

 

LIBS += -lcrypto