gmake errors: IN /src/opengl/qglbuffer.h for Qt5.5 open source on centos
-
Hi i am getting following errors during gmake of QT5.5 on centos-7.7 with gcc-4.8.5; while building open source5.5.0:
/include/QtOpenGL/../../src/opengl/qglbuffer.h:45:23: error: variable ‘Q_OPENGL_EXPORT QGLBuffer’ has initializer but incomplete type
class Q_OPENGL_EXPORT QGLBuffer
^
../../../../include/QtOpenGL/../../src/opengl/qglbuffer.h:45:23: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
../../../../include/QtOpenGL/../../src/opengl/qglbuffer.h:47:1: error: expected primary-expression before ‘public’
public:
^
../../../../include/QtOpenGL/../../src/opengl/qglbuffer.h:47:1: error: expected ‘}’ before ‘public’
../../../../include/QtOpenGL/../../src/opengl/qglbuffer.h:47:1: error: expected ‘,’ or ‘;’ before ‘public’
../../../../include/QtOpenGL/../../src/opengl/qglbuffer.h:56:16: error: expected constructor, destructor, or type conversion before ‘;’ token
QGLBuffer(); -
Hi and welcome to devnet,
What exact configure command did you use ?
Did you install all required dependencies ?
Why such an outdated version ? -
- configure command used:
./configure --prefix=/usr/local/Trolltech/Qt-5.5 -opensource -qt-zlib -qt-xcb - i have installed all required dependencies, perl-version, openjdk,gcc-4.8.5, libpng, bzip2, xz-devel, libarchive-devel, xz-lzma-compat. Also cmake-3.6.1 and curl-7.50
- i need to install some product software for that this is the prerequisites.
- configure command used:
-
- Please use out of source builds so that if you need to restart you can simply delete the build folder. By the way, Trolltech is not more since 2008.
- Unless you plan on doing Android development, OpenJDK is not a dependency. In your list there's at least the OpenGL development package that is missing. Please go through the documentation to get a list of all the development packages you need to install.
-
This in unrelated to Qt itself.
Just do not build in the source tree.
mkdir build_qt cd build_qt /path/to/Qt_sources/configure <list all arguments>
-
@depak said in gmake errors: IN /src/opengl/qglbuffer.h for Qt5.5 open source on centos:
@SGaist ok, but can i do like:
cd qt-everywhere-opensource-src-%VERSION%
./configure <list all arguments>This is an "in source" build so the opposite of what I am suggesting you to do.
-
@SGaist i tried it on another machine for same source(as the source code is inside a share folder), like:
mkdir build_qt
cd build_qt
/path/to/Qt_sources/configure <list all arguments>but got following error: " you can not make a shadow build from a source tree containing a previous build"
-
@depak said in gmake errors: IN /src/opengl/qglbuffer.h for Qt5.5 open source on centos:
" you can not make a shadow build from a source tree containing a previous build"
You should extract Qt source code again to get a clean state without any build artefacts from your previous builds.
-
Did you install the OpenGL development libraries ?