Hi
I download p7zip_9.13 source code and build in MAC OS 10.6.
I use "make all2" to build 7z.so. Can I link this 7z.so in xcode?
If can, how to do it?
Here is the step that I add 7z.so to my project.
(1) Group & File -> Project -> Add -> Existing Files -> select "7z.so".
(2) copy 7z.so to /usr/lib.
The project can build and run. Is it right?
Another thing, how do I use it?
I have no idea to how to use this .so file.
Do I need to add the .h file in my project?
If so, it will cause build fail in many .h file.
Please someone help me.
Thanks a lot!!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi my p7zip. I am trying to use p7zip to extract one 7zip file on mac. Well, there is NArchive::N7z::CHandler to open and extract one 7zip file. However, it needs customer to define their own CArchiveOpenCallback and CArchiveExtractCallback. Why does not p7zip to offer one direct api that takes only one 7zip file name and one destination path to extract file?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I download p7zip_9.13 source code and build in MAC OS 10.6.
I use "make all2" to build 7z.so. Can I link this 7z.so in xcode?
If can, how to do it?
Here is the step that I add 7z.so to my project.
(1) Group & File -> Project -> Add -> Existing Files -> select "7z.so".
(2) copy 7z.so to /usr/lib.
The project can build and run. Is it right?
Another thing, how do I use it?
I have no idea to how to use this .so file.
Do I need to add the .h file in my project?
If so, it will cause build fail in many .h file.
Please someone help me.
Thanks a lot!!!
You can compile p7zip under xcode :
cd CPP/7zip/CMAKE
./generate_xcode.sh
now you can open CPP/7zip/P7ZIP.Xcode with xcode.
To use 7z.so with an explicit load, look at CPP/7zip/UI/Client7z/Client.7z
The 7z.so API is not easy …
I did not try to use or link 7z.so directly as Igor Pavlov does not provide it in its 7-zip package.
Hi my p7zip. I am trying to use p7zip to extract one 7zip file on mac. Well, there is NArchive::N7z::CHandler to open and extract one 7zip file. However, it needs customer to define their own CArchiveOpenCallback and CArchiveExtractCallback. Why does not p7zip to offer one direct api that takes only one 7zip file name and one destination path to extract file?