soqt version 1.5.0-1 failed to build on armel

Bug #791322 reported by Ricardo Salveti on 2011-06-01
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
soqt (Ubuntu)
Medium
Unassigned

Bug Description

soqt version 1.5.0-1 failed to build on armel
Link to failed build: https://launchpad.net/ubuntu/+source/soqt/1.5.0-1/+build/2471307

Direct link to the build log: https://launchpad.net/ubuntu/+source/soqt/1.5.0-1/+build/2471307/+files/buildlog_ubuntu-oneiric-armel.soqt_1.5.0-1_FAILEDTOBUILD.txt.gz

This log snippet might be of interest, since it triggered the matcher 'Purging chroot-autobuild'.
Excerpt 1786 lines into the build log:

make[7]: Leaving directory `/build/buildd/soqt-1.5.0/build.qt4/src/Inventor/Qt'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/build/buildd/soqt-1.5.0/build.qt4/src/Inventor'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/build/buildd/soqt-1.5.0/build.qt4/src/Inventor'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/build/buildd/soqt-1.5.0/build.qt4/src'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/build/buildd/soqt-1.5.0/build.qt4/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/buildd/soqt-1.5.0/build.qt4'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/buildd/soqt-1.5.0/build.qt4'
make: *** [build-stamp-qt4] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
******************************************************************************
Build finished at 20110510-0718
FAILED [dpkg-buildpackage died]
Purging chroot-autobuild/build/buildd/soqt-1.5.0

Marcin Juszkiewicz (hrw) wrote :

 g++ -DHAVE_CONFIG_H -I../../../src -I../../../data -I../../../../src -I/usr/include/Inventor/annex -D_REENTRANT -I/usr/share/qt4/include -I/usr/share/qt4/include/Qt -DSOQT_DEBUG=1 -DSOQT_INTERNAL -g -O2 -W -Wall -Wno-unused -Wno-multichar -Woverloaded-virtual -Wno-non-virtual-dtor -fno-builtin -finline-functions -Wreturn-type -Wchar-subscripts -Wparentheses -c ../../../../src/Inventor/Qt/SoQtGLWidget.cpp -fPIC -DPIC -o .libs/SoQtGLWidget.o
In file included from /usr/include/GL/glx.h:45:0,
                 from ../../../../src/Inventor/Qt/SoQtGLWidget.cpp:1288:
/usr/include/GL/gl.h:168:17: error: conflicting declaration 'typedef double GLdouble'
/usr/share/qt4/include/Qt/qgl.h:74:17: error: 'GLdouble' has a previous declaration as 'typedef GLfloat GLdouble'
In file included from /usr/include/GL/gl.h:2091:0,
                 from /usr/include/GL/glx.h:45,
                 from ../../../../src/Inventor/Qt/SoQtGLWidget.cpp:1288:
/usr/include/GL/glext.h:5040:19: error: conflicting declaration 'typedef ptrdiff_t GLintptr'
/usr/include/GLES2/gl2.h:38:26: error: 'GLintptr' has a previous declaration as 'typedef khronos_intptr_t GLintptr'
/usr/include/GL/glext.h:5041:19: error: conflicting declaration 'typedef ptrdiff_t GLsizeiptr'
/usr/include/GLES2/gl2.h:39:26: error: 'GLsizeiptr' has a previous declaration as 'typedef khronos_ssize_t GLsizeiptr'
make[9]: *** [SoQtGLWidget.lo] Error 1

Again - OpenGL instead of OpenGLES?

Marcin Juszkiewicz (hrw) on 2011-06-15
tags: added: opengles
Changed in soqt (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Kei Okada (k-okada) wrote :

I had armhf environment and had a same issue, had confirmed following patch works for me, so my suggestion is

1. compile without SOQT_DEBUG option
2. do not read gl.h for GLES environment

```
diff -r src/Inventor/Qt/SoQtGLWidget.cpp src.org/Inventor/Qt/SoQtGLWidget.cpp
1297,1301d1296
< #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
< // gl.h included from glx.h defines GLdouble, which
< // is already incldue in qgl.h for ESGL environment
< #define __gl_h_
< #endif
diff -r src/Inventor/Qt/SoQtRenderArea.cpp src.org/Inventor/Qt/SoQtRenderArea.cpp
164,165c164,165
< //#include <qgl.h>
< //#include <qapplication.h>
---
> #include <qgl.h>
> #include <qapplication.h>
``

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers