Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Horki opened this issue May 15, 2019 · 3 comments · May be fixed by #145
Open

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

Horki opened this issue May 15, 2019 · 3 comments · May be fixed by #145

Comments

@Horki
Copy link

Horki commented May 15, 2019

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
Copy link

ghost commented Jun 28, 2019

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
Copy link

Hi, did you resolve this?

@ywiyogo
Copy link

ywiyogo commented Jan 30, 2020

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.

GregoryLand added a commit to GregoryLand/P0267_RefImpl that referenced this issue Sep 13, 2021
This seems necessary for most versions of linux now.
This should close issue cpp-io2d#115
@GregoryLand GregoryLand linked a pull request Sep 13, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants