Giter Club home page Giter Club logo

Comments (9)

gingerbeardman avatar gingerbeardman commented on July 21, 2024

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.

RJVB avatar RJVB commented on July 21, 2024

from afsctool.

gingerbeardman avatar gingerbeardman commented on July 21, 2024

Brew does provide a newer zlib, but cmake doesn't find it? I've not used cmake much, sorry

from afsctool.

RJVB avatar RJVB commented on July 21, 2024

from afsctool.

gingerbeardman avatar gingerbeardman commented on July 21, 2024

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.

gingerbeardman avatar gingerbeardman commented on July 21, 2024

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.

RJVB avatar RJVB commented on July 21, 2024

from afsctool.

gingerbeardman avatar gingerbeardman commented on July 21, 2024

I agree!

from afsctool.

biziclop avatar biziclop commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.