Can I uncompress .lzh format file?

Discussion in 'iPhone/iPad Programming' started by mikezang, Aug 12, 2010.

  1. macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #1
    I want to download some .lzh format compress files, then uncompress it, is it possible in iPad?
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    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.
     
  3. thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #3
    Well, I hope that I can find a c source.
     
  4. thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #4
    I got a source for unix, what can I do next?
     

    Attached Files:

    • src.zip
      File size:
      83.8 KB
      Views:
      39
  5. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #5
    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.
     
  6. macrumors newbie

    Joined:
    Aug 11, 2010
    Location:
    ...in the UK
    #6
    • Unzip files
    • Copy files to project
    • Profit!
     
  7. thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #7
    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?
     
  8. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #8
    You will have to be more descriptive than that. You are in real danger of becoming a Help Vampire. 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...
     
  9. macrumors newbie

    Joined:
    Aug 11, 2010
    Location:
    ...in the UK
    #9
    I think that point was passed a long time ago.
     
  10. thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #10
    When I select iPhone 3.2 SDK, I got compile error.
     

    Attached Files:

  11. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #11
    It tells you exactly what the issue is: you have told it to compile for PPC. That won't work.
     
  12. thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #12
    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?
     

Share This Page