Error while compiling the dependencies required to build fetpapi

Hello @philippeVerney ,
I am building the dependency libraries (/avro-1.10.2)required to build FETPAPI cmake-gui on centos7. I have downloaded
avero from here https://archive.apache.org/dist/avro/avro-1.10.2/cpp/ and
boost from here https://sourceforge.net/projects/boost/files/boost-jam/. After pressing configure button i get following error

CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:1247 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.66.0

  Boost include path: /home/centos/fesEnv/boost_1_66_0

  Could not find the following Boost libraries:

          boost_filesystem
          boost_iostreams
          boost_program_options
          boost_regex
          boost_system

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  CMakeLists.txt:72 (find_package)


CMake Warning at CMakeLists.txt:75 (find_package):
  By not providing "FindSnappy.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Snappy", but
  CMake did not find one.

  Could not find a package configuration file provided by "Snappy" with any
  of the following names:

    SnappyConfig.cmake
    snappy-config.cmake

  Add the installation prefix of "Snappy" to CMAKE_PREFIX_PATH or set
  "Snappy_DIR" to a directory containing one of the above files.  If "Snappy"
  provides a separate development package or SDK, be sure it has been
  installed.


Disabled snappy codec. libsnappy not found.
Configuring incomplete, errors occurred!
See also "/opt/ETP3/avro-cpp-1.10.2/build/CMakeFiles/CMakeOutput.log".

Also i have installed snappy but cmake-gui did not pick it.


Can you let where could be the issue…?

Thanks,
Husnain

Hi @Husnain,

You need to have the binary versions of avro and boost (i.e. the *.so). I am not sure that your downloads are some binary ones but more likely some source ones which you have first to build before to use them.

About boost : I recommend you to use the system one if you have admin rights on your centos7 using yum. This is what we do for our ubuntu CI line 436 of fetpapi/azure-pipelines.yml at main · F2I-Consulting/fetpapi · GitHub
About avro : you have to build it since I don’t know some avaialble binaries. This is what we do for our ubuntu CI starting line 439 of fetpapi/azure-pipelines.yml at main · F2I-Consulting/fetpapi · GitHub We finally use the avro built resources in our FETPAPI CMake args as in lines 474 and 475.

I just understand that you are actually trying to build AVRO which is the right thing to do!

So your issue looks that cmake does not find your boost. I think you did not install binaries of boost but only the boost sources.
You need the boost binaries. First check if you have the *.so of boost. If not, you need either to build boost first (follow the boost doc) or to install boost using yum.