Merge lp:~saiarcot895/ubuntu/utopic/openscenegraph/armhf-support into lp:ubuntu/utopic/openscenegraph
Status: | Merged |
---|---|
Merged at revision: | 41 |
Proposed branch: | lp:~saiarcot895/ubuntu/utopic/openscenegraph/armhf-support |
Merge into: | lp:ubuntu/utopic/openscenegraph |
Diff against target: |
120 lines (+65/-2) 6 files modified
debian/changelog (+11/-0) debian/control (+4/-2) debian/patches/change-typedef.patch (+13/-0) debian/patches/dont-build-osgframerenderer-on-gles.patch (+24/-0) debian/patches/series (+2/-0) debian/rules (+11/-0) |
To merge this branch: | bzr merge lp:~saiarcot895/ubuntu/utopic/openscenegraph/armhf-support |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Holbach (community) | Approve | ||
Review via email: mp+229453@code.launchpad.net |
Description of the change
This adds support for building on Ubuntu armhf by building OpenSceneGraph with OpenGL ES 2.0. To do this, two build dependencies needed to be added: libegl1-mesa-dev and libgles2-mesa-dev. libgl1-mesa-dev isn't needed for OpenGL ES, and so it has been excluded from armhf.
In addition, a patch that changes the method of selecting what version of OpenGL/OpenGL ES contained a change that excluded one of the examples from being built under certain conditions. That part of the change is included here (as it would otherwise cause a build failure).
Note that OpenSceneGraph will still FTBFS, but will fail at a later point. This is because one of the examples uses freeglut, which still uses OpenGL. The option of building freeglut with OpenGL ES is still in the trunk and is expected to be released with version 3.0. While this example could be temporarily excluded, any application that uses both openscenegraph and freeglut will still FTBFS. The intention for this MP is so that when freetype 3.0 is released, only that package's packaging will have to be changed.
In commit 42, there is a build error with regards to typedef'ing GLdouble if it isn't defined. Openscenegraph typedefs it to double, while Qt typedefs it to GLfloat (which will be a float). Because of this, a build error occurs. In addition, Qt uses checks if GLdouble is defined using #ifndef, which returns true (that it's not defined), since the typedef doesn't affect #defines.