Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snappy library not found. #12

Open
deragon opened this issue Jun 14, 2016 · 5 comments
Open

snappy library not found. #12

deragon opened this issue Jun 14, 2016 · 5 comments

Comments

@deragon
Copy link

deragon commented Jun 14, 2016

Attempting to compile under Cygwin, I get the following error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
SNAPPY_LIBRARIES (ADVANCED)
    linked by target "avro-shared" in directory /home/<usernaeme>/json2avro/avro-c/src
    linked by target "avro-static" in directory /home/<usernaeme>/json2avro/avro-c/src

This contraticts the text found under json2avro/avro-c/INSTALL:

Avro uses CMake [1] as its build manager.  You must have this installed,
along with a C compiler (such as gcc) to build the library.

Avro doesn't depend on any other libraries, but you need asciidoc [2]
and source-highlight [3] installed to build Avro's documentation.  The
build scripts will automatically detect whether these tools are
installed, and will skip the documentation if they're not.

Under Cygwin, I could not find any library with "snappy" in the name. Not sure what this library is about. If the dependency can become optional, the better. Else, please document the dependency in json2avro/avro-c/INSTALL.

@keerthivasan-r
Copy link

keerthivasan-r commented Mar 28, 2018

I have the same issue in my machine as well. Were you able to solve it?

@prajal55
Copy link

brew install snappy (macos)

However, it was still not able to reference snappy-c.h file, which I manually added in src. After that the make was successful.

@rajbhino
Copy link

rajbhino commented Jun 1, 2021

Not able to make the application... due to json2avro/avro-c/src/codec.c:20:10: fatal error: 'snappy-c.h' file not found. Installed snappy using brew. Any other option other than manually placing the file inside source folder?

@grisha
Copy link
Owner

grisha commented Jun 1, 2021

You're probably missing a dev package, I'm not familiar with brew, but on Linux distros it would be called something like snappy-dev or snappy-devel and would have the headers necessary for compilation included.

@buzzm
Copy link

buzzm commented Feb 4, 2022

brew install snappy
Then:

cd avro-c/src
ln -s /usr/local/Cellar/snappy/1.1.9/include/snappy-c.h .
cd ../..
make

Works.

However, it was still not able to reference snappy-c.h file, which I manually added in src. After that the make was successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants