<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 <FLTK INSTALL PREFIX>/CMake</div><div><br></div><div>When you invoke cmake -D FLTK_DIR=<FLTK_INSTALL PREFIX>/CMake . 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? </div><div>when using the FLTKConfig.cmake file, the proper directory should be ${FLTK_DIR}/../include 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> SET(FLTK_FOUND 1)</div><div> INCLUDE(${FLTK_DIR}/FLTKConfig.cmake)</div><div><br></div><div> # Fluid</div><div> IF(FLUID_COMMAND)</div><div> SET(FLTK_FLUID_EXECUTABLE ${FLUID_COMMAND} CACHE FILEPATH "Fluid executable")</div><div> ELSE(FLUID_COMMAND) </div><div> FIND_PROGRAM(FLTK_FLUID_EXECUTABLE fluid PATHS </div><div> ${FLTK_EXECUTABLE_DIRS}</div><div> ${FLTK_EXECUTABLE_DIRS}/RelWithDebInfo</div><div> ${FLTK_EXECUTABLE_DIRS}/Debug</div><div> ${FLTK_EXECUTABLE_DIRS}/Release</div><div> NO_SYSTEM_PATH)</div><div> ENDIF(FLUID_COMMAND)</div><div> # MARK_AS_ADVANCED(FLTK_FLUID_EXECUTABLE)</div><div><br></div><div> SET(FLTK_INCLUDE_DIR ${FLTK_DIR})</div><div> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^I think this is not correct.</div><div> 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 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. </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:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman"">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:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman"">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: "Times New Roman","serif"; background-color: transparent; font-style: normal;"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman";color:red">CMake Error at
CMakeLists.txt:134 (FIND_PACKAGE):</span><span style="font-size:12.0pt;
font-family:"Times New Roman","serif";mso-fareast-font-family:"Times New Roman""></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:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman";color:red">Could not find a package
configuration file provided by "FLTK" with any of</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-font-family:
"Times New Roman""></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:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman";color:red">the following names:</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-font-family:
"Times New Roman""></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:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman";color:red">FLTKConfig.cmake</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-font-family:
"Times New Roman""></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:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman";color:red">fltk-config.cmake</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-font-family:
"Times New Roman""></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:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman";color:red">Add the installation
prefix of "FLTK" to CMAKE_PREFIX_PATH or set</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-font-family:
"Times New Roman""></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:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman";color:red">"FLTK_DIR" to a
directory containing one of the above files. If "FLTK"</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-font-family:
"Times New Roman""></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:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman";color:red">provides a separate
development package or SDK, be sure it has been</span><span style="font-size:
12.0pt;font-family:"Times New Roman","serif";mso-fareast-font-family:"Times New Roman""></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:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman";color:red">installed.</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-font-family:
"Times New Roman""></span></div>
<div class="MsoNormal" style="line-height: normal; color: rgb(0, 0, 0); font-size: 12pt; font-family: "Times New Roman","serif"; background-color: transparent; font-style: normal;"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";
mso-fareast-font-family:"Times New Roman"">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>><i> SET(FLTK_DIR "C:/Program Files/fltk-1.1.9/")
</i>><i> SET(FLTK_BASE_LIBRARY "C:/Program Files/fltk-1.1.9/lib/")
</i>><i> SET(FLTK_FORMS_LIBRARY "C:/Program Files/fltk-1.1.9/lib/")
</i>><i> SET(FLTK_GL_LIBRARY "C:/Program Files/fltk-1.1.9/lib/")
</i>><i> SET(FLTK_IMAGES_LIBRARY "C:/Program Files/fltk-1.1.9/lib/")
</i>><i> SET(FLTK_INCLUDE_DIR "C:/Program Files/fltk-1.1.9/include/")
</i>><i> SET(FLTK_SKIP_FLUID TRUE)
</i>><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>