<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>I'm facing some problems with FLTK too.</div><div><br></div><div>On linux, when you build and install FLTK with cmake, there is a file FLTKConfig.cmake installed in directory &lt;FLTK INSTALL PREFIX&gt;/CMake</div><div><br></div><div>When you invoke cmake -D FLTK_DIR=&lt;FLTK_INSTALL PREFIX&gt;/CMake &nbsp;. &nbsp;every thing is found properly. (at least for me).</div><div><br></div><div>What I don't understand is why in the FindFLTK.cmake file</div><div>is there a line that SETS FLTK_INCLUDE_DIR to FLTK_DIR? &nbsp;</div><div>when using the FLTKConfig.cmake file, the proper directory should be ${FLTK_DIR}/../include &nbsp;that's were the include files are installed. (for FLTK 1.3)</div><div><br></div><div><br></div><div><br></div><div>FindFLTK.cmake part</div><div>...</div><div><br></div><div><div>IF(FLTK_BUILT_WITH_CMAKE)</div><div>&nbsp; &nbsp; SET(FLTK_FOUND 1)</div><div>&nbsp; &nbsp; INCLUDE(${FLTK_DIR}/FLTKConfig.cmake)</div><div><br></div><div>&nbsp; &nbsp; # Fluid</div><div>&nbsp; &nbsp; IF(FLUID_COMMAND)</div><div>&nbsp; &nbsp; &nbsp; SET(FLTK_FLUID_EXECUTABLE ${FLUID_COMMAND} CACHE FILEPATH "Fluid executable")</div><div>&nbsp; &nbsp; ELSE(FLUID_COMMAND)&nbsp;</div><div>&nbsp; &nbsp; &nbsp; FIND_PROGRAM(FLTK_FLUID_EXECUTABLE fluid PATHS&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ${FLTK_EXECUTABLE_DIRS}</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ${FLTK_EXECUTABLE_DIRS}/RelWithDebInfo</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ${FLTK_EXECUTABLE_DIRS}/Debug</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ${FLTK_EXECUTABLE_DIRS}/Release</div><div>&nbsp; &nbsp; &nbsp; &nbsp; NO_SYSTEM_PATH)</div><div>&nbsp; &nbsp; ENDIF(FLUID_COMMAND)</div><div>&nbsp; &nbsp; # MARK_AS_ADVANCED(FLTK_FLUID_EXECUTABLE)</div><div><br></div><div>&nbsp; &nbsp; SET(FLTK_INCLUDE_DIR ${FLTK_DIR})</div><div>&nbsp; &nbsp; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^I think this is not correct.</div><div>&nbsp; &nbsp; LINK_DIRECTORIES(${FLTK_LIBRARY_DIRS})</div></div><div><br></div><div>May be someone else can share his thoughts about this subject.</div><div><br></div><div>Kind &nbsp;regards,</div><div>Andre E.</div><div><br></div><div><br></div><div>Le 6 juil. 2013 à 13:49, moon light a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: arial, helvetica, sans-serif; font-size: 12pt; position: static; z-index: auto; "><div>Hi All,</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">I'm facing a problem with FLTK and cmake and i found a previous post discusses the same problem but i'm not fully understand how it was solved. what i'm trying to do is to build itk applications so i have to build itk, vtk and fltk first but during itk applications configuration using cmake it gave me the following error below.&nbsp;</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br></div><div class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:0in;margin-bottom:
.0001pt;line-height:normal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;">ITK VERSION: 4.3.1</span></div>

<div class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:0in;margin-bottom:
.0001pt;line-height:normal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;">VTK VERSION: 5.10.1</span></div>

<div class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; color: rgb(0, 0, 0); font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; background-color: transparent; font-style: normal;"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;;color:red">CMake Error at
CMakeLists.txt:134 (FIND_PACKAGE):</span><span style="font-size:12.0pt;
font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;"></span></div>

<div class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:0in;margin-bottom:
.0001pt;line-height:normal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;;color:red">Could not find a package
configuration file provided by "FLTK" with any of</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-fareast-font-family:
&quot;Times New Roman&quot;"></span></div>

<div class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:0in;margin-bottom:
.0001pt;line-height:normal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;;color:red">the following names:</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-fareast-font-family:
&quot;Times New Roman&quot;"></span></div>

<div class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:0in;margin-bottom:
.0001pt;line-height:normal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;;color:red">FLTKConfig.cmake</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-fareast-font-family:
&quot;Times New Roman&quot;"></span></div>

<div class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:0in;margin-bottom:
.0001pt;line-height:normal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;;color:red">fltk-config.cmake</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-fareast-font-family:
&quot;Times New Roman&quot;"></span></div>

<div class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:0in;margin-bottom:
.0001pt;line-height:normal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;;color:red">Add the installation
prefix of "FLTK" to CMAKE_PREFIX_PATH or set</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-fareast-font-family:
&quot;Times New Roman&quot;"></span></div>

<div class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:0in;margin-bottom:
.0001pt;line-height:normal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;;color:red">"FLTK_DIR" to a
directory containing one of the above files. If "FLTK"</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-fareast-font-family:
&quot;Times New Roman&quot;"></span></div>

<div class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:0in;margin-bottom:
.0001pt;line-height:normal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;;color:red">provides a separate
development package or SDK, be sure it has been</span><span style="font-size:
12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;"></span></div>

<div class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:0in;margin-bottom:
.0001pt;line-height:normal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;;color:red">installed.</span><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;mso-fareast-font-family:
&quot;Times New Roman&quot;"></span></div>

<div class="MsoNormal" style="line-height: normal; color: rgb(0, 0, 0); font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; background-color: transparent; font-style: normal;"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;">Configuring incomplete, errors
occurred!</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">The link to the post is (<a href="http://www.cmake.org/pipermail/cmake/2010-December/041626.html">http://www.cmake.org/pipermail/cmake/2010-December/041626.html</a>), but i want to know in which cmake file and which part in the code should i edit or put the following part.</div><pre>&gt;<i> SET(FLTK_DIR "C:/Program Files/fltk-1.1.9/")
</i>&gt;<i> SET(FLTK_BASE_LIBRARY "C:/Program Files/fltk-1.1.9/lib/")
</i>&gt;<i> SET(FLTK_FORMS_LIBRARY "C:/Program Files/fltk-1.1.9/lib/")
</i>&gt;<i> SET(FLTK_GL_LIBRARY "C:/Program Files/fltk-1.1.9/lib/")
</i>&gt;<i> SET(FLTK_IMAGES_LIBRARY "C:/Program Files/fltk-1.1.9/lib/")
</i>&gt;<i> SET(FLTK_INCLUDE_DIR "C:/Program Files/fltk-1.1.9/include/")
</i>&gt;<i> SET(FLTK_SKIP_FLUID TRUE)
</i>&gt;<i> FIND_PACKAGE(FLTK REQUIRED)<br><br>Looking forward for your replies..<br><br>Mai<br></i></pre><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:AllowPNG/>
 </o:OfficeDocumentSettings>
</xml><![endif]--></div></div></div>--<br><br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></blockquote></div><br></body></html>