PDA

View Full Version : Can I uncompress .lzh format file?




mikezang
Aug 12, 2010, 06:25 AM
I want to download some .lzh format compress files, then uncompress it, is it possible in iPad?



robbieduncan
Aug 12, 2010, 06:47 AM
Using Apple-provided/built-in code/APIs: no.

If you can find a C-based library that can be compiled into your code or compiled into a statically linked library with a license that is acceptable to you: yes.

Of if the above is impossible then yes if your write all the decompression code yourself by reading and then implementing the specifications.

mikezang
Aug 12, 2010, 07:00 AM
Well, I hope that I can find a c source.

mikezang
Aug 12, 2010, 08:42 AM
I got a source for unix, what can I do next?

robbieduncan
Aug 12, 2010, 08:50 AM
I got a source for unix, what can I do next?

Erm, what I said above. I'm not going to hold your hand through this or spoon feed you each chunk of documentation: this is your project. Time for you to go and do the research and lean by figuring it out yourself.

Anne R. Kist
Aug 12, 2010, 09:48 AM
I got a source for unix, what can I do next?

Unzip files
Copy files to project
Profit!

mikezang
Aug 12, 2010, 10:37 AM
I can uncompress lzh file in Mac OS, I have source, I can compile it with Mac OS SDK, but I tried to use iPhone OS 3.2, that is failed!

I want to know if it can be used in iPad? and how can I compile it with iPhone OS?

robbieduncan
Aug 12, 2010, 10:40 AM
I can uncompress lzh file in Mac OS, I have source, I can compile it with Mac OS SDK, but I tried to use iPhone OS 3.2, that is failed!

I want to know if it can be used in iPad? and how can I compile it with iPhone OS?

You will have to be more descriptive than that. You are in real danger of becoming a Help Vampire (http://slash7.com/2006/12/22/vampires/). Tell us exactly, step by step, what you have done. When you say "it failed" do you think that's enough for anyone to offer assistance or should you explain exactly what failed, post any error messages, explain what you've already tried to debug this etc...

Anne R. Kist
Aug 12, 2010, 01:25 PM
You are in real danger of becoming a Help Vampire (http://slash7.com/2006/12/22/vampires/).
I think that point was passed a long time ago.

mikezang
Aug 13, 2010, 12:15 AM
When I select iPhone 3.2 SDK, I got compile error.

robbieduncan
Aug 13, 2010, 03:48 AM
It tells you exactly what the issue is: you have told it to compile for PPC. That won't work.

mikezang
Aug 16, 2010, 10:23 AM
Thanks for all your suggestion.

I am successful to UnLHA the .lzh file on simulator, I think it should can be run at iPad, do you think so?

By the way, though there is a SandBox limitation in iPad.iPhone, but there ie no any limitation in simulator, I can read and write file from/to my Desktop, was this a truth to all people here?