<div dir="ltr"><div>Hello</div>
<div> </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> </div>
<div>I use:</div>
<div>Visual C++ 9 2008 </div>
<div>CMake 2.2.6</div>
<div>FLTK 1.1.8</div>
<div> </div>
<div>I put Gl.h and glu.h in E:\Program Files\Microsoft Visual Studio 9.0\VC\include\GL</div>
<div> </div>
<div>FLTK CMakelists.txt has this paragraph:</div>
<div> </div>
<div>INCLUDE(CheckIncludeFiles) <-------------- 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>
CHECK_INCLUDE_FILES("${PROJECT_INCLUDES};${FILE}" ${VARIABLE})<br> IF(${VARIABLE})<br> SET(PROJECT_INCLUDES ${PROJECT_INCLUDES} ${FILE})<br> ENDIF(${VARIABLE})<br>ENDMACRO(CHECK_INCLUDE_FILE_CONCAT)<br></div>
<div>CHECK_INCLUDE_FILE_CONCAT("GL/glu.h" HAVE_GL_GLU_H) <--------- Looking for GL/glu.h<br></div>
<div>CHECK_INCLUDE_FILE_CONCAT("OpenGL/glu.h" HAVE_OPENGL_GLU_H)<br>CHECK_INCLUDE_FILE_CONCAT("dirent.h" HAVE_DIRENT_H)<br>CHECK_INCLUDE_FILE_CONCAT("stdio.h" HAVE_STDIO_H)<br>
CHECK_INCLUDE_FILE_CONCAT("strings.h" HAVE_STRINGS_H)<br>CHECK_INCLUDE_FILE_CONCAT("sys/dir.h" HAVE_SYS_DIR_H)<br>CHECK_INCLUDE_FILE_CONCAT("sys/ndir.h" HAVE_SYS_NDIR_H)<br>CHECK_INCLUDE_FILE_CONCAT("sys/select.h" HAVE_SYS_SELECT_H)<br>
CHECK_INCLUDE_FILE_CONCAT("sys/stdtypes.h" HAVE_SYS_STDTYPES_H)<br>CHECK_INCLUDE_FILE("pthread.h" CMAKE_HAVE_PTHREAD_H)</div>
<div> </div>
<div>And here is an excerpt from CMakeCache.txt</div>
<div> </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= <---------------------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> </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> </div>
<div>Does CMAke have a default search path that I have to set? Visual studio is not in Windows environment PATH.</div>
<div> </div>
<div>Marianne B. Wiese<br>Reventlowsgade 30<br>1651 København V<br><br>+45 33 22 69 18<br></div></div>