Bug#895499: enki-aseba FTBFS on armel/armhf: error: 'glGenLists' was not declared in this scope

2018-04-13 Thread Adrian Bunk
On Fri, Apr 13, 2018 at 02:41:59PM +0200, Georges Khaznadar wrote:
> Dear Adrian,
> 
> thank you for the enlightenment!
> 
> Adrian Bunk a écrit :
> > [...] 
> > The root cause is that on armel/armhf (and arm64 in Ubuntu)
> > Qt5 is compiled with OpenGL ES instead of OpenGL.
> > 
> > enki-aseba should be fixed to build and work with OpenGL ES,
> 
> I shall ask upstream developers whether this is part of their scheduled
> actions.
> 
> > but if this is not easily possible please
> > - change the build dependency from libqt5opengl5-dev
> >   to libqt5opengl5-desktop-dev, and
> > - file a removal bug for the old armel+armhf binaries
> >   of enki-aseba and aseba against ftp.debian.org
> 
> Just to be sure: if the build-dependency is on libqt5opengl5-desktop-dev
> instead of libqt5opengl5-dev, the package would cease to be built for
> armel/armhf, isn't it ?

Yes.

> Or should I rather replace Target: all by an explicit list of targets
> for this package?

There are two disadvantages of that:

1. An explicit list in Architecture: needs manual maintainance,
   this makes it e.g. more work when new ports like riscv64 are added.

2. On Ubuntu Qt is compiled with OpenGL ES also on arm64,
   build-depending on libqt5opengl5-desktop-dev handles
   this automatically.

> Thank you in advance for your reply.

cu
Adrian

-- 

   "Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
   "Only a promise," Lao Er said.
   Pearl S. Buck - Dragon Seed



Bug#895499: enki-aseba FTBFS on armel/armhf: error: 'glGenLists' was not declared in this scope

2018-04-13 Thread Georges Khaznadar
Dear Adrian,

thank you for the enlightenment!

Adrian Bunk a écrit :
> [...] 
> The root cause is that on armel/armhf (and arm64 in Ubuntu)
> Qt5 is compiled with OpenGL ES instead of OpenGL.
> 
> enki-aseba should be fixed to build and work with OpenGL ES,

I shall ask upstream developers whether this is part of their scheduled
actions.

> but if this is not easily possible please
> - change the build dependency from libqt5opengl5-dev
>   to libqt5opengl5-desktop-dev, and
> - file a removal bug for the old armel+armhf binaries
>   of enki-aseba and aseba against ftp.debian.org

Just to be sure: if the build-dependency is on libqt5opengl5-desktop-dev
instead of libqt5opengl5-dev, the package would cease to be built for
armel/armhf, isn't it ?

Or should I rather replace Target: all by an explicit list of targets
for this package?

Thank you in advance for your reply.

-- 
Georges KHAZNADAR et Jocelyne FOURNIER
22 rue des mouettes, 59240 Dunkerque France.
Téléphone +33 (0)3 28 29 17 70



signature.asc
Description: PGP signature


Bug#895499: enki-aseba FTBFS on armel/armhf: error: 'glGenLists' was not declared in this scope

2018-04-11 Thread Adrian Bunk
Source: enki-aseba
Version: 1:1.6.0-5
Severity: serious

https://buildd.debian.org/status/package.php?p=enki-aseba=sid

...
cd /<>/obj-arm-linux-gnueabi/viewer && /usr/bin/c++  -DQT_CORE_LIB 
-DQT_NO_DEBUG -DUSE_SDL 
-I/<>/obj-arm-linux-gnueabi/viewer/enkiviewer_autogen/include 
-I/usr/include/SDL2 -I/<> 
-I/<>/obj-arm-linux-gnueabi/viewer -isystem 
/usr/include/arm-linux-gnueabi/qt5 
-I/usr/include/arm-linux-gnueabi/qt5/QtWidgets 
-I/usr/include/arm-linux-gnueabi/qt5/QtGui -isystem 
/usr/include/arm-linux-gnueabi/qt5/QtCore -isystem 
/usr/lib/arm-linux-gnueabi/qt5/mkspecs/linux-g++ 
-I/usr/include/arm-linux-gnueabi/qt5/QtOpenGL  -g -O2 
-fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2   -fPIC -fPIC 
-std=gnu++11 -o CMakeFiles/enkiviewer.dir/objects/EPuckBody.cpp.o -c 
/<>/viewer/objects/EPuckBody.cpp
/<>/viewer/objects/EPuckBody.cpp: In function 'GLint 
Enki::GenEPuckBody()':
/<>/viewer/objects/EPuckBody.cpp:712:12: error: 'glGenLists' was 
not declared in this scope
  GLint lid=glGenLists(1);

^~
/<>/viewer/objects/EPuckBody.cpp:712:12: note: suggested 
alternative: 'glFinish'
  GLint lid=glGenLists(1);

^~
glFinish
/<>/viewer/objects/EPuckBody.cpp:713:17: error: 'GL_COMPILE' was 
not declared in this scope
  glNewList(lid, GL_COMPILE);

 ^~
/<>/viewer/objects/EPuckBody.cpp:713:17: note: suggested 
alternative: 'GL_SAMPLER'
  glNewList(lid, GL_COMPILE);

 ^~
 GL_SAMPLER
/<>/viewer/objects/EPuckBody.cpp:713:2: error: 'glNewList' was not 
declared in this scope
  glNewList(lid, GL_COMPILE);

  ^
/<>/viewer/objects/EPuckBody.cpp:713:2: note: suggested 
alternative: 'glViewport'
  glNewList(lid, GL_COMPILE);

  ^
  glViewport
/<>/viewer/objects/EPuckBody.cpp:715:3: error: 'glBegin' was not 
declared in this scope
   glBegin (GL_TRIANGLES);

   ^~~
/<>/viewer/objects/EPuckBody.cpp:728:4: error: 'glNormal3f' was 
not declared in this scope
glNormal3f (normals[ni][1],-normals[ni][0],normals[ni][2]);

^~
/<>/viewer/objects/EPuckBody.cpp:728:4: note: suggested 
alternative: 'normals'
glNormal3f (normals[ni][1],-normals[ni][0],normals[ni][2]);

^~
normals
/<>/viewer/objects/EPuckBody.cpp:729:4: error: 'glTexCoord2f' was 
not declared in this scope
glTexCoord2f(textures[ti][0],textures[ti][1]);

^~~~
/<>/viewer/objects/EPuckBody.cpp:729:4: note: suggested 
alternative: 'glTexStorage2D'
glTexCoord2f(textures[ti][0],textures[ti][1]);

^~~~
glTexStorage2D
/<>/viewer/objects/EPuckBody.cpp:730:4: error: 'glVertex3f' was 
not declared in this scope
glVertex3f (vertices[vi][1],-vertices[vi][0],vertices[vi][2]);

^~
/<>/viewer/objects/EPuckBody.cpp:730:4: note: suggested 
alternative: 'glVertexAttrib3f'
glVertex3f (vertices[vi][1],-vertices[vi][0],vertices[vi][2]);

^~
glVertexAttrib3f
/<>/viewer/objects/EPuckBody.cpp:733:3: error: 'glEnd' was not 
declared in this scope
   glEnd ();

   ^
/<>/viewer/objects/EPuckBody.cpp:735:2: error: 'glEndList' was not 
declared in this scope
  glEndList();

  ^
viewer/CMakeFiles/enkiviewer.dir/build.make:132: recipe for target 
'viewer/CMakeFiles/enkiviewer.dir/objects/EPuckBody.cpp.o' failed
make[3]: *** [viewer/CMakeFiles/enkiviewer.dir/objects/EPuckBody.cpp.o] Error 1


The root cause is that on armel/armhf (and arm64 in Ubuntu)
Qt5 is compiled with OpenGL ES instead of OpenGL.

enki-aseba should be fixed to build and work with OpenGL ES,
but if this is not easily possible please
- change the build dependency from libqt5opengl5-dev
  to libqt5opengl5-desktop-dev, and
- file a removal bug for the old armel+armhf binaries
  of enki-aseba and aseba against ftp.debian.org