Ok, it finally compiles! Did two small corrections in the typesystem: 1) typesystem_opengl-common.xml : <enum-type name="QGLShader::ShaderTypeBits" flags="QGLShader::ShaderTypeBit" />
This one was a bit odd, flags were set to QGLShader::ShaderType. However, reading the documentation on the generator, it reads that flags should either be true or false, which obviously has been changed a bit. This one I just figured out by intuition, studying the rest of the enum-types mentioned in that file. 2) typesystem_gui-common.xml: Had to remove these types <!-- object-type name="QGraphicsBloomEffect" /> <object-type name="QGraphicsBlurEffect" /> <object-type name="QGraphicsColorizeEffect" /> <object-type name="QGraphicsDropShadowEffect" /> <object-type name="QGraphicsGrayscaleEffect" / --> Didn't find them either in the corresponding C++ header files, so I guess they are deprecated in some way. Now, I just have to find out how I commit there bug-fixes in the community-port branch, making my first real contribution to this project besides testing! Regards, Helge Fredriksen On Wed, Nov 18, 2009 at 3:12 PM, Helge Fredriksen <[email protected]> wrote: > Thanks Eskil! That did make us go forward. However, there was another > problem during compiling of > the OpenGL support: > > [make] ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShader.cpp(291) > : error C2039: 'ShaderTypeBits' : is not a me > mber of 'QGLShader' > [make] > c:\qt\qt-everywhere-opensource-src-4.6.0-rc1\include\qtopengl\../../src/opengl/qglshaderprogram.h(62 > ) : see declaration of 'QGLShader' > [make] ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShader.cpp(291) > : error C2065: 'ShaderTypeBits' : undeclared > identifier > [make] ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShader.cpp(291) > : error C2039: 'ShaderTypeBits' : is not a me > mber of 'QGLShader' > [make] > c:\qt\qt-everywhere-opensource-src-4.6.0-rc1\include\qtopengl\../../src/opengl/qglshaderprogram.h(62 > ) : see declaration of 'QGLShader' > [make] ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShader.cpp(291) > : error C2440: 'type cast' : cannot convert f > rom 'jint' to 'QFlags' > [make] No constructor could take the source type, or > constructor overload resolution was ambiguous > [make] ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShader.cpp(291) > : error C2512: 'QFlags' : no appropriate defa > ult constructor available > [make] ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShader.cpp(295) > : error C2440: 'type cast' : cannot convert f > rom 'QFlags' to 'QGLShader::ShaderType' > [make] No constructor could take the source type, or > constructor overload resolution was ambiguous > [make] ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShader.cpp(328) > : error C2039: 'ShaderTypeBits' : is not a me > mber of 'QGLShader' > [make] > c:\qt\qt-everywhere-opensource-src-4.6.0-rc1\include\qtopengl\../../src/opengl/qglshaderprogram.h(62 > ) : see declaration of 'QGLShader' > [make] ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShader.cpp(328) > : error C2039: 'ShaderTypeBits' : is not a me > mber of 'QGLShader' > [make] > c:\qt\qt-everywhere-opensource-src-4.6.0-rc1\include\qtopengl\../../src/opengl/qglshaderprogram.h(62 > ) : see declaration of 'QGLShader' > [make] ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShader.cpp(328) > : error C2440: 'type cast' : cannot convert f > rom 'jint' to 'QFlags' > [make] No constructor could take the source type, or > constructor overload resolution was ambiguous > [make] ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShader.cpp(328) > : error C2512: 'QFlags' : no appropriate defa > ult constructor available > [make] ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShader.cpp(334) > : error C2440: 'type cast' : cannot convert f > rom 'QFlags' to 'QGLShader::ShaderType' > [make] No constructor could take the source type, or > constructor overload resolution was ambiguous > [make] qtjambishell_QGLShaderProgram.cpp > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(436) : > error C2039: 'ShaderTypeBits' : is n > ot a member of 'QGLShader' > [make] > c:\qt\qt-everywhere-opensource-src-4.6.0-rc1\include\qtopengl\../../src/opengl/qglshaderprogram.h(62 > ) : see declaration of 'QGLShader' > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(436) : > error C2065: 'ShaderTypeBits' : unde > clared identifier > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(436) : > error C2039: 'ShaderTypeBits' : is n > ot a member of 'QGLShader' > [make] > c:\qt\qt-everywhere-opensource-src-4.6.0-rc1\include\qtopengl\../../src/opengl/qglshaderprogram.h(62 > ) : see declaration of 'QGLShader' > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(436) : > error C2440: 'type cast' : cannot co > nvert from 'jint' to 'QFlags' > [make] No constructor could take the source type, or > constructor overload resolution was ambiguous > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(436) : > error C2512: 'QFlags' : no appropria > te default constructor available > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(443) : > error C2440: 'type cast' : cannot co > nvert from 'QFlags' to 'QGLShader::ShaderType' > [make] No constructor could take the source type, or > constructor overload resolution was ambiguous > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(462) : > error C2039: 'ShaderTypeBits' : is n > ot a member of 'QGLShader' > [make] > c:\qt\qt-everywhere-opensource-src-4.6.0-rc1\include\qtopengl\../../src/opengl/qglshaderprogram.h(62 > ) : see declaration of 'QGLShader' > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(462) : > error C2039: 'ShaderTypeBits' : is n > ot a member of 'QGLShader' > [make] > c:\qt\qt-everywhere-opensource-src-4.6.0-rc1\include\qtopengl\../../src/opengl/qglshaderprogram.h(62 > ) : see declaration of 'QGLShader' > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(462) : > error C2440: 'type cast' : cannot co > nvert from 'jint' to 'QFlags' > [make] No constructor could take the source type, or > constructor overload resolution was ambiguous > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(462) : > error C2512: 'QFlags' : no appropria > te default constructor available > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(469) : > error C2440: 'type cast' : cannot co > nvert from 'QFlags' to 'QGLShader::ShaderType' > [make] No constructor could take the source type, or > constructor overload resolution was ambiguous > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(488) : > error C2039: 'ShaderTypeBits' : is n > ot a member of 'QGLShader' > [make] > c:\qt\qt-everywhere-opensource-src-4.6.0-rc1\include\qtopengl\../../src/opengl/qglshaderprogram.h(62 > ) : see declaration of 'QGLShader' > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(488) : > error C2039: 'ShaderTypeBits' : is n > ot a member of 'QGLShader' > [make] > c:\qt\qt-everywhere-opensource-src-4.6.0-rc1\include\qtopengl\../../src/opengl/qglshaderprogram.h(62 > ) : see declaration of 'QGLShader' > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(488) : > error C2440: 'type cast' : cannot co > nvert from 'jint' to 'QFlags' > [make] No constructor could take the source type, or > constructor overload resolution was ambiguous > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(488) : > error C2512: 'QFlags' : no appropria > te default constructor available > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(495) : > error C2440: 'type cast' : cannot co > nvert from 'QFlags' to 'QGLShader::ShaderType' > [make] No constructor could take the source type, or > constructor overload resolution was ambiguous > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(514) : > error C2039: 'ShaderTypeBits' : is n > ot a member of 'QGLShader' > [make] > c:\qt\qt-everywhere-opensource-src-4.6.0-rc1\include\qtopengl\../../src/opengl/qglshaderprogram.h(62 > ) : see declaration of 'QGLShader' > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(514) : > error C2039: 'ShaderTypeBits' : is n > ot a member of 'QGLShader' > [make] > c:\qt\qt-everywhere-opensource-src-4.6.0-rc1\include\qtopengl\../../src/opengl/qglshaderprogram.h(62 > ) : see declaration of 'QGLShader' > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(514) : > error C2440: 'type cast' : cannot co > nvert from 'jint' to 'QFlags' > [make] No constructor could take the source type, or > constructor overload resolution was ambiguous > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(514) : > error C2512: 'QFlags' : no appropria > te default constructor available > [make] > ..\cpp\com_trolltech_qt_opengl\qtjambishell_QGLShaderProgram.cpp(521) : > error C2440: 'type cast' : cannot co > nvert from 'QFlags' to 'QGLShader::ShaderType' > [make] No constructor could take the source type, or > constructor overload resolution was ambiguous > [make] qtjambishell_QGLWidget.cpp > [make] Generating Code... > [make] NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual > Studio 8\VC\BIN\cl.EXE"' : return code '0x2' > > [make] Stop. > [make] NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual > Studio 8\VC\BIN\nmake.exe"' : return code '0x > 2' > [make] Stop. > [make] NMAKE : fatal error U1077: 'cd' : return code '0x2' > [make] Stop. > > BUILD FAILED > C:\jambi\community-port-to-4_6\build.xml:294: Running: nmake failed with > exit code: 2 > > Total time: 10 minutes 22 seconds > > Is this related to some bugs in Qt as well, or does it relate to some > updates that has to be done in the typesystem? I see > that there are some "enums" that do not match? qtjambishell files are > probably files that stems from the generator, right? > > If you hint on where to look, I could do the editing myself, trying to > learn, you know :-) > > Regards, > Helge Fredriksen > > > On Wed, Nov 18, 2009 at 11:35 AM, Eskil Abrahamsen Blomfeldt < > [email protected]> wrote: > >> Helge Fredriksen skrev: >> >> Eskil, Gunnar, pleeeease give some directions at least where I could try >>> to dig in! >>> >> >> Hi, Helge. >> >> This was a bug in Qt. I'm attaching a patch to this mail which you can >> apply to your Qt sources to fix the problem. >> >> -- Eskil >> >> --- a/src/corelib/statemachine/qstatemachine.h >> +++ b/src/corelib/statemachine/qstatemachine.h >> @@ -70,7 +70,7 @@ >> Q_PROPERTY(bool animated READ isAnimated WRITE setAnimated) >> #endif >> public: >> - class SignalEvent : public QEvent >> + class Q_CORE_EXPORT SignalEvent : public QEvent >> { >> public: >> SignalEvent(QObject *sender, int signalIndex, >> @@ -89,7 +89,7 @@ >> friend class QSignalTransitionPrivate; >> }; >> >> - class WrappedEvent : public QEvent >> + class Q_CORE_EXPORT WrappedEvent : public QEvent >> { >> public: >> WrappedEvent(QObject *object, QEvent *event); >> > >
_______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
