Error when i "make" opencv2-4-9 in raspberry pi 3 model B v1.2
<p>I want to install opencv2.4.9 on raspberry pi 3 model b v1.2 2015. I follow <a href="http://www.samontab.com/web/2014/06/installing-opencv-2-4-9-in-ubuntu-14-04-lts/" rel="nofollow">this page</a>  to install opencv. when i "make" opencv, i see these errors :</p>

<pre><code>[  1%] Built target opencv_ts_pch_dephelp
[  1%] Built target pch_Generate_opencv_ts
[  1%] Built target opencv_core_pch_dephelp
[  1%] Built target pch_Generate_opencv_core
[  3%] Built target opencv_core
[  3%] Built target opencv_imgproc_pch_dephelp
[  3%] Built target pch_Generate_opencv_imgproc
[  5%] Built target opencv_imgproc
[  6%] Built target opencv_highgui_pch_dephelp
[  6%] Built target pch_Generate_opencv_highgui
[  6%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o
In file included from /usr/include/GL/glx.h:32:0,
                 from /home/nao/Desktop/opencv-2.4.9/modules/highgui/src/window_QT.cpp:59:
/usr/include/GL/gl.h:134:17: error: conflicting declaration ‘typedef double GLdouble’
 typedef double  GLdouble; /* double precision float */
                 ^
In file included from /usr/include/qt4/QtOpenGL/QtOpenGL:5:0,
                 from /home/nao/Desktop/opencv-2.4.9/modules/highgui/src/window_QT.h:46,
                 from /home/nao/Desktop/opencv-2.4.9/modules/highgui/src/window_QT.cpp:47:
/usr/include/qt4/QtOpenGL/qgl.h:85:17: note: previous declaration as ‘typedef GLfloat GLdouble’
 typedef GLfloat GLdouble;
                 ^
In file included from /usr/include/GL/gl.h:2055:0,
                 from /usr/include/GL/glx.h:32,
                 from /home/nao/Desktop/opencv-2.4.9/modules/highgui/src/window_QT.cpp:59:
/usr/include/GL/glext.h:468:19: error: conflicting declaration ‘typedef std::ptrdiff_t GLsizeiptr’
 typedef ptrdiff_t GLsizeiptr;
                   ^
In file included from /usr/include/qt4/QtOpenGL/qgl.h:79:0,
                 from /usr/include/qt4/QtOpenGL/QtOpenGL:5,
                 from /home/nao/Desktop/opencv-2.4.9/modules/highgui/src/window_QT.h:46,
                 from /home/nao/Desktop/opencv-2.4.9/modules/highgui/src/window_QT.cpp:47:
/usr/include/GLES2/gl2.h:69:25: note: previous declaration as ‘typedef khronos_ssize_t GLsizeiptr’
 typedef khronos_ssize_t GLsizeiptr;
                         ^
In file included from /usr/include/GL/gl.h:2055:0,
                 from /usr/include/GL/glx.h:32,
                 from /home/nao/Desktop/opencv-2.4.9/modules/highgui/src/window_QT.cpp:59:
/usr/include/GL/glext.h:469:19: error: conflicting declaration ‘typedef std::ptrdiff_t GLintptr’
 typedef ptrdiff_t GLintptr;
                   ^
In file included from /usr/include/qt4/QtOpenGL/qgl.h:79:0,
                 from /usr/include/qt4/QtOpenGL/QtOpenGL:5,
                 from /home/nao/Desktop/opencv-2.4.9/modules/highgui/src/window_QT.h:46,
                 from /home/nao/Desktop/opencv-2.4.9/modules/highgui/src/window_QT.cpp:47:
/usr/include/GLES2/gl2.h:70:26: note: previous declaration as ‘typedef khronos_intptr_t GLintptr’
 typedef khronos_intptr_t GLintptr;
                          ^
modules/highgui/CMakeFiles/opencv_highgui.dir/build.make:227: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o' failed
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o] Error 1
CMakeFiles/Makefile2:1868: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
</code></pre>

<p>I see <a href="http://forum.odroid.com/viewtopic.php?f=99&amp;t=7006" rel="nofollow">this page</a> for this error, but when i change OPENGL to OPENGL-ES nothing change.</p>

<p>what can i do?</p>