Hi Neil,
I am try to build Qt ScintillaEditPy in Mac OS X 10.8.2 using PySide
1.1.1 and Qt 4.8.0.
Here's the error below using
pyhton sepbuild.py
I am using this version
hg clone
http://scintilla.hg.sourceforge.net:8000/hgroot/scintilla/scintilla
How do we fix this error?
Is the any alternative build instruction using cmake or the usual
linux build (i.e. configure, make, make install) for Qt Scintilla for
PySide?
Thanks.
Noli
####################
Nolis-MacBook-Pro:ScintillaEditPy nsicad$ python sepbuild.py
/usr/bin/shiboken --generator-set=shiboken global.h
--avoid-protected-hack --enable-pyside-extensions
--include-paths=/usr/include:/usr/include/QtCore:/usr/include/QtGui:.:../ScintillaEdit:../ScintillaEditBase:../../include:/usr/include/shiboken:/usr/include/PySide:/usr/include/PySide/QtCore:/usr/include/PySide/QtGui
--typesystem-paths=/usr/share/PySide/typesystems --output-directory=.
typesystem_ScintillaEdit.xml
./QtCore.framework/Headers/qglobal.h
/usr/include/QtCore.framework/Headers/qglobal.h
/usr/include/QtCore/QtCore.framework/Headers/qglobal.h
/usr/include/QtGui/QtCore.framework/Headers/qglobal.h
./QtCore.framework/Headers/qglobal.h
../ScintillaEdit/QtCore.framework/Headers/qglobal.h
../ScintillaEditBase/QtCore.framework/Headers/qglobal.h
../../include/QtCore.framework/Headers/qglobal.h
/usr/include/shiboken/QtCore.framework/Headers/qglobal.h
/usr/include/PySide/QtCore.framework/Headers/qglobal.h
/usr/include/PySide/QtCore/QtCore.framework/Headers/qglobal.h
/usr/include/PySide/QtGui/QtCore.framework/Headers/qglobal.h
/usr/include/QtCore.framework/Headers/qglobal.h
./QtCore.framework/Headers/qiodevice.h
.
.
.
../ScintillaEditBase/QtGui.framework/Headers/qmatrix4x4.h
../../include/QtGui.framework/Headers/qmatrix4x4.h
/usr/include/shiboken/QtGui.framework/Headers/qmatrix4x4.h
/usr/include/PySide/QtGui.framework/Headers/qmatrix4x4.h
/usr/include/PySide/QtCore/QtGui.framework/Headers/qmatrix4x4.h
/usr/include/PySide/QtGui/QtGui.framework/Headers/qmatrix4x4.h
/usr/include/QtGui.framework/Headers/qmatrix4x4.h
** WARNING scope not found for function definition:QFutureInterface<T>::future
definition *ignored*
** WARNING scope not found for function
definition:QFutureInterface<void>::future
definition *ignored*
Generating class model... [WARNING]
Unable to decide type of property: 'Qt::CursorMoveStyle' in class 'QLineEdit'
enum 'QFont::HintingPreference' does not have a type entry or is not an enum
Unable to decide type of property: 'SoftKeyRole' in class 'QAction'
Unable to decide type of property: 'Priority' in class 'QAction'
enum 'QStyle::RequestSoftwareInputPanel' does not have a type entry
or is not an enum
enum 'QFile::FileHandleFlag' does not have a type entry or is not an enum
enum 'QXmlStreamReader::ReadElementTextBehaviour' does not have a
type entry or is not an enum
enum 'QLocale::CurrencySymbolFormat' does not have a type entry or is
not an enum
enum 'QAction::SoftKeyRole' does not have a type entry or is not an enum
enum 'QLocale::Script' does not have a type entry or is not an enum
Unable to decide type of property: 'QEasingCurve' in class 'QTimeLine'
enum 'QGraphicsItem::PanelModality' does not have a type entry or is
not an enum
enum 'QLocale::QuotationStyle' does not have a type entry or is not an enum
enum 'QDataStream::FloatingPointPrecision' does not have a type entry
or is not an enum
enum 'QTextDocument::Stacks' does not have a type entry or is not an enum
Unable to decide type of property: 'Qt::InputMethodHints' in class 'QWidget'
enum 'QPainter::PixmapFragmentHint' does not have a type entry or is
not an enum
enum 'QAction::Priority' does not have a type entry or is not an enum
enum 'QTextBlockFormat::LineHeightTypes' does not have a type entry
or is not an enum
Generating enum model... [OK]
Generating namespace model... [WARNING]
enum 'Qt::CursorMoveStyle' does not have a type entry or is not an enum
enum 'Qt::TouchPointState' does not have a type entry or is not an enum
enum 'Qt::GestureFlag' does not have a type entry or is not an enum
enum 'Qt::TileRule' does not have a type entry or is not an enum
enum 'Qt::AnchorPoint' does not have a type entry or is not an enum
enum 'Qt::GestureType' does not have a type entry or is not an enum
enum 'Qt::CoordinateSystem' does not have a type entry or is not an enum
enum 'Qt::InputMethodHint' does not have a type entry or is not an enum
Resolving typedefs... [OK]
Fixing class inheritance... [WARNING]
unknown baseclass for 'QInputContext': 'QObject'
unknown baseclass for 'QSyntaxHighlighter': 'QObject'
unknown baseclass for 'QFileSystemModel': 'QAbstractItemModel'
unknown baseclass for 'QSettings': 'QObject'
unknown baseclass for 'QMoveEvent': 'QEvent'
unknown baseclass for 'QGraphicsSceneEvent': 'QEvent'
unknown baseclass for 'QWindowStateChangeEvent': 'QEvent'
signal 'itemChanged' in non-QObject class 'QStandardItemModel'
unknown baseclass for 'QValidator': 'QObject'
unknown baseclass for 'QDropEvent': 'QEvent'
unknown baseclass for 'QShowEvent': 'QEvent'
signal 'fontDatabaseChanged' in non-QObject class 'QApplication'
unknown baseclass for 'QIODevice': 'QObject'
unknown baseclass for 'QCloseEvent': 'QEvent'
unknown baseclass for 'QShortcut': 'QObject'
unknown baseclass for 'QThreadPool': 'QObject'
class 'QGraphicsWidget' inherits from unknown base class 'QGraphicsObject'
unknown baseclass for 'QStandardItemModel': 'QAbstractItemModel'
unknown baseclass for 'QClipboardEvent': 'QEvent'
unknown baseclass for 'QGraphicsItemAnimation': 'QObject'
unknown baseclass for 'QStringListModel': 'QAbstractListModel'
unknown baseclass for 'QHoverEvent': 'QEvent'
signal 'focusChanged' in non-QObject class 'QApplication'
unknown baseclass for 'QFileOpenEvent': 'QEvent'
unknown baseclass for 'QGraphicsScene': 'QObject'
unknown baseclass for 'QItemSelectionModel': 'QObject'
unknown baseclass for 'QSessionManager': 'QObject'
unknown baseclass for 'QAccessibleEvent': 'QEvent'
unknown baseclass for 'QShortcutEvent': 'QEvent'
unknown baseclass for 'QActionGroup': 'QObject'
unknown baseclass for 'QApplication': 'QCoreApplication'
unknown baseclass for 'QToolBarChangeEvent': 'QEvent'
unknown baseclass for 'QFileSystemWatcher': 'QObject'
unknown baseclass for 'QDirModel': 'QAbstractItemModel'
unknown baseclass for 'QStatusTipEvent': 'QEvent'
unknown baseclass for 'QAbstractTextDocumentLayout': 'QObject'
signal 'directoryLoaded' in non-QObject class 'QFileSystemModel'
unknown baseclass for 'QStyle': 'QObject'
unknown baseclass for 'QProxyModel': 'QAbstractItemModel'
signal 'rootPathChanged' in non-QObject class 'QFileSystemModel'
unknown baseclass for 'QActionEvent': 'QEvent'
unknown baseclass for 'QWhatsThisClickedEvent': 'QEvent'
unknown baseclass for 'QDragLeaveEvent': 'QEvent'
unknown baseclass for 'QFocusEvent': 'QEvent'
class 'QGraphicsTextItem' inherits from unknown base class 'QGraphicsObject'
signal 'lastWindowClosed' in non-QObject class 'QApplication'
unknown baseclass for 'ScintillaDocument': 'QObject'
unknown baseclass for 'QUndoStack': 'QObject'
unknown baseclass for 'QUndoGroup': 'QObject'
unknown baseclass for 'QSound': 'QObject'
unknown baseclass for 'QAbstractProxyModel': 'QAbstractItemModel'
unknown baseclass for 'QDataWidgetMapper': 'QObject'
signal 'saveStateRequest' in non-QObject class 'QApplication'
unknown baseclass for 'QInputMethodEvent': 'QEvent'
unknown baseclass for 'QAbstractItemDelegate': 'QObject'
unknown baseclass for 'QMovie': 'QObject'
unknown baseclass for 'QAbstractEventDispatcher': 'QObject'
unknown baseclass for 'QIconDragEvent': 'QEvent'
unknown baseclass for 'QTextDocument': 'QObject'
unknown baseclass for 'QInputEvent': 'QEvent'
signal 'commitDataRequest' in non-QObject class 'QApplication'
class not found for setup inheritance 'QGraphicsObject'
unknown baseclass for 'QHideEvent': 'QEvent'
signal 'fileRenamed' in non-QObject class 'QFileSystemModel'
unknown baseclass for 'QHelpEvent': 'QEvent'
unknown baseclass for 'QTimeLine': 'QObject'
unknown baseclass for 'QTextObject': 'QObject'
unknown baseclass for 'QSystemTrayIcon': 'QObject'
unknown baseclass for 'QCompleter': 'QObject'
unknown baseclass for 'QPaintEvent': 'QEvent'
unknown baseclass for 'QResizeEvent': 'QEvent'
unknown baseclass for 'QDrag': 'QObject'
unknown baseclass for 'QPluginLoader': 'QObject'
unknown baseclass for 'QThread': 'QObject'
class not found for setup inheritance 'QObject'
unknown baseclass for 'QAction': 'QObject'
unknown baseclass for 'QClipboard': 'QObject'
unknown baseclass for 'QButtonGroup': 'QObject'
Detecting inconsistencies in class model... [WARNING]
Final class 'QDropEvent' set to non-final, as it is extended by other classes
Final class 'QInputEvent' set to non-final, as it is extended by other classes
Final class 'QDragMoveEvent' set to non-final, as it is extended by
other classes
[OK]
type 'QMimeData' is specified in typesystem, but not defined. This
could potentially lead to compilation errors.
type 'QAbstractTableModel' is specified in typesystem, but not
defined. This could potentially lead to compilation errors.
enum 'QSysInfo::Endian' is specified in typesystem, but not declared
enum 'Qt::TextFlag' is specified in typesystem, but not declared
enum 'QEventLoop::ProcessEventsFlag' is specified in typesystem, but
not declared
enum 'Qt::MatchFlag' is specified in typesystem, but not declared
type 'QChildEvent' is specified in typesystem, but not defined. This
could potentially lead to compilation errors.
type 'QBasicTimer' is specified in typesystem, but not defined. This
could potentially lead to compilation errors.
type 'QTranslator' is specified in typesystem, but not defined. This
could potentially lead to compilation errors.
enum 'QSysInfo::Sizes' is specified in typesystem, but not declared
enum 'Qt::BGMode' is specified in typesystem, but not declared
enum 'Qt::FocusPolicy' is specified in typesystem, but not declared
enum 'Qt::ToolButtonStyle' is specified in typesystem, but not declared
type 'QObject' is specified in typesystem, but not defined. This
could potentially lead to compilation errors.
enum 'QSocketNotifier::Type' is specified in typesystem, but not declared
type 'QSysInfo' is specified in typesystem, but not defined. This
could potentially lead to compilation errors.
enum 'Qt::Orientation' is specified in typesystem, but not declared
type 'QSignalMapper' is specified in typesystem, but not defined.
This could potentially lead to compilation errors.
enum 'QtValidLicenseForMultimediaModule' is specified in typesystem,
but not declared
type 'QAbstractItemModel' is specified in typesystem, but not
defined. This could potentially lead to compilation errors.
type 'QTimer' is specified in typesystem, but not defined. This could
potentially lead to compilation errors.
enum 'Qt::Modifier' is specified in typesystem, but not declared
type 'QDynamicPropertyChangeEvent' is specified in typesystem, but
not defined. This could potentially lead to compilation errors.
type 'QEvent' is specified in typesystem, but not defined. This could
potentially lead to compilation errors.
enum 'Qt::CheckState' is specified in typesystem, but not declared
type 'QSystemSemaphore' is specified in typesystem, but not defined.
This could potentially lead to compilation errors.
enum 'Qt::WidgetAttribute' is specified in typesystem, but not declared
enum 'Qt::EventPriority' is specified in typesystem, but not declared
enum 'QtMsgType' is specified in typesystem, but not declared
enum 'QtValidLicenseForDeclarativeModule' is specified in typesystem,
but not declared
enum 'QSystemSemaphore::AccessMode' is specified in typesystem, but
not declared
enum 'QEvent::Type' is specified in typesystem, but not declared
enum 'Qt::WindowState' is specified in typesystem, but not declared
type 'QEventLoop' is specified in typesystem, but not defined. This
could potentially lead to compilation errors.
type 'QTextCodec::ConverterState' is specified in typesystem, but not
defined. This could potentially lead to compilation errors.
type 'QSocketNotifier' is specified in typesystem, but not defined.
This could potentially lead to compilation errors.
enum 'QSystemSemaphore::SystemSemaphoreError' is specified in
typesystem, but not declared
enum 'Qt::ToolBarArea' is specified in typesystem, but not declared
type 'QCoreApplication' is specified in typesystem, but not defined.
This could potentially lead to compilation errors.
enum 'Qt::DateFormat' is specified in typesystem, but not declared
enum 'QCoreApplication::Encoding' is specified in typesystem, but not declared
enum 'QtValidLicenseForOpenVGModule' is specified in typesystem, but
not declared
type 'QTimerEvent' is specified in typesystem, but not defined. This
could potentially lead to compilation errors.
type 'QAbstractListModel' is specified in typesystem, but not
defined. This could potentially lead to compilation errors.
signature 'standardPixmap(QStyle::StandardPixmap,const
QStyleOption*,const QWidget*)const' for function modification in
'QPlastiqueStyle' not found. Possible candidates:
standardPixmap(QStyle::StandardPixmap,const QStyleOption*,const
QWidget*)const in QStyle
signature 'standardPixmap(QStyle::StandardPixmap,const
QStyleOption*,const QWidget*)const' for function modification in
'QCleanlooksStyle' not found. Possible candidates:
standardPixmap(QStyle::StandardPixmap,const QStyleOption*,const
QWidget*)const in QStyle
signature 'standardPixmap(QStyle::StandardPixmap,const
QStyleOption*,const QWidget*)const' for function modification in
'QGtkStyle' not found. Possible candidates:
standardPixmap(QStyle::StandardPixmap,const QStyleOption*,const
QWidget*)const in QStyle
signature 'standardIconImplementation(QStyle::StandardPixmap,const
QStyleOption*,const QWidget*)const' for function modification in
'QPlastiqueStyle' not found. Possible candidates:
standardIconImplementation(QStyle::StandardPixmap,const
QStyleOption*,const QWidget*)const in QWindowsStyle
signature 'standardPixmap(QStyle::StandardPixmap,const
QStyleOption*,const QWidget*)const' for function modification in
'QMotifStyle' not found. Possible candidates:
standardPixmap(QStyle::StandardPixmap,const QStyleOption*,const
QWidget*)const in QStyle
signature 'standardIconImplementation(QStyle::StandardPixmap,const
QStyleOption*,const QWidget*)const' for function modification in
'QCDEStyle' not found. Possible candidates:
standardIconImplementation(QStyle::StandardPixmap,const
QStyleOption*,const QWidget*)const in QCommonStyle
signature 'standardIconImplementation(QStyle::StandardPixmap,const
QStyleOption*,const QWidget*)const' for function modification in
'QMotifStyle' not found. Possible candidates:
standardIconImplementation(QStyle::StandardPixmap,const
QStyleOption*,const QWidget*)const in QCommonStyle
signature 'children()const' for function modification in
'QGraphicsWidget' not found. Possible candidates:
signature 'standardIconImplementation(QStyle::StandardPixmap,const
QStyleOption*,const QWidget*)const' for function modification in
'QCleanlooksStyle' not found. Possible candidates:
standardIconImplementation(QStyle::StandardPixmap,const
QStyleOption*,const QWidget*)const in QWindowsStyle
Done, 161 warnings (1014 known issues)
qmake -spec macx-g++
make
g++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5
-Wall -W -fPIC -DSCINTILLA_QT=1 -DMAKING_LIBRARY=1 -DSCI_LEXER=1
-D_CRT_SECURE_NO_DEPRECATE=1 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_SHARED -I/usr/local/Qt4.8/mkspecs/macx-g++ -I.
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/usr/include/QtCore
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
-I/usr/include/QtGui -I/usr/include -I../ScintillaEdit
-I../ScintillaEditBase -I../../include -I../../lexlib -I../../src
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-I/usr/include/shiboken -I/usr/include/PySide
-I/usr/include/PySide/QtCore -I/usr/include/PySide/QtGui -I.
-F/Library/Frameworks -o scintillaeditpy_module_wrapper.o
ScintillaEditPy/scintillaeditpy_module_wrapper.cpp
g++: error: unrecognized command line option '-Xarch_x86_64'
make: *** [scintillaeditpy_module_wrapper.o] Error 1
Failed in make return code = 2
Nolis-MacBook-Pro:ScintillaEditPy nsicad$