Skip to content

OSX build fails to find png.hpp #10

@flyingclimber

Description

@flyingclimber

Build is failing to find

"png++/png.hpp"
even though it is installed in
/usr/local/Cellar/png++/0.2.10/include/png++/png.hpp

I tried to edit

chrgfx/CMakeLists.txt
to manually add the source dirs but not luck.

The actual build failure is

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++   -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -o CMakeFiles/cmTC_26f9a.dir/PNGPP_H.cpp.o -c /Users/[..]/chrgfx/build/CMakeFiles/CheckIncludeFiles/PNGPP_H.cpp -I /usr/local/Cellar/png++/0.2.10/include/

... fatal error: 'png++/png.hpp' file not found

and compiles fine if I add the two source dirs with "-I"

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++   -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -o /tmp/PNGPP_H.cpp.o -c /Users/[..]/chrgfx/build/CMakeFiles/CheckIncludeFiles/PNGPP_H.cpp -I /usr/local/Cellar/png++/0.2.10/include -I /usr/local/Cellar/libpng/1.6.37/include/

But I don't know how to make CMAKE aware of these.

This seems to only affect OSX. Linux works great. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions