Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>It doesn't seem like the find png has PNG_ROOT variable, as is the case with BOOST_ROOT. I suspect that this is the case with the zlib library. You can check in your modules directory by looking for the find_png module and find_zlib module.</p> <p>I would rewrite these modules and add them to your cmake configure directory. The re-written version should look like:</p> <pre><code># This module defines # PNG_INCLUDE_DIR, where to find png.h, etc. # PNG_FOUND, If false, do not try to use PNG. # also defined, but not for general use are # PNG_LIBRARY, where to find the PNG library. FIND_PATH( PNG_INCLUDE_DIR png.h PATHS ${PNG_ROOT} PATH_SUFFIXES include include/libpng NO_DEFAULT_PATH ) FIND_PATH( PNG_INCLUDE_DIR png.h PATHS ${PNG_ROOT} PATH_SUFFIXES include include/libpng ) SET(PNG_NAMES ${PNG_NAMES} png libpng png12 libpng12) FIND_LIBRARY( PNG_LIBRARY NAMES ${PNG_NAMES} PATHS ${PNG_ROOT} PATH_SUFFIXES /lib NO_DEFAULT_PATHS ) FIND_LIBRARY( PNG_LIBRARY NAMES ${PNG_NAMES} PATHS ${PNG_ROOT} PATH_SUFFIXES /lib ) # handle the QUIETLY and REQUIRED arguments and set PNG_FOUND to TRUE if # all listed variables are TRUE INCLUDE(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(PNG DEFAULT_MSG PNG_LIBRARY PNG_INCLUDE_DIR) </code></pre> <p>Note that I'm adding the find_ commands twice. The first time skips the default directories. The second one does not skip the default directories. If the first search succeeds the second one is not done. The second search will know that the first one suceeded if the PNG_INCLUDE_DIR or PNG_LIBRARY is defined.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload