[PyQt] Trying to build pyQGLViewer...

Jamie Riotto jamie.riotto at gmail.com
Sat Sep 12 22:45:57 BST 2009


<Sorry if this is off-topic from strict PyQt...>
Ok, after two weeks, I'm still stuck. I get the same error whether I
compile the stack with mingw or Visual Studio 2008, and
whether I use Python25 or Python26. It looks like a Qt Macro is
missing, but I'm not sure. The problem is in
libQGLViewer/QGLViewer/domUtils.h:

#if QT_VERSION > 0x040000
# include <QGlobal>
# include <QDomElement>
# include <QString>
# include <QStringList>
# include <QColor>
#else
# include <qapplication.h>
# include <qdom.h>
# include <qstring.h>
# include <qstringlist.h>
# include <qcolor.h>
#endif

Since Qt is 4.5.2 the upper includes are used. They appear to be
macro's rather than filenames. Clearly, they are correctly handled
when libQGLViewer is built.

But when I go into pyQGLViewer and type "python configur.py" and "nmake" I get:

Found SIP-4.9-snapshot-20090821.
Found 'nt' operating system:
Found Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32
bit (Intel)]
Found libQGLViewer-2.3.4 in 'C:\Python25\Lib\site-packages\libQGLViewer-2.3.4'.

Setup the qglviewer package build.
0 file(s) lazily copied.
Listing build ...

Setup the PyQGLViewer build.

Great, run make or nmake to build and install PyQGLViewer.
	cd build
	"c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"
	cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -W3 -w34100 -w34189
-DNDEBUG -DWIN32 -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL
-DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_GUI_LIB
-I. -IC:\Python25\Lib\site-packages\libQGLViewer-2.3.4
-Ic:\python25\include -IC:\Qt\4.5.2-msvc2008\mkspecs\default
-IC:\Qt\4.5.2-msvc2008\include\QtOpenGL
-IC:\Qt\4.5.2-msvc2008\include\QtXml
-IC:\Qt\4.5.2-msvc2008\include\QtCore
-IC:\Qt\4.5.2-msvc2008\include\QtGui -IC:\Qt\4.5.2-msvc2008\include
-Fo @C:\DOCUME~1\JAMIE~1.TRE\LOCALS~1\Temp\nm11.tmp
sipPyQGLViewercmodule.cpp
C:\Python25\Lib\site-packages\libQGLViewer-2.3.4\QGLViewer/domUtils.h(25)
: fatal error C1083: Cannot open include file: 'QGlobal': No such file
or directory
sipPyQGLViewerDomUtils.cpp
C:\Python25\Lib\site-packages\libQGLViewer-2.3.4\QGLViewer/domUtils.h(25)
: fatal error C1083: Cannot open include file: 'QGlobal': No such file
or directory
Generating Code...



Any Help??


More information about the PyQt mailing list