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