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

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

Open
Erotemic opened this issue Aug 24, 2017 · 2 comments · May be fixed by #684
Open

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

Erotemic opened this issue Aug 24, 2017 · 2 comments · May be fixed by #684

Comments

@Erotemic
Copy link
Member

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.

@dstoup
Copy link
Collaborator

dstoup commented Aug 25, 2017 via email

@Erotemic
Copy link
Member Author

Its more the GLUT dependency than the OpenGL dependency. Isn't GLUT depricated? I have OpenGL on my system, what I didn't have was libxmu and libxi, which I believe only GLUT cares about. I might be wrong though.

@dstoup dstoup linked a pull request May 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.

2 participants