Cannot Build on Ubuntu 20.04.2
Not sure if this is ill-directed here but I didn't know whom to ask this directly.. I get errors while building peary with CMake following the installation manual text. Here is my terminal output:
> jboell@homepc1:~/apps/peary-master/build$ cmake -DCMAKE_INSTALL_PREFIX=../install/ \
-DCMAKE_BUILD_TYPE=DEBUG \
-DBUILD_CLICpix2=OFF ..
> -- Source tarball build - no repository present.
> -- Building Peary version v0.9.14.
> -- Building "DEBUG"
> -- The CXX compiler identification is GNU 9.3.0
> -- 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
> -- Performing Test CXX_FLAG_WORKS__Wall
> -- Performing Test CXX_FLAG_WORKS__Wall - Success
> -- Performing Test CXX_FLAG_WORKS__Wextra
> -- Performing Test CXX_FLAG_WORKS__Wextra - Success
> -- Performing Test CXX_FLAG_WORKS__Wcast_align
> -- Performing Test CXX_FLAG_WORKS__Wcast_align - Success
> -- Performing Test CXX_FLAG_WORKS__Wcast_qual
> -- Performing Test CXX_FLAG_WORKS__Wcast_qual - Success
> -- Performing Test CXX_FLAG_WORKS__Wconversion
> -- Performing Test CXX_FLAG_WORKS__Wconversion - Success
> -- Performing Test CXX_FLAG_WORKS__Wuseless_cast
> -- Performing Test CXX_FLAG_WORKS__Wuseless_cast - Success
> -- Performing Test CXX_FLAG_WORKS__Wctor_dtor_privacy
> -- Performing Test CXX_FLAG_WORKS__Wctor_dtor_privacy - Success
> -- Performing Test CXX_FLAG_WORKS__Wzero_as_null_pointer_constant
> -- Performing Test CXX_FLAG_WORKS__Wzero_as_null_pointer_constant - Success
> -- Performing Test CXX_FLAG_WORKS__Wdisabled_optimization
> -- Performing Test CXX_FLAG_WORKS__Wdisabled_optimization - Success
> -- Performing Test CXX_FLAG_WORKS__WformatE2
> -- Performing Test CXX_FLAG_WORKS__WformatE2 - Success
> -- Performing Test CXX_FLAG_WORKS__Winit_self
> -- Performing Test CXX_FLAG_WORKS__Winit_self - Success
> -- Performing Test CXX_FLAG_WORKS__Wlogical_op
> -- Performing Test CXX_FLAG_WORKS__Wlogical_op - Success
> -- Performing Test CXX_FLAG_WORKS__Wmissing_declarations
> -- Performing Test CXX_FLAG_WORKS__Wmissing_declarations - Success
> -- Performing Test CXX_FLAG_WORKS__Wmissing_include_dirs
> -- Performing Test CXX_FLAG_WORKS__Wmissing_include_dirs - Success
> -- Performing Test CXX_FLAG_WORKS__Wnoexcept
> -- Performing Test CXX_FLAG_WORKS__Wnoexcept - Success
> -- Performing Test CXX_FLAG_WORKS__Wold_style_cast
> -- Performing Test CXX_FLAG_WORKS__Wold_style_cast - Success
> -- Performing Test CXX_FLAG_WORKS__Wredundant_decls
> -- Performing Test CXX_FLAG_WORKS__Wredundant_decls - Success
> -- Performing Test CXX_FLAG_WORKS__Wsign_conversion
> -- Performing Test CXX_FLAG_WORKS__Wsign_conversion - Success
> -- Performing Test CXX_FLAG_WORKS__Wsign_promo
> -- Performing Test CXX_FLAG_WORKS__Wsign_promo - Success
> -- Performing Test CXX_FLAG_WORKS__Wstrict_null_sentinel
> -- Performing Test CXX_FLAG_WORKS__Wstrict_null_sentinel - Success
> -- Performing Test CXX_FLAG_WORKS__Wswitch_default
> -- Performing Test CXX_FLAG_WORKS__Wswitch_default - Success
> -- Performing Test CXX_FLAG_WORKS__Wundef
> -- Performing Test CXX_FLAG_WORKS__Wundef - Success
> -- Performing Test CXX_FLAG_WORKS__Wshadow
> -- Performing Test CXX_FLAG_WORKS__Wshadow - Success
> -- Performing Test CXX_FLAG_WORKS__Wformat_security
> -- Performing Test CXX_FLAG_WORKS__Wformat_security - Success
> -- Performing Test CXX_FLAG_WORKS__Wdeprecated
> -- Performing Test CXX_FLAG_WORKS__Wdeprecated - Success
> -- Performing Test CXX_FLAG_WORKS__fdiagnostics_colorEauto
> -- Performing Test CXX_FLAG_WORKS__fdiagnostics_colorEauto - Success
> -- Performing Test CXX_FLAG_WORKS__Wheader_hygiene
> -- Performing Test CXX_FLAG_WORKS__Wheader_hygiene - Failed
> -- NOT adding -Wheader-hygiene to CXX_FLAGS - unsupported flag
> -- Looking for C++ include pthread.h
> -- Looking for C++ include pthread.h - found
> -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
> -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
> -- Looking for pthread_create in pthreads
> -- Looking for pthread_create in pthreads - not found
> -- Looking for pthread_create in pthread
> -- Looking for pthread_create in pthread - found
> -- Found Threads: TRUE
> -- Could NOT find clang-format
> -- Could NOT check for clang-tidy, wrong compiler: GNU
> -- Caribou Interface I2C: ON
> -- Caribou Interface SPI CPx2: ON
> -- Caribou Interface SPI: ON
> -- Caribou Interface IP/Socket: ON
> -- Caribou Interface Loopback: ON
> -- Caribou Interface MEM: ON
> -- Caribou Interface IIO: ON
> -- Caribou Interface SPI bus: ON
> -- Caribou Interface Media: ON
> -- Building device ON - AD9249
> -- Building device ON - ATLASPix
> -- Building device ON - C1004
> -- Building device ON - C3PD
> -- Building device ON - CLICTD
> -- Building device OFF - CLICpix2
> -- Building device ON - DSO9254A
> -- Building device ON - ExampleCaribou
> -- Building device ON - FASTPIX
> -- Building device ON - MCP9804
> -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
> CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
> Could NOT find Readline (missing: Readline_INCLUDE_DIR Readline_LIBRARY)
> Call Stack (most recent call first):
> /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
> cmake/FindReadline.cmake:48 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
> exec/CMakeLists.txt:19 (FIND_PACKAGE)
>
>
> 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:
> i2clib
> linked by target "peary" in directory /home/jboell/apps/peary-master/peary
> iiolib
> linked by target "peary" in directory /home/jboell/apps/peary-master/peary
> mediactllib
> linked by target "peary" in directory /home/jboell/apps/peary-master/peary
> v4l2subdevlib
> linked by target "peary" in directory /home/jboell/apps/peary-master/peary
>
> -- Configuring incomplete, errors occurred!
**And accordingly, I cannot execute make **
jboell@homepc1:~/apps/peary-master/build$ make -j2 install make: *** No rule to make target 'install'. Stop.
Maybe this is an issue I have due to CMake or my Ubuntu Distribution? I am lost.. I have included the installation log filesCMakeOutput.log