OpenGLES support for OpenCV

Post Reply
saamishon
Posts: 54
Joined: Mon Oct 20, 2014 10:05 am
languages_spoken: english
ODROIDs: XU3, C1
Has thanked: 0
Been thanked: 0
Contact:

OpenGLES support for OpenCV

Unread post by saamishon » Sat Dec 13, 2014 6:58 pm

If i give WITH_OPENGLES=ON, in OpenCV compilation..

cmake -D WITH_OPENMP=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGLES=ON -D WITH_VTK=ON ..

it says

-- GUI:
-- QT 4.x: YES (ver 4.8.6 EDITION = OpenSource)
-- QT OpenGL support: NO
-- OpenGL support: NO
-- VTK support: YES (ver 5.8.0)


Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

WITH_OPENGLES


I cannot run the examples related to OPENGL as in http://www.samontab.com/web/2014/06/ins ... 14-04-lts/

Cant find OPENGLES in Cmake GUI also.

I'm a newbie in linux. please advice. Thanks in advance.

saamishon
Posts: 54
Joined: Mon Oct 20, 2014 10:05 am
languages_spoken: english
ODROIDs: XU3, C1
Has thanked: 0
Been thanked: 0
Contact:

Re: OpenGLES support for OpenCV

Unread post by saamishon » Sat Dec 13, 2014 7:15 pm

After installing Qt-sdk and using the normal OpenGL, i got this..

GUI:
-- QT 5.x: YES (ver 5.2.1)
-- QT OpenGL support: YES (Qt5::OpenGL 5.2.1)
-- OpenGL support: YES (/usr/lib/arm-linux-gnueabihf/libGLU.so /usr/lib/arm-linux-gnueabihf/libGL.so /usr/lib/arm-linux-gnueabihf/libSM.so /usr/lib/arm-linux-gnueabihf/libICE.so /usr/lib/arm-linux-gnueabihf/libX11.so /usr/lib/arm-linux-gnueabihf/libXext.so)
-- VTK support: YES (ver 5.8.0)

and the error was:

[ 3%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o
/home/odroid/opencv-2.4.9/modules/highgui/src/window_QT.cpp: In member function ‘virtual void OpenGlViewPort::initializeGL()’:
/home/odroid/opencv-2.4.9/modules/highgui/src/window_QT.cpp:3102:12: error: ‘GL_PERSPECTIVE_CORRECTION_HINT’ was not declared in this scope
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);

^
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_QT.cpp.o] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2

User avatar
odroid
Site Admin
Posts: 33358
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 392 times
Been thanked: 457 times
Contact:

Re: OpenGLES support for OpenCV

Unread post by odroid » Sat Dec 13, 2014 8:59 pm

I think Qt forum will give you a better answer about the OpenGL-ES issue.
Note that our board can support only OpenGL-ES not a generic OpenGL.

User avatar
meveric
Posts: 10732
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: OpenGLES support for OpenCV

Unread post by meveric » Sat Dec 13, 2014 10:55 pm

there's another thing.. the first one where you used OPENGLES is Qt 4 which DOES NOT support OpenGLES secondly you used Qt5 and used OpenGL, guess what, Qt5 supports OpenGL ES ;)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

saamishon
Posts: 54
Joined: Mon Oct 20, 2014 10:05 am
languages_spoken: english
ODROIDs: XU3, C1
Has thanked: 0
Been thanked: 0
Contact:

Re: OpenGLES support for OpenCV

Unread post by saamishon » Sat Dec 13, 2014 11:32 pm

Thankyou meveric :-) you're saying WITH_OPENGLES=ON does the job. Is the syntax correct? OPENGLES? or OPENGL-ES? But how to compile using CMAKE? It does not show any OPENGLES :( I need OPENMP also for my college project.

User avatar
meveric
Posts: 10732
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: OpenGLES support for OpenCV

Unread post by meveric » Sun Dec 14, 2014 12:11 am

Code: Select all

git clone https://gitorious.org/qt/qt5.git
git submodule update --init
./configure -opengl es2 -release -opensource -confirm-license
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

saamishon
Posts: 54
Joined: Mon Oct 20, 2014 10:05 am
languages_spoken: english
ODROIDs: XU3, C1
Has thanked: 0
Been thanked: 0
Contact:

Re: OpenGLES support for OpenCV

Unread post by saamishon » Thu Jan 08, 2015 1:35 pm

CMake Warning:
Manually-specified variables were not used by the project:

WITH_OPENGLES


-- Build files have been written to: /home/odroid/opencv-2.4.10/build
odroid@gotham:~/opencv-2.4.10/build$

I followed this step to include FindOpenGLES.cmake https://code.google.com/p/gamekit/sourc ... 316&r=1316... Cant figure out whats next.
I'm a newbie for linux. Please help.
I need OpenGLES for my project.

dandan
Posts: 6
Joined: Tue Jan 20, 2015 1:51 am
languages_spoken: english
ODROIDs: XU3-lite
Has thanked: 0
Been thanked: 0
Contact:

Re: OpenGLES support for OpenCV

Unread post by dandan » Tue Feb 03, 2015 2:56 am

Hi meveric,

I tried what you suggested also in order to build qt5 and get opencv to work with opengles.

It took forever and than in the make install it failed. Should it take so long to build?

User avatar
meveric
Posts: 10732
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
Has thanked: 30 times
Been thanked: 239 times
Contact:

Re: OpenGLES support for OpenCV

Unread post by meveric » Tue Feb 03, 2015 3:30 am

no clue, that depends on the project i guess.. i tried compiling Chromium all weekend and it's not working yet... so really depends on how big the project is.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

dandan
Posts: 6
Joined: Tue Jan 20, 2015 1:51 am
languages_spoken: english
ODROIDs: XU3-lite
Has thanked: 0
Been thanked: 0
Contact:

Re: OpenGLES support for OpenCV

Unread post by dandan » Tue Feb 03, 2015 3:58 am

I mean I tried this on a anew ubuntu img.
meveric wrote:

Code: Select all

git clone https://gitorious.org/qt/qt5.git
git submodule update --init
./configure -opengl es2 -release -opensource -confirm-license
First time I try the git clone. When I get back home I'll post the error line, maybe you can decypher it ;) its like chinese to me

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 2 guests