[Insight-users] glu32.lib opengl32.lib

Chunyan Jiang chunyan.jiang at gmail.com
Mon Dec 26 04:05:40 EST 2005


Hi Popa,
In my CMakeLists.txt, I set fltk as:

FIND_PACKAGE(FLTK)
IF(FLTK_FOUND)
      INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})
ENDIF(FLTK_FOUND)

But the problem is not solved. My question is how to add glu32.lib and
opengl32.lib to my dsw.

Thank you!
Chunyan

On 12/26/05, Popa Teo <popateodoru at yahoo.com> wrote:
>
> Hi,
> You didn't link fltk library.
>
> Include fltk in your cmakelist.txt
>
> *Chunyan Jiang <chunyan.jiang at gmail.com>* 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
>
>
>
>
> ------------------------------
> Yahoo! Shopping
> Find Great Deals on Holiday Gifts at Yahoo! Shopping<http://us.rd.yahoo.com/mail_us/footer/shopping/*http://shopping.yahoo.com/;_ylc=X3oDMTE2bzVzaHJtBF9TAzk1OTQ5NjM2BHNlYwNtYWlsdGFnBHNsawNob2xpZGF5LTA1+%0A>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20051226/b34799f3/attachment.htm


More information about the Insight-users mailing list