Comments (9)
as a (temporary?) workaround i changed my local CMakeLists.txt
to find_package(ZLIB 1.2.3 REQUIRED)
and cmake and make gave me a binary
from afsctool.
from afsctool.
Brew does provide a newer zlib, but cmake doesn't find it? I've not used cmake much, sorry
from afsctool.
from afsctool.
brew says
MacBookPro-Matt:~ matt$ brew info zlib
zlib: stable 1.2.11 (bottled) [keg-only]
General-purpose lossless data-compression library
https://zlib.net/
/usr/local/Cellar/zlib/1.2.11 (12 files, 373.4KB)
Poured from bottle on 2018-01-22 at 14:44:41
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/zlib.rb
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/zlib/lib
CPPFLAGS: -I/usr/local/opt/zlib/include
For pkg-config to find this software you may need to set:
PKG_CONFIG_PATH: /usr/local/opt/zlib/lib/pkgconfig
I've tried:
cmake -DZLIB_ROOT=/usr/local/opt/zlib/ .
cmake -DZLIB_ROOT=/usr/local/Cellar/zlib/1.2.11/ .
but no joy :( it still only finds system zlib 1.2.3
from afsctool.
OK, I got it!
cmake -DZLIB_INCLUDE_DIR=/usr/local/opt/zlib/ .
or
cmake -DZLIB_INCLUDE_DIR=/usr/local/Cellar/zlib/1.2.11/ .
from afsctool.
from afsctool.
I agree!
from afsctool.
Hi, this is how it worked for me.
I think adding export
to PKG_CONFIG_PATH=/usr/local/opt/zlib/lib/pkgconfig
was the solution.
brew install google-sparsehash zlib cmake pkgconfig
cd ~/some/random/dir/afsc
git clone git://github.com/RJVB/afsctool
mkdir afsctool/build
cd afsctool/build
export PKG_CONFIG_PATH=/usr/local/opt/zlib/lib/pkgconfig
cmake -Wno-dev ..
make
./afsctool
from afsctool.
Related Issues (20)
- Kernel panic on huge files? HOT 10
- "File is already HFS+/APFS compressed." HOT 6
- Compile errors - any ideas? HOT 20
- Cannot compress in Big Sur HOT 1
- Building on Apple M1 HOT 5
- Is this afsctool the clear successor to the original? Should the homebrew afsctool formula point here instead? HOT 4
- Does your afsctool support APFS? HOT 2
- Unable to build LZVN on apple m1 HOT 15
- building for macOS-x86_64 but attempting to link with file built for macOS-arm64 HOT 8
- About maintenance of the fork HOT 3
- Is this identical to 'brew install afsctool' or is that the original version? HOT 4
- Failed to build on M1 - Monterey 12.0.1 with Xcode 13.1 HOT 11
- Process stuck waiting HOT 12
- Are we ready for a new release? HOT 3
- Unable to build when the path to Xcode contains spaces HOT 3
- Build errors with GCC 5 HOT 9
- Recovering missing/deleted files HOT 4
- Time Machine risks? HOT 3
- Incorrect license HOT 4
- -t and -i options usage HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afsctool.