[Development] Unable compiling Qt5 with -no-opengl option

Fred Fung duoduo1097 at gmail.com
Thu Jul 26 12:39:29 CEST 2012


Hi,

    I downloaded Qt5 beta from
http://origin.releases.qt-project.org/qt5.0/beta-snapshots/2012-07-25_07-00-44

   Here is my configure script,

    ./configure -prefix /home/ff/qt5dist -nomake examples -nomake tests
-opensource -silent -v -release -shared \
-platform linux-g++-32 -xplatform linux-mips-g++ \
-arch mips -sysroot /home/ff/tc/sysroot -openssl \
-qt-libpng -qt-libjpeg \
-no-opengl -no-gtkstyle \
-no-mips_dsp -no-mips_dspr2

and configure test report

Debug .................. no
C++11 support .......... yes
pkg-config ............. yes
QtDBus module .......... no
QtConcurrent code ...... yes
QtGui module ........... yes
QtWidgets module ....... yes
JavaScriptCore JIT ..... To be decided by JavaScriptCore
QML debugging .......... yes
PCH support ............ yes
MIPS_DSP/MIPS_DSPR2..... no/no
IPv6 ifname support .... yes
getaddrinfo support .... yes
getifaddrs support ..... yes
Accessibility .......... yes
NIS support ............ yes
CUPS support ........... no
Iconv support .......... yes
Glib support ........... no
GStreamer support ...... no
PulseAudio support ..... no
Large File support ..... yes
GIF support ............ plugin
JPEG support ........... plugin (qt)
PNG support ............ yes (qt)
zlib support ........... system
Session management ..... auto
libudev support ........ no
OpenGL support ......... no
OpenVG support ......... no
XShape support ......... auto
XVideo support ......... auto
XSync support .......... auto
Xinerama support ....... runtime
Xcursor support ........ runtime
Xfixes support ......... runtime
Xrandr support ......... runtime
Xi support ............. runtime
Xi2 support ............ auto
MIT-SHM support ........ auto
FontConfig support ..... no
XKB Support ............ auto
immodule support ....... yes
GTK theme support ...... no
SQLite support ......... plugin (qt)
OpenSSL support ........ yes (run-time)
Alsa support ........... no
libICU support ......... yes
PCRE support ........... qt
Xcb support ............ no
Xrender support ........ no
EGLFS support .......... no
DirectFB support ....... no
LinuxFB support ........ yes
KMS support ............ no

then, using "./build -j 2" to compile qt.

But I had some problem about openGL,

1.   cannot find -lGL when linking libQtWidgets.so.5.0.0
        I copy another .so file to qtbase/lib ,and rename it to
libGL.so.Inthis case, libQtWidgets.so.5.0.0 can be generated. Is there
someting
Irregular?

2. when build qtdeclarative,
.....
Reading
/home/prod01/project/src/qt-everywhere-opensource-src-5.0.0/qtdeclarative/tests/auto/quick/nodes/
nodes.pro
Project ERROR: Unknown module(s) in QT: opengl
     in qtdeclarative/tests/auto/quick/nodes/nodes.pro, there is "QT +=
core-private gui-private qml-private quick-private opengl widgets testlib"
     I remove "opengl" in nodes.pro, compiling can work continue, but
error appears,
followed by lots of log:
make[2]: Entering
`/home/prod01/project/src/qt-everywhere-opensource-src-5.0.0/qtdeclarative/src/quick'
compiling util/qquickstatechangescript.cpp
compiling util/qquickpixmapcache.cpp
In file included from
../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsgnode.h:45:0,
                 from ../../include/QtQuick/qsgnode.h:1,
                 from
../../include/QtQuick/5.0.0/QtQuick/private/../../../../../src/quick/scenegraph/qsgcontext_p.h:54,
                 from
../../include/QtQuick/5.0.0/QtQuick/private/qsgcontext_p.h:1,
                 from
../../include/QtQuick/5.0.0/QtQuick/private/../../../../../src/quick/scenegraph/util/qsgtexture_p.h:51,
                 from
../../include/QtQuick/5.0.0/QtQuick/private/qsgtexture_p.h:1,
                 from util/qquickpixmapcache.cpp:50:
../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:117:25:
error: 'GLenum' has not been declared
../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:118:12:
error: 'GLenum' does not name a type
../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:114:33:
error: 'GL_UNSIGNED_SHORT' was not declared in this scope
../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h: In
member function 'int QSGGeometry::sizeOfIndex() const':
../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:290:25:
error: 'GL_UNSIGNED_SHORT' was not declared in this scope
../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:291:30:
error: 'GL_UNSIGNED_BYTE' was not declared in this scope
../../include/QtQuick/../../src/quick/scenegraph/coreapi/qsggeometry.h:292:30:
error: 'GL_UNSIGNED_INT' was not declared in this scope
In file included from
/home/prod01/project/src/qt-everywhere-opensource-src-5.0.0/qtbase/include/QtGui/5.0.0/QtGui/private/qopenglextensions_p.h:1:0,
                 from
../../include/QtQuick/5.0.0/QtQuick/private/../../../../../src/quick/scenegraph/util/qsgdepthstencilbuffer_p.h:47,
                 from
../../include/QtQuick/5.0.0/QtQuick/private/qsgdepthstencilbuffer_p.h:1,
                 from
../../include/QtQuick/5.0.0/QtQuick/private/../../../../../src/quick/scenegraph/qsgcontext_p.h:55,
                 from
../../include/QtQuick/5.0.0/QtQuick/private/qsgcontext_p.h:1,
                 from
../../include/QtQuick/5.0.0/QtQuick/private/../../../../../src/quick/scenegraph/util/qsgtexture_p.h:51,
                 from
../../include/QtQuick/5.0.0/QtQuick/private/qsgtexture_p.h:1,
                 from util/qquickpixmapcache.cpp:50:
/home/prod01/project/src/qt-everywhere-opensource-src-5.0.0/qtbase/include/QtGui/5.0.0/QtGui/private/../../../../../src/gui/opengl/qopenglextensions_p.h:
At global scope:
/home/prod01/project/src/qt-everywhere-opensource-src-5.0.0/qtbase/include/QtGui/5.0.0/QtGui/private/../../../../../src/gui/opengl/qopenglextensions_p.h:77:1:
error: expected class-name before '{' token
/home/prod01/project/src/qt-everywhere-opensource-src-5.0.0/qtbase/include/QtGui/5.0.0/QtGui/private/../../../../../src/gui/opengl/qopenglextensions_p.h:113:5:
error: 'GLvoid' does not name a type
/home/prod01/project/src/qt-everywhere-opensource-src-5.0.0/qtbase/include/QtGui/5.0.0/QtGui/private/../../../../../src/gui/opengl/qopenglextensions_p.h:114:5:
error: 'GLboolean' does not name a type
/home/prod01/project/src/qt-everywhere-opensource-src-5.0.0/qtbase/include/QtGui/5.0.0/QtGui/private/../../../../../src/gui/opengl/qopenglextensions_p.h:116:28:
error: 'GLint' has not been declared
/home/prod01/project/src/qt-everywhere-opensource-src-5.0.0/qtbase/include/QtGui/5.0.0/QtGui/private/../../../../../src/gui/opengl/qopenglextensions_p.h:116:41:
error: 'GLint' has not been declared
......
.....
...

I want to know how to solve this problem?


best regards,fred fung
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120726/776e2c48/attachment.html>


More information about the Development mailing list