[cmake]glu32.lib opengl32.lib

Chunyan Jiang chunyan.jiang at gmail.com
Sun Dec 25 09:41:31 EST 2005


Dear cmake users,
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.

Could some one tell me how to solve it?

Thanks a lot!

Chunyan


More information about the CMake mailing list