<div dir="ltr"><div>Hello</div>
<div>&nbsp;</div>
<div>I am trying to build FLTK in order to build the Orfeo Toolbox later.</div>
<div>Apparently CMake cannot find the headers for openGL and/or GLU</div>
<div>&nbsp;</div>
<div>I use:</div>
<div>Visual C++ 9 2008 </div>
<div>CMake 2.2.6</div>
<div>FLTK 1.1.8</div>
<div>&nbsp;</div>
<div>I put Gl.h and glu.h in E:\Program Files\Microsoft Visual Studio 9.0\VC\include\GL</div>
<div>&nbsp;</div>
<div>FLTK&nbsp;CMakelists.txt has&nbsp;this paragraph:</div>
<div>&nbsp;</div>
<div>INCLUDE(CheckIncludeFiles)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;-------------- Remark: CheckIncludeFiles.cmake does not exist<br># Check if header file exists and add it to the list.<br>MACRO(CHECK_INCLUDE_FILE_CONCAT FILE VARIABLE)<br>
&nbsp; CHECK_INCLUDE_FILES(&quot;${PROJECT_INCLUDES};${FILE}&quot; ${VARIABLE})<br>&nbsp; IF(${VARIABLE})<br>&nbsp;&nbsp;&nbsp; SET(PROJECT_INCLUDES ${PROJECT_INCLUDES} ${FILE})<br>&nbsp; ENDIF(${VARIABLE})<br>ENDMACRO(CHECK_INCLUDE_FILE_CONCAT)<br></div>

<div>CHECK_INCLUDE_FILE_CONCAT(&quot;GL/glu.h&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HAVE_GL_GLU_H)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;--------- Looking for GL/glu.h<br></div>
<div>CHECK_INCLUDE_FILE_CONCAT(&quot;OpenGL/glu.h&quot;&nbsp;&nbsp; HAVE_OPENGL_GLU_H)<br>CHECK_INCLUDE_FILE_CONCAT(&quot;dirent.h&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HAVE_DIRENT_H)<br>CHECK_INCLUDE_FILE_CONCAT(&quot;stdio.h&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HAVE_STDIO_H)<br>
CHECK_INCLUDE_FILE_CONCAT(&quot;strings.h&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HAVE_STRINGS_H)<br>CHECK_INCLUDE_FILE_CONCAT(&quot;sys/dir.h&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HAVE_SYS_DIR_H)<br>CHECK_INCLUDE_FILE_CONCAT(&quot;sys/ndir.h&quot;&nbsp;&nbsp;&nbsp;&nbsp; HAVE_SYS_NDIR_H)<br>CHECK_INCLUDE_FILE_CONCAT(&quot;sys/select.h&quot;&nbsp;&nbsp; HAVE_SYS_SELECT_H)<br>
CHECK_INCLUDE_FILE_CONCAT(&quot;sys/stdtypes.h&quot; HAVE_SYS_STDTYPES_H)<br>CHECK_INCLUDE_FILE(&quot;pthread.h&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CMAKE_HAVE_PTHREAD_H)</div>
<div>&nbsp;</div>
<div>And here is an excerpt from CMakeCache.txt</div>
<div>&nbsp;</div>
<div>//What is the target build tool cmake is generating for.<br>CMAKE_BUILD_TOOL:INTERNAL=E:/PROGRA~1/MICROS~1.0/Common7/IDE/VCExpress.exe<br>.....</div>
<div>//Have includes HAVE_DIRENT_H<br>HAVE_DIRENT_H:INTERNAL=<br>//Have includes HAVE_GL_GLU_H<br>HAVE_GL_GLU_H:INTERNAL=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;---------------------GL/glu.h not found.<br>//Have includes HAVE_OPENGL_GLU_H<br>
HAVE_OPENGL_GLU_H:INTERNAL=<br>.......</div>
<div>//Have include HAVE_STDIO_H<br>HAVE_STDIO_H:INTERNAL=1<br>//Have symbol int strcasecmp()<br>HAVE_STRCASECMP:INTERNAL=1<br>//Have includes HAVE_STRINGS_H<br>HAVE_STRINGS_H:INTERNAL=<br>...</div>
<div>//Have includes HAVE_SYS_DIR_H<br>HAVE_SYS_DIR_H:INTERNAL=<br>//Have includes HAVE_SYS_NDIR_H<br>HAVE_SYS_NDIR_H:INTERNAL=<br>//Have includes HAVE_SYS_SELECT_H<br>HAVE_SYS_SELECT_H:INTERNAL=<br>//Have includes HAVE_SYS_STDTYPES_H<br>
HAVE_SYS_STDTYPES_H:INTERNAL=<br>//Have symbol vsnprintf<br>HAVE_VSNPRINTF:INTERNAL=1<br></div>
<div>&nbsp;</div>
<div>I would expect cmake to be smart enough to find the glu header file, since it finds the VCExpress.exe.</div>
<div>I have a Visual Studio Trial version in the same dirctory E:\Program Files\Microsoft Visual Studio 9.0 though.</div>
<div>&nbsp;</div>
<div>Does CMAke have a default search path that I have to set?&nbsp;Visual studio is not in&nbsp;Windows environment PATH.</div>
<div>&nbsp;</div>
<div>Marianne B. Wiese<br>Reventlowsgade 30<br>1651 København V<br><br>+45 33 22 69 18<br></div></div>