[PySide] Failing build on OS X

Erik Johansson erik.johansson at fido.se
Fri May 17 11:26:33 CEST 2013


Hi

I am trying to build PySide on OS X against Qt 4.7.1 and getting these
compilation errors:

In file included from
/Users/erik/pyside/_build/PySide/QtCore/PySide/QtCore/qabstractitemmodel_wrapper.cpp:38:
In file included from
/Users/erik/pyside/_build/PySide/QtCore/PySide/QtCore/pyside_qtcore_python.h:43:
In file included from /Users/erik/qt-4.7.1/include/QtGui/qtextdocument.h:48:
In file included from
/Users/erik/qt-4.7.1/lib/QtGui.framework/Headers/qfont.h:47:
In file included from
/Users/erik/qt-4.7.1/lib/QtCore.framework/Headers/qsharedpointer.h:52:
/Users/erik/qt-4.7.1/lib/QtCore.framework/Headers/qsharedpointer_impl.h:565:43:
warning: field 'd' is uninitialized when used here [-Wuninitialized]
    inline QWeakPointer(X *ptr) : d(ptr ? d->getAndRef(ptr) : 0), value(ptr)
                                          ^
/Users/erik/pyside/_build/PySide/QtCore/PySide/QtCore/qabstractitemmodel_wrapper.cpp:499:81:
error: use of undeclared identifier 'SBK_QT_ORIENTATION_IDX'

Shiboken::Conversions::copyToPython(SBK_CONVERTER(SbkPySide_QtCoreTypes[SBK_QT_ORIENTATION_IDX]),
&orientation),

    ^
/Users/erik/shiboken-1.1.2/_output/include/shiboken/sbkconverter.h:338:68:
note: expanded from macro 'SBK_CONVERTER'
#define SBK_CONVERTER(pyType)
(*reinterpret_cast<_SbkGenericType*>(pyType)->converter)
                                                                   ^
/Users/erik/pyside/_build/PySide/QtCore/PySide/QtCore/qabstractitemmodel_wrapper.cpp:670:81:
error: use of undeclared identifier 'SBK_QFLAGS_QT_MATCHFLAG__IDX'

Shiboken::Conversions::copyToPython(SBK_CONVERTER(SbkPySide_QtCoreTypes[SBK_QFLAGS_QT_MATCHFLAG__IDX]),
&flags)

    ^
/Users/erik/shiboken-1.1.2/_output/include/shiboken/sbkconverter.h:338:68:
note: expanded from macro 'SBK_CONVERTER'
#define SBK_CONVERTER(pyType)
(*reinterpret_cast<_SbkGenericType*>(pyType)->converter)
                                                                   ^
/Users/erik/pyside/_build/PySide/QtCore/PySide/QtCore/qabstractitemmodel_wrapper.cpp:954:81:
error: use of undeclared identifier 'SBK_QT_ORIENTATION_IDX'

Shiboken::Conversions::copyToPython(SBK_CONVERTER(SbkPySide_QtCoreTypes[SBK_QT_ORIENTATION_IDX]),
&orientation),

    ^
/Users/erik/shiboken-1.1.2/_output/include/shiboken/sbkconverter.h:338:68:
note: expanded from macro 'SBK_CONVERTER'
#define SBK_CONVERTER(pyType)
(*reinterpret_cast<_SbkGenericType*>(pyType)->converter)
                                                                   ^
/Users/erik/pyside/_build/PySide/QtCore/PySide/QtCore/qabstractitemmodel_wrapper.cpp:2967:114:
error: use of undeclared identifier 'SBK_QT_ORIENTATION_IDX'
        && (pythonToCpp[1] =
Shiboken::Conversions::isPythonToCppConvertible(SBK_CONVERTER(SbkPySide_QtCoreTypes[SBK_QT_ORIENTATION_IDX]),
(pyArgs[1])))) {

                                     ^
/Users/erik/shiboken-1.1.2/_output/include/shiboken/sbkconverter.h:338:68:
note: expanded from macro 'SBK_CONVERTER'
#define SBK_CONVERTER(pyType)
(*reinterpret_cast<_SbkGenericType*>(pyType)->converter)
                                                                   ^
/Users/erik/pyside/_build/PySide/QtCore/PySide/QtCore/qabstractitemmodel_wrapper.cpp:3568:126:
error: use of undeclared identifier 'SBK_QFLAGS_QT_MATCHFLAG__IDX'
            } else if ((pythonToCpp[4] =
Shiboken::Conversions::isPythonToCppConvertible(SBK_CONVERTER(SbkPySide_QtCoreTypes[SBK_QFLAGS_QT_MATCHFLAG__IDX]),
(pyArgs[4])))) {

                                                 ^
/Users/erik/shiboken-1.1.2/_output/include/shiboken/sbkconverter.h:338:68:
note: expanded from macro 'SBK_CONVERTER'
#define SBK_CONVERTER(pyType)
(*reinterpret_cast<_SbkGenericType*>(pyType)->converter)
                                                                   ^
/Users/erik/pyside/_build/PySide/QtCore/PySide/QtCore/qabstractitemmodel_wrapper.cpp:3595:124:
error: use of undeclared identifier 'SBK_QFLAGS_QT_MATCHFLAG__IDX'
                if (!(pythonToCpp[4] =
Shiboken::Conversions::isPythonToCppConvertible(SBK_CONVERTER(SbkPySide_QtCoreTypes[SBK_QFLAGS_QT_MATCHFLAG__IDX]),
(pyArgs[4]))))

                                               ^
/Users/erik/shiboken-1.1.2/_output/include/shiboken/sbkconverter.h:338:68:
note: expanded from macro 'SBK_CONVERTER'
#define SBK_CONVERTER(pyType)
(*reinterpret_cast<_SbkGenericType*>(pyType)->converter)
                                                                   ^
/Users/erik/pyside/_build/PySide/QtCore/PySide/QtCore/qabstractitemmodel_wrapper.cpp:4479:114:
error: use of undeclared identifier 'SBK_QT_ORIENTATION_IDX'
        && (pythonToCpp[1] =
Shiboken::Conversions::isPythonToCppConvertible(SBK_CONVERTER(SbkPySide_QtCoreTypes[SBK_QT_ORIENTATION_IDX]),
(pyArgs[1])))

                                     ^
/Users/erik/shiboken-1.1.2/_output/include/shiboken/sbkconverter.h:338:68:
note: expanded from macro 'SBK_CONVERTER'
#define SBK_CONVERTER(pyType)
(*reinterpret_cast<_SbkGenericType*>(pyType)->converter)
                                                                   ^
5 warnings and 7 errors generated.
make[2]: ***
[PySide/QtCore/CMakeFiles/QtCore.dir/PySide/QtCore/qabstractitemmodel_wrapper.cpp.o]
Error 1
make[1]: *** [PySide/QtCore/CMakeFiles/QtCore.dir/all] Error 2
make: *** [all] Error 2



shiboken compiled without problem but PySide 1.1.2 and clone from git both
fail. On Linux and Windows I had no problems.

Any pointers appreciated.

Cheers,
Erik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20130517/c716449b/attachment.html>


More information about the PySide mailing list