[Insight-users] glu32.lib opengl32.lib

Chunyan Jiang chunyan.jiang at gmail.com
Mon Dec 26 04:32:47 EST 2005


Dear Robert,
Great! It works!
Thank you very much!

Chunyan


On 12/26/05, Robert Martí Marly <marly at silver.udg.es> wrote:
>
> Chunyan,
>
> In my project I add the following in the CMakeLists.
>
> FIND_PACKAGE (OPENGL)
> IF ( OPENGL_FOUND)
>        INCLUDE_DIRECTORIES( ${OPENGL_INCLUDE_DIR} )
> ENDIF( OPENGL_FOUND)
> TARGET_LINK_LIBRARIES(your_target ${OPENGL_LIBRARIES} ITKCommon ITKIO)
>
> Hope that helps,
>
> Robert.
>
> Chunyan Jiang wrote:
>
> >Dear all,
> >I write my CMakeLists.txt to build my project with VC++6 under windowXP
> >
> >There are some link errors,
> >fltkgld.lib(gl_start.obj) : error LNK2001: unresolved external symbol
> >__imp__glDisable at 4
> >fltkgld.lib(gl_start.obj) : error LNK2001: unresolved external symbol
> >__imp__glEnable at 4
> >
> >I searched on internet, these errors might caused by opengl library
> >link problem.
> >
> >I find that in my project work space in visual studio 6,
> >Manu/Project/Settings.../MyProject Link page/Object Library modules,
> >there is no glu32.lib, opengl32.lib, and so on.
> >
> >Then I add
> ># System libraries
> >SET(MyProject_SYSTEM_LIBS
> > ${OPENGL_LIBRARIES}
> > ${OPENGL_glu_LIBRARY}
> > ${SYSTEM_LIBS}
> >)
> >
> >To my CMakeLists.txt, and build again.
> >But the problem is still unsolved.  If I add these two lib to
> >Project/Settings.../Link page/Object library modules, the link errors
> >are gone. But if I configer the project in CMake again, the two .lib
> >in setting is not maintained.
> >
> >
> >Could some one tell me how to solve it?
> >
> >Thanks a lot!
> >
> >Chunyan
> >_______________________________________________
> >Insight-users mailing list
> >Insight-users at itk.org
> >http://www.itk.org/mailman/listinfo/insight-users
> >
> >
> >
> >
> -
>
> Dr. Robert Martí Marly
>
> Computer Vision and Robotics Group        http://vicorob.udg.es/
> University of Girona
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20051226/52bbbbe4/attachment.html


More information about the Insight-users mailing list