with opengl condition, compilation failedICH
I tried to compile opencv 3.1.0 with OpenGL condition. But it failed;
[...]
CMakeFiles/example_gpu_opengl.dir/opengl.cpp.o: In function draw(void*)':
opengl.cpp:(.text._Z4drawPv+0x21): undefined reference to
glRotated'
CMakeFiles/example_gpu_opengl.dir/opengl.cpp.o: In function main':
opengl.cpp:(.text.startup.main+0x622): undefined reference to
glMatrixMode'
opengl.cpp:(.text.startup.main+0x627): undefined reference to glLoadIdentity'
opengl.cpp:(.text.startup.main+0x64c): undefined reference to
gluPerspective'
opengl.cpp:(.text.startup.main+0x656): undefined reference to glMatrixMode'
opengl.cpp:(.text.startup.main+0x65b): undefined reference to
glLoadIdentity'
opengl.cpp:(.text.startup.main+0x68d): undefined reference to gluLookAt'
opengl.cpp:(.text.startup.main+0x697): undefined reference to
glEnable'
opengl.cpp:(.text.startup.main+0x6b8): undefined reference to glTexParameteri'
opengl.cpp:(.text.startup.main+0x6cc): undefined reference to
glTexEnvi'
opengl.cpp:(.text.startup.main+0x6d6): undefined reference to `glDisable'
collect2: error: ld returned 1 exit status
samples/gpu/CMakeFiles/example_gpu_opengl.dir/build.make:121: recipe for target 'bin/gpu-example-opengl' failed
make[2]: * [bin/gpu-example-opengl] Error 1
Any hint?
Thanks,