I want to create a shared library using ZipArchive using GNU Autotools, but I had this problem:
Warning: linker path does not have real file for library -lziparch. I have the capability to make that library automatically link in when you link to this library. But I can only do this if you have a shared version of the library, which you do not appear to have because I did check the linker path looking for a file starting with libziparch and none of the candidates passed a file format test using a file magic. Last file checked: /usr/local/ZipArchive/ZipArchive/libziparch.a The inter-library dependencies that have been dropped here will be automatically added whenever a program is linked with this library or is declared to -dlopen it.
If I create a static library or I use the ZipArchive shared library, it works, but the problem is that the make file that comes with the ZipArchive source code only creates a static library.
How to get Libtool to link to a static library?
Typically, static archives are created with non-pic objects and cannot be placed in shared libraries.
, , Libtool, -lziparch . , . ZipArchive . , , MS Windows, (DLL) .
, , ziparch static lib - PIC, -all-archive . , .