libarchive

How to use libarchive in iOS in Xcode?

匆匆过客 提交于 2021-02-11 15:19:42
问题 I want to add libarchive to my app to be able to extract tar.gz. As install instruction says, I took following steps: cmake -G "Xcode" ~/libarchive-download-dir/ make make install Now I have a libarchive.14.dzlib file. I added it to the project, and wants to call i.e. the following, like proposed in examples r = archive_read_open_filename(a, "archive.tar", 10240); but, method is not declared. I guess I have to add a header to the project?! It is a dylib, I am not sure. But I do not found any

libarchive raise compiler error in iOS in Xcode

狂风中的少年 提交于 2019-12-25 06:39:58
问题 I compiled libarchive with following commands cmake -G "Xcode" ~/libarchive-download-dir/ make make install and added libarchive.14.dylib and achieve.h to my project. But I got an compiler error. Any idea why? Undefined symbols for architecture i386: "_archive_read_support_filter_all", referenced from: -[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see

Using libarchive in python on Windows

孤人 提交于 2019-12-07 18:23:45
问题 I'm trying to get libarchive module working in python 3.4 on windows. I've installed libarchive-c with pip and all went ok but whenever I try to import it into my code or even to run it alone I'me getting error: OSError: [WinError 126] The specified module could not be found This is coming from ffi.py from the code below: libarchive_path = os.environ.get('LIBARCHIVE') or find_library('archive') libarchive = ctypes.cdll.LoadLibrary(libarchive_path) I've never used ctypes before but if I