cpp-io2d / P0267_RefImpl

Reference Implementations of P0267, the proposed 2D graphics API for ISO C++
Other
313 stars 115 forks source link

Build Error: "Skipping maps since Boost was not found" and CMake Error: {..}used in this project, but they are set to NOTFOUND. #130

Open refactormyself opened 4 years ago

refactormyself commented 4 years ago

Hello,

Please, why is there no mention of Boost dependency in the documentation!

I have Boost installed and I have tested it with a simple program that uses boost::array and it's fine.

My environment: CentOS 8, 64-bit, Cmake 3.11.4, Boost 1.66

I am getting this error when I trying to build as described in the documentation. My Ubuntu VM is also giving the same issue.

$ cmake --config Debug "-DCMAKE_BUILD_TYPE=Debug" .. results in this:

-- The CXX compiler identification is GNU 8.3.1
-- 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
Default IO2D backend was not specified, choosing automatically...
Found Linux, using CAIRO_XLIB.
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.4.2") 
-- Found Cairo: /usr/include/cairo (found version "1.15.12") 
-- Checking for module 'GraphicsMagick'
--   Found GraphicsMagick, version 1.3.34
-- Found GraphicsMagick: /usr/include/GraphicsMagick  
-- The C compiler identification is GNU 8.3.1
-- 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
Skipping the Maps example since Boost was 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:
JPEG_LIB
    linked by target "io2d_cairo_xlib" in directory /home/saheed/DEV/Udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib
LZMA_LIB
    linked by target "io2d_cairo_xlib" in directory /home/saheed/DEV/Udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib
TIFF_LIB
    linked by target "io2d_cairo_xlib" in directory /home/saheed/DEV/Udacity/P0267_RefImpl/P0267_RefImpl/P0267_RefImpl/cairo/xlib

-- Configuring incomplete, errors occurred!
See also "/home/saheed/DEV/Udacity/P0267_RefImpl/Debug/CMakeFiles/CMakeOutput.log".
GowthamRam96 commented 2 years ago

image Can anyone help me on fixing this!?