Static -binary- libraries for LPCXpresso

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Static -binary- libraries for LPCXpresso

827 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by elektronist on Wed Apr 29 01:20:57 MST 2015
How can we create, distribute and use binary only libraries for LPCXpresso, like i2c_display_lib?
http://www.lpcware.com/content/blog/lcd-driver-pcf2119-sample-code

0 Kudos
Reply
2 Replies

786 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by elektronist on Wed Apr 29 03:44:07 MST 2015
Thanks for quick response.

A tiny add: Right click on the library in Project Explorer doesn't show Binary Utilities menu entry. Instead right clicks on liblibraryname.a in Debug and Release do.

0 Kudos
Reply

786 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Wed Apr 29 01:40:56 MST 2015
In the first place, read:

http://www.lpcware.com/content/faq/lpcxpresso/creating-linking-library-projects

Once you have a working library archive, you may wish to strip the debug information from it before distribution. This can be done in one of the following ways:

[list]
  [*]Right click on the library in Project Explorer and select Binary utilities->Strip debug symbols
  [*]Run the following command from a command prompt (or as a post build step):
[list]
  [*]arm-none-eabi-objcopy -g liblibraryname.a
[/list]
[/list]

Regards,
LPCXpresso Support
0 Kudos
Reply