cpp-io2d / P0267_RefImpl

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

[arch] Failed to build; CMake Error: ...NOTFOUND. #115

Open Horki opened 5 years ago

Horki commented 5 years ago

on arch linux it is failing to build, Linux 5.0.11-arch1-1-ARCH $ cmake --config Debug "-DCMAKE_BUILD_TYPE=Debug" ..

-- The CXX compiler identification is GNU 8.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
Default IO2D backend was not specified, choosing automatically...
Found Linux, using CAIRO_XLIB.
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.6.1") 
-- Found Cairo: /usr/include/cairo (found version "1.16.0") 
-- Checking for module 'GraphicsMagick'
--   Found GraphicsMagick, version 1.3.31
-- Found GraphicsMagick: /usr/include/GraphicsMagick  
-- The C compiler identification is GNU 8.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
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/P0267_RefImpl/P0267_RefImpl/Tests/PNG_INCLUDE_DIR
   used as include directory in directory /home/user/P0267_RefImpl/P0267_RefImpl/Tests

-- Configuring incomplete, errors occurred!
See also "/home/user/P0267_RefImpl/Debug/CMakeFiles/CMakeOutput.log".
ghost commented 5 years ago

It looks like a very old way of doing things in test build file, there should be find_package(png REQUIRED) near the top.

KaushikSamba commented 4 years ago

Hi, did you resolve this?

ywiyogo commented 4 years ago

In my Fedora 31, I solve the issue with these commands sudo mkdir /usr/include/libpng sudo ln -s /usr/include/libpng16/png.h /usr/include/libpng/png.h since the CMAKE script looks for the png.h in libpng, and the folder libpng doesn't exist.