** Description changed:

+ [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://launchpad.net/ubuntu/+source/openscenegraph/3.2.0~rc1-4/+build/5615979
  ), but builds fine in Debian, see:
  
  
https://buildd.debian.org/status/fetch.php?pkg=openscenegraph&arch=armhf&ver=3.2.0~rc1-4&stamp=1392733150
  
  I don't know why build fails in Ubuntu - I found only this error in
  build log:
  
  [ 94%] Building CXX object 
src/osgPlugins/pdf/CMakeFiles/osgdb_pdf.dir/ReaderWriterPDF.o
  cd "/build/buildd/openscenegraph-3.2.0~rc1/build/osg/src/osgPlugins/pdf" && 
/usr/bin/arm-linux-gnueabihf-g++   -Dosgdb_pdf_EXPORTS -g -O2 -fstack-protector 
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  
 -Wall -Wparentheses -Wno-long-long -Wno-import -pedantic -Wreturn-type 
-Wmissing-braces -Wunknown-pragmas -Wunused -fpermissive -fPIC 
-I"/build/buildd/openscenegraph-3.2.0~rc1/OpenSceneGraph/include" 
-I"/build/buildd/openscenegraph-3.2.0~rc1/build/osg/include" 
-I/usr/include/cairo -I/usr/include/glib-2.0 
-I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/poppler/glib 
-I/usr/include/poppler    -o CMakeFiles/osgdb_pdf.dir/ReaderWriterPDF.o -c 
"/build/buildd/openscenegraph-3.2.0~rc1/OpenSceneGraph/src/osgPlugins/pdf/ReaderWriterPDF.cpp"
  make[3]: Leaving directory `/build/buildd/openscenegraph-3.2.0~rc1/build/osg'
  make[2]: *** [src/osgQt/CMakeFiles/osgQt.dir/all] Error 2
  
  Please build openscenegraph for ARMHF architecture - now there are no
  QGIS ARM packages in Ubuntu Trusty because of missing libopenscenegraph-
  dev :(

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1284190

Title:
  openscenegraph 3.2.0~rc1 doesn't build on ARM (armhf), but builds fine
  in Debian

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openscenegraph/+bug/1284190/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to