Questions tagged [libz]

A library used for data compression. Also a crucial component of many software platforms including Linux, Mac OS X, and the iOS. The library is libz and the format is known as zlib. Most questions on this topic are tagged "zlib" not "libz".

41 questions
34
votes
4 answers

libz.dylib versus libz.1.2.3.dylib versus libz.1.2.5.dylib

I asked this in a comment but this seems like an issue that deserves its own question. I have a project that's shared between three different installations of XCode and two different installations of the iOS SDK. At the moment unifying the…
Hyperbole
  • 3,917
  • 4
  • 35
  • 54
15
votes
3 answers

is partial gz decompression possible?

For working with images that are stored as .gz files (my image processing software can read .gz files for shorter/smaller disk time/space) I need to check the header of each file. The header is just a small struct of a fixed size at the start of…
alle_meije
  • 2,424
  • 1
  • 19
  • 40
14
votes
4 answers

error executing aapt, all of the sudden

I know there are a lot of these topics around but none seem to help in my case, nor describe it exactly. The best similar one is aapt not found under the right path. My problem is that I can be using Eclipse for a whole evening programming,…
pjv
  • 10,658
  • 6
  • 43
  • 60
11
votes
2 answers

What's the most that GZIP or DEFLATE can increase a file size?

It's well known that GZIP or DEFLATE (or any compression mechanism) can increase file size sometimes. Is there a maximum (either percentage or constant) that a file can be increased? What is it? If a file is X bytes, and I'm going to gzip it, and I…
SRobertJames
  • 8,210
  • 14
  • 60
  • 107
6
votes
2 answers

crc32() missing when building libzip on OSX 10.9

I've downloaded the latest release of libzip and am currently trying to build it on OSX and failing: Linking C shared library libzip.dylib Undefined symbols for architecture x86_64: "_crc32", referenced from: __zip_filerange_crc in…
ruipacheco
  • 15,025
  • 19
  • 82
  • 138
6
votes
4 answers

Error with iOS 5.1 when i use ASIHTTPRequest and SBJSON

i am getting this error: Undefined symbols for architecture i386: "_OBJC_CLASS_$_ASIHTTPRequest", referenced from: objc-class-ref in FirstViewController.o "_OBJC_CLASS_$_SBJsonParser", referenced from: objc-class-ref in…
Vacca
  • 1,219
  • 16
  • 26
5
votes
1 answer

Libz not getting linked in XCode

In my project I have several linking errors, each of them points to libz missing. Here is the example: Undefined symbols for architecture arm64: "_inflateReset2", referenced from: _png_inflate_claim in libcocos2d iOS.a(pngrutil.o) …
Polina
  • 273
  • 4
  • 13
4
votes
1 answer

Cannot install Ruby 1.9.3 on Mountain Lion w/ RVM: Error running make

I'm trying to install Ruby so I can do the "Learn Ruby the Hard Way" course, and I've just been having tons of trouble installing the newest version of Ruby Here's the relevant part of my log: compiling md5ossl.c linking shared-object…
3
votes
1 answer

Julia 0.4.5: libz fails to load on Ubuntu

While I was attempting to use Requests in Julia, the following error was output: julia> using Requests INFO: Precompiling module Requests... ERROR: LoadError: LoadError: error compiling version: could not load library "libz" libz: cannot open shared…
3
votes
0 answers

Python3.4.1 LINUX - from pip import main raises ImportError: Cannot import name 'main'

I'm using a server for which I am not root, and I have several scripts requiring Python 3.4.1. I built the software from the source tarball using the following syntax $ ./configure --prefix=$HOME $ make $ make install The software installed…
PikalaxALT
  • 327
  • 3
  • 12
2
votes
1 answer

Can not find libz.dylib when build libzip by homebrew in Mac OS 10.16 (Big Sur)

When building libzip by homebrew (Mac OS 10.16), it complains make[2]: *** No rule to make target /usr/lib/libz.dylib', needed by `lib/libzip.5.3.dylib'. Stop., but I have /usr/lib/libz.dylib as a soft link, the real lib (libz.1.dylib) is…
yqjas
  • 56
  • 2
  • 9
2
votes
1 answer

Build c++ Qt CLI Tool with Quazip

so normally I am an embedded software developer first time I need to do something like that... So I am no expert at all at this... I have come this far with a lot of googling and trial and error methods... What I want to do I need to write a C++ CLI…
Sorkfa
  • 629
  • 7
  • 23
2
votes
1 answer

libz dylib with static link not support iOS 7

Details in my project: Using swift 1 Need support iOS 7 Using ZipArchive Not use cocoapods or something else On my project, i need unzip something. So i'm using ZipArchive, this is dynamic linking. Works on project when i'm not archive(means xcode…
shar0
  • 65
  • 1
  • 6
2
votes
2 answers

Compressing small piece of data

I have a buffer of let's say 4KB, containing data in JSON-like format. I need to add significantly more information (up to let's say 3x more) to it, but I have to fit in this small chunk of memory. I was thinking about using libZ to compress text,…
k_wisniewski
  • 2,439
  • 3
  • 24
  • 31
1
vote
0 answers

How to add dependencies between ExternalProjects in CMake?

I want to build a library libpng from source which requires libz which in turn I also want to build from source. I have one CMakeLists.txt file so far and the part that defines the build steps for both libraries looks like this: if(NOT EXISTS…
Christian Vorhemus
  • 2,396
  • 1
  • 17
  • 29
1
2 3