Dear all,
I encounter this issue and here is my patch to build with -no-opengl.
Best regards.
Stéphane
On 07/26/2012 12:39 PM, Fred Fung wrote:
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.In <http://libGL.so.In> this 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
<http://nodes.pro>
Project ERROR: Unknown module(s) in QT: opengl
in qtdeclarative/tests/auto/quick/nodes/nodes.pro
<http://nodes.pro>,there is "QT += core-private gui-private
qml-private quick-private opengl widgets testlib"
I remove "opengl" in nodes.pro <http://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
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development
diff --git a/src/modules/qt_gui.pri b/src/modules/qt_gui.pri
index 2dfbb4a..712ce38 100644
--- a/src/modules/qt_gui.pri
+++ b/src/modules/qt_gui.pri
@@ -11,5 +11,5 @@ QT.gui.libs = $$QT_MODULE_LIB_BASE
QT.gui.plugins = $$QT_MODULE_PLUGIN_BASE
QT.gui.imports = $$QT_MODULE_IMPORT_BASE
QT.gui.depends = core
-QT.gui.CONFIG = opengl
+contains(QT_CONFIG,opengl): QT.gui.CONFIG = opengl
QT.gui.DEFINES = QT_GUI_LIB
diff --git a/src/widgets/widgets.pro b/src/widgets/widgets.pro
index 91ac407..adef6bb 100644
--- a/src/widgets/widgets.pro
+++ b/src/widgets/widgets.pro
@@ -2,7 +2,7 @@ load(qt_module)
TARGET = QtWidgets
QPRO_PWD = $$PWD
-QT = core core-private gui gui-private platformsupport-private
+QT = core core-private gui gui-private
CONFIG += module
MODULE_PRI = ../modules/qt_widgets.pri
diff --git a/tests/auto/gui/gui.pro b/tests/auto/gui/gui.pro
index 48fa277..a9d1147 100644
--- a/tests/auto/gui/gui.pro
+++ b/tests/auto/gui/gui.pro
@@ -4,6 +4,7 @@ SUBDIRS=\
kernel \
math3d \
painting \
- qopengl \
text \
util \
+
+contains(QT_CONFIG,opengl): SUBDIRS+= qopengl
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development