Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

merge static libraries into single

Tags:

How to merge the static libraries into single one?

I do have three static libraries libSignatureLibary_armv6.a , libSignatureLibary_armv7.a and libSignatureLibary_i368.a

Now i want to merge this three file into one single library which may be named has libSignatureLibary.a

While Googling I found lipo which is open source tool!

Do i need to run any extra scripting language to merge

or in terminal lipo and pass the parameter for the lipo.

Can any on advice me to build the common library for these three.

@thanks in advance Kiran

like image 445
kiran Avatar asked Jun 20 '12 13:06

kiran


People also ask

What happens when you link a static library?

Static Linking and Static Libraries is the result of the linker making copy of all used library functions to the executable file. Static Linking creates larger binary files, and need more space on disk and main memory.

Can a static library depend on another static library?

Static libraries are just archives of object ( .o ) files, so you can't have embedded dependency information.

Are static libraries linked?

A static library is a programming concept in which shared libraries with special functionalities, classes or resources are linked to external applications or components, facilitating the creation of stand-alone and executable files.


1 Answers

Open terminal and go to folder with your libs. Then use command:

lipo libSignatureLibary_armv6.a libSignatureLibary_armv7.a libSignatureLibary_i368.a -create -output libSignatureLibary.a 
like image 184
ZGl6YXNt Avatar answered Sep 28 '22 21:09

ZGl6YXNt