Gospodin Gyurov created AVRO-2894:
-------------------------------------

             Summary: C++ build fails without Snappy
                 Key: AVRO-2894
                 URL: https://issues.apache.org/jira/browse/AVRO-2894
             Project: Apache Avro
          Issue Type: Bug
          Components: build, c++
    Affects Versions: 1.10.0
         Environment: Ubuntu 20 desktop
            Reporter: Gospodin Gyurov


Trying to build C++ libs with the latest AVRO release. The result of
cmake -G "Unix Makefiles" ..
is this:



-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake 
(found suitable version "1.71.0", minimum required is "1.38") found components: 
filesystem iostreams program_options regex system 
-- Could NOT find Snappy (missing: SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR) 
Disabled snappy codec. libsnappy not found.
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:
/home/user/libraries/avro-src-1.10.0/lang/c++/SNAPPY_INCLUDE_DIR
 used as include directory in directory 
/home/user/libraries/avro-src-1.10.0/lang/c++
 used as include directory in directory 
/home/user/libraries/avro-src-1.10.0/lang/c++

-- Configuring incomplete, errors occurred!

According to README file: "If Snappy is available, it builds support for Snappy 
compression and skips it otherwise", but it seems to not skip it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to