openscenegraph 3.2.0~rc1 doesn't build on ARM (armhf), but builds fine in Debian
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openscenegraph (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Saikrishna Arcot |
Bug Description
[Impact]
openscenegraph FTBFS for armhf partly because it tries to build for OpenGL, partly because there is a typedef conflict for GLdouble between this package and Qt, and partly because freeglut does not support OpenGL ES yet. As a result, any package dependent on this package does not build either.
The changes made:
1. Tell openscenegraph to not use OpenGL and to instead use OpenGL ES.
2. Backport part of a commit that tells the build system not to build an example application when compiling for OpenGL ES, as that application doesn't support OpenGL ES.
3. Fix a typedef conflict for GLdouble and Qt by changing it from a typedef to a #define. On the Qt side, Qt checks to see if GLdouble is #defined and if it's not #defined, it gives its own typedef.
4. Not to include freeglut-dev on armhf, so that the example that uses freeglut isn't built.
[Test Case]
Try to build openscenegraph as is.
[Regression Potential]
No regressions should occur for non-armhf (and non-OpenGL ES) architectures, as no code related to those architectures is being changed. As for armhf, the package will build, but the example that uses freeglut will not be included in the final package.
That being said, some packages that depend on this package also depend on freeglut as well, which, as of 2.8, does not support OpenGL ES. OpenGL ES support is expected for 3.0, and compiling the current git version for armhf (with the necessary modifications to tell it to build for OpenGL ES) works. Therefore, those packages will still FTBFS.
[Original Description]
openscenegraph 3.2.0~rc1-4 package (from Ubuntu Trusty) doesn't build on ARM (armhf) in Ubuntu (see https:/
I don't know why build fails in Ubuntu - I found only this error in build log:
[ 94%] Building CXX object src/osgPlugins/
cd "/build/
make[3]: Leaving directory `/build/
make[2]: *** [src/osgQt/
Please build openscenegraph for ARMHF architecture - now there are no QGIS ARM packages in Ubuntu Trusty because of missing libopenscenegra
Related branches
- Daniel Holbach (community): Approve
-
Diff: 120 lines (+65/-2)6 files modifieddebian/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)
- Iain Lane: Approve
-
Diff: 299 lines (+223/-4)7 files modifieddebian/changelog (+12/-0)
debian/control (+8/-4)
debian/patches/change-typedef.patch (+13/-0)
debian/patches/dont-build-osgframerenderer-on-gles.patch (+24/-0)
debian/patches/osgDB_freetype.so_no_longer_built (+152/-0)
debian/patches/series (+3/-0)
debian/rules (+11/-0)
description: | updated |
Changed in openscenegraph (Ubuntu Trusty): | |
status: | New → Confirmed |
Changed in openscenegraph (Ubuntu Trusty): | |
status: | Confirmed → In Progress |
assignee: | nobody → Saikrishna Arcot (saiarcot895) |
It's because it's making direct GL calls and on armhf Ubuntu only support GLES. This is a difference between Ubuntu and Debian.