Hi all,

I'm trying to build OSG using cygwin and am facing the following error.
OSG Version -2.6 tried previous versions too and getting the same error.
cmake -2.6.2
cygwin - 1.5.25-15
OS : Windows xp 64 bit

Linking CXX shared library ../../bin/cygosgViewer-2.6.0.dll
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x565): undefined reference to `_wglMakeCur
r...@8'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x671): undefined reference to `_wglMakeCur
r...@8'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x682): undefined reference to `_wglDeleteC
ont...@4'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x777): undefined reference to `_wglMakeCur
r...@8'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x883): undefined reference to `_wglMakeCur
r...@8'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x894): undefined reference to `_wglDeleteC
ont...@4'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x98b): undefined reference to `_wglGetCurr
entcont...@0'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x9ed): undefined reference to `_wglMakeCur
r...@8'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x1e9c): undefined reference to `_wglCreate
cont...@4'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x4b03): undefined reference to `_wglCreate
cont...@4'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x4d6f): undefined reference to `_wglDelete
cont...@4'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x4e64): undefined reference to `_wglDelete
cont...@4'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x5b68): undefined reference to `_wglGetPro
caddr...@4'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x6a07): undefined reference to `_wglCreate
cont...@4'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x7781): undefined reference to `_wglShareL
i...@8'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x7d91): undefined reference to `_wglMakeCu
rr...@8'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x7da5): undefined reference to `_wglGetCur
ren...@0'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x7daf): undefined reference to `_wglGetCur
rentcont...@0'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x7f5f): undefined reference to `_wglGetCur
ren...@0'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x7f6e): undefined reference to `_wglGetCur
rentcont...@0'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x7f9c): undefined reference to `_wglMakeCu
rr...@8'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x811f): undefined reference to `_wglMakeCu
rr...@8'
CMakeFiles/osgViewer.dir/GraphicsWindowWin32.o:GraphicsWindowWin32.cpp:(.text+0x8345): undefined reference to `_wglMakeCu
rr...@8'
CMakeFiles/osgViewer.dir/PixelBufferWin32.o:PixelBufferWin32.cpp:(.text+0xd2b): undefined reference to `_wglCreateContext
@4'
CMakeFiles/osgViewer.dir/PixelBufferWin32.o:PixelBufferWin32.cpp:(.text+0x130f): undefined reference to `_wglMakeCurrent@
8'
CMakeFiles/osgViewer.dir/PixelBufferWin32.o:PixelBufferWin32.cpp:(.text+0x1453): undefined reference to `_wglGetProcAddre
s...@4'
CMakeFiles/osgViewer.dir/PixelBufferWin32.o:PixelBufferWin32.cpp:(.text+0x146e): undefined reference to `_wglGetProcAddre
s...@4'
CMakeFiles/osgViewer.dir/PixelBufferWin32.o:PixelBufferWin32.cpp:(.text+0x1489): undefined reference to `_wglGetProcAddre
s...@4'
CMakeFiles/osgViewer.dir/PixelBufferWin32.o:PixelBufferWin32.cpp:(.text+0x14a4): undefined reference to `_wglGetProcAddre
s...@4'
CMakeFiles/osgViewer.dir/PixelBufferWin32.o:PixelBufferWin32.cpp:(.text+0x14bf): undefined reference to `_wglGetProcAddre
s...@4'
CMakeFiles/osgViewer.dir/PixelBufferWin32.o:PixelBufferWin32.cpp:(.text+0x14da): more undefined references to `_wglGetPro
caddr...@4' follow
CMakeFiles/osgViewer.dir/PixelBufferWin32.o:PixelBufferWin32.cpp:(.text+0x189e): undefined reference to `_wglGetCurrentCo
nt...@0'
CMakeFiles/osgViewer.dir/PixelBufferWin32.o:PixelBufferWin32.cpp:(.text+0x2f52): undefined reference to `_wglCreateContex
t...@4'
CMakeFiles/osgViewer.dir/PixelBufferWin32.o:PixelBufferWin32.cpp:(.text+0x35b4): undefined reference to `_wglshareli...@8
'
CMakeFiles/osgViewer.dir/PixelBufferWin32.o:PixelBufferWin32.cpp:(.text+0x3708): undefined reference to `_wglMakeCurrent@
8'
CMakeFiles/osgViewer.dir/PixelBufferWin32.o:PixelBufferWin32.cpp:(.text+0x3719): undefined reference to `_wglDeleteContex
t...@4'
CMakeFiles/osgViewer.dir/PixelBufferWin32.o:PixelBufferWin32.cpp:(.text+0x3a33): undefined reference to `_wglMakeCurrent@
8'
CMakeFiles/osgViewer.dir/PixelBufferWin32.o:PixelBufferWin32.cpp:(.text+0x3dee): undefined reference to `_wglMakeCurrent@
8'
Creating library file: ../../lib/libosgViewer.dll.a
collect2: ld returned 1 exit status
make[2]: *** [bin/cygosgViewer-2.6.0.dll] Error 1
make[1]: *** [src/osgViewer/CMakeFiles/osgViewer.dir/all] Error 2
make: *** [all] Error 2


Is this a known issue? Did I miss any library path?

Thanks
-Om
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to