Tôi muốn xây dựng một thư viện chia sẻ mà sử dụng ZipArchive sử dụng GNU Autotools nhưng tôi đang gặp vấn đề này:Tại sao Libtool không muốn liên kết với một thư viện tĩnh?
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.
Nếu tôi xây dựng một thư viện tĩnh hoặc nếu tôi sử dụng một thư viện chia sẻ của ZipArchive nó hoạt động nhưng vấn đề là makefile đi kèm với mã nguồn ZipArchive chỉ xây dựng một thư viện tĩnh.
Làm cách nào để buộc Libtool liên kết với một thư viện tĩnh?