[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Cannot build OpenGL application on Qt5 on armel/hf


I have uploaded a new version of virtualjaguar today which uses Qt5 by default
[1]. Unfortunately, this brought a regression on armel and armhf in the form
of an FTBFS [2]:

g++ -c -pipe `sdl-config --cflags` -O2 -Wdate-time -D_FORTIFY_SOURCE=2 -ffast-math -fomit-frame-pointer -Wall -W -D_REENTRANT -fPIC -D__GCCUNIX__ -DQT_NO_DEBUG
-DQT_OPENGL_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -Isrc -Isrc/gui -isystem /usr/include/arm-linux-gnueabi/qt5 -isystem
/usr/include/arm-linux-gnueabi/qt5/QtOpenGL -isystem /usr/include/arm-linux-gnueabi/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabi/qt5/QtGui -isystem
/usr/include/arm-linux-gnueabi/qt5/QtCore -Iobj -I/usr/lib/arm-linux-gnueabi/qt5/mkspecs/linux-g++ -o obj/glwidget.o src/gui/glwidget.cpp
src/gui/glwidget.cpp: In member function 'virtual void GLWidget::initializeGL()':
src/gui/glwidget.cpp:49:12: error: 'GL_ALPHA_TEST' was not declared in this scope
src/gui/glwidget.cpp:49:12: note: suggested alternative: 'GL_ALPHA8_OES'
src/gui/glwidget.cpp:52:12: error: 'GL_POLYGON_SMOOTH' was not declared in this scope

Looking at the rules file of qtbase-opensource-src, it's obvious where this
regression comes from, namely from the fact that qtbase-opensource-src is
configured to use OpenGL ES instead of proper desktop OpenGL on armel
and armhf [3].

Does anyone know whether there is a way to address this issue on armel/hf
or do I have to disable virtualjaguar on these architectures?

CC'ing debian-arm@l.d.o in case someone there knows about a possible workaround.


> [1] https://packages.qa.debian.org/v/virtualjaguar/news/20170918T181332Z.html
> [2] https://buildd.debian.org/status/fetch.php?pkg=virtualjaguar&arch=armel&ver=2.1.3-1&stamp=1505760397&raw=0
> [3] https://anonscm.debian.org/cgit/pkg-kde/qt/qtbase.git/tree/debian/rules#n29

 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

Reply to: