<div>Dear Robert,</div>
<div>Great! It works!</div>
<div>Thank you very much!</div>
<div> </div>
<div>Chunyan<br><br> </div>
<div><span class="gmail_quote">On 12/26/05, <b class="gmail_sendername">Robert Martí Marly</b> <<a href="mailto:marly@silver.udg.es">marly@silver.udg.es</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Chunyan,<br><br>In my project I add the following in the CMakeLists.<br><br>FIND_PACKAGE (OPENGL)<br>IF ( OPENGL_FOUND)
<br> INCLUDE_DIRECTORIES( ${OPENGL_INCLUDE_DIR} )<br>ENDIF( OPENGL_FOUND)<br>TARGET_LINK_LIBRARIES(your_target ${OPENGL_LIBRARIES} ITKCommon ITKIO)<br><br>Hope that helps,<br><br>Robert.<br><br>Chunyan Jiang wrote:<br>
<br>>Dear all,<br>>I write my CMakeLists.txt to build my project with VC++6 under windowXP<br>><br>>There are some link errors,<br>>fltkgld.lib(gl_start.obj) : error LNK2001: unresolved external symbol<br>>__imp__glDisable@4
<br>>fltkgld.lib(gl_start.obj) : error LNK2001: unresolved external symbol<br>>__imp__glEnable@4<br>><br>>I searched on internet, these errors might caused by opengl library<br>>link problem.<br>><br>>I find that in my project work space in visual studio 6,
<br>>Manu/Project/Settings.../MyProject Link page/Object Library modules,<br>>there is no glu32.lib, opengl32.lib, and so on.<br>><br>>Then I add<br>># System libraries<br>>SET(MyProject_SYSTEM_LIBS<br>> ${OPENGL_LIBRARIES}
<br>> ${OPENGL_glu_LIBRARY}<br>> ${SYSTEM_LIBS}<br>>)<br>><br>>To my CMakeLists.txt, and build again.<br>>But the problem is still unsolved. If I add these two lib to<br>>Project/Settings.../Link page/Object library modules, the link errors
<br>>are gone. But if I configer the project in CMake again, the two .lib<br>>in setting is not maintained.<br>><br>><br>>Could some one tell me how to solve it?<br>><br>>Thanks a lot!<br>><br>>Chunyan
<br>>_______________________________________________<br>>Insight-users mailing list<br>><a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>><a href="http://www.itk.org/mailman/listinfo/insight-users">
http://www.itk.org/mailman/listinfo/insight-users</a><br>><br>><br>><br>><br>-<br><br>Dr. Robert Martí Marly<br><br>Computer Vision and Robotics Group <a href="http://vicorob.udg.es/">http://vicorob.udg.es/
</a><br>University of Girona<br><br><br></blockquote></div><br>