Skip to content

libtiff fails to build when opengl/glut are found  #204

@Erotemic

Description

@Erotemic

Seems related to these errors:

  1. https://bugs.orfeo-toolbox.org/view.php?id=1306
  2. https://ubuntuforums.org/showthread.php?t=1703770

When OPENGL_GLU_FOUND OPENGL_GLU_FOUND and GLUT_FOUND libtiff forces HAVE_OPENGL to be true. This caused me to encounter the error: GLUT_Xmu_LIBRARY NOTFOUND

Ideally, there would be an option to turn opengl off in libtiff itself.

Following the directions in the second link, I was able to continue by installing the packages

sudo apt-get install libxmu-dev libxi-dev

but obviously forcing the user to install packages isn't an ideal fix for a superbuild, so it might be a good idea to incorporate the lines from the first lines that set an initial cache with opengl forced off, set(WITH_OPENGL "FALSE" CACHE BOOL "Initial cache" FORCE) or we can make a patch for libtiff that fixes the issue and might eventually be pushed to the parent repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions