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
daxfrost
Posts: 20
Registered: ‎07-23-2013
My Carrier: *

Which architecture to use when compiling .so library?

Hi there,

 

I get the following error linking my 3rd party .so library file through Momentics "Add Library..." process:

 

Library is not compiled for the correct architecture: ./path/to/my/library/LibraryName_armv7.so

 

Is there a specific architecture name someone could inform me of to compile for BlackBerry 10 native app linking?

 

Thank you in advance!

Frosty

Please use plain text.
Developer
mzex
Posts: 368
Registered: ‎06-30-2012
My Carrier: Telenor, Mobitel

Re: Which architecture to use when compiling .so library?

[ Edited ]

That library must be precompiled for armv7. You cant do that, if you dont have source code of that third party library.

Please use plain text.
Developer
BBSJdev
Posts: 4,906
Registered: ‎07-05-2012
My Carrier: Orange

Re: Which architecture to use when compiling .so library?

If you are compiling for the simulator then the library must be in x86 for all debug and release builds for devices it must be ARM code.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
BBSJdev
Posts: 4,906
Registered: ‎07-05-2012
My Carrier: Orange

Re: Which architecture to use when compiling .so library?

As all ARM code is always backwards compatible then v7 is not strictly necessary.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.