[M3devel] Qt bindings, was: Re: Bootstrapping cm3 on OS X 10.9.5

Olaf Wagner wagner at elegosoft.com
Thu May 21 17:50:16 CEST 2015


On Thu, 21 May 2015 12:07:53 +0200
Elmar Stellnberger <estellnb at elstel.org> wrote:

> Dear Olaf,
> 
> I have Mac OS 10.7.5 here and would like to give your new binaries a try.
> Do the binaries include a version of Qt or will I have to install qt4/5 in addition to your binaries?
> It should not be a problem for me if Qt is only available to C/C++ externals.

I just gave that a try. QtEventLoopRaw.m3 cannot be found:

=== package m3-ui/qt/m3qtcore ===
 +++ cm3 -build -override $RARGS -DROOT='/Users/wagner/work/cm3'  +++
--- building in AMD64_DARWIN ---

unable to read ../src/m3overrides, options "-override" and "-x" ignored.
compiling ../src/dynamicqobject.cxx
compiling ../src/QtNamespace_wrap.cxx
compiling ../src/QtDynamic_wrap.cxx
../src/QtDynamic_wrap.cxx:164:3: warning: delete called on 'AbstractDynamicSlot' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor]
  delete arg1;
  ^
1 warning generated.
compiling ../src/QtCoreApplication_wrap.cxx
compiling ../src/QtByteArray_wrap.cxx
compiling ../src/QtString_wrap.cxx
compiling ../src/QtList_wrap.cxx
compiling ../src/QtStringList_wrap.cxx
compiling ../src/QtEventLoop_wrap.cxx
compiling ../src/QtEvent_wrap.cxx
../src/QtEvent_wrap.cxx:376:23: warning: 'QDynamicPropertyChangeEvent_propertyName' has C-linkage specified, but returns user-defined type 'QByteArray' which is incompatible with C
      [-Wreturn-type-c-linkage]
SWIGEXPORT QByteArray QDynamicPropertyChangeEvent_propertyName(QDynamicPropertyChangeEvent const * self) {
                      ^
1 warning generated.
compiling ../src/QtObject_wrap.cxx
compiling ../src/QtPoint_wrap.cxx
../src/QtPoint_wrap.cxx:472:21: warning: 'QPointF_rx' has C-linkage specified, but returns user-defined type 'double &' which is incompatible with C [-Wreturn-type-c-linkage]
SWIGEXPORT double & QPointF_rx(QPointF * self) {
                    ^
../src/QtPoint_wrap.cxx:484:21: warning: 'QPointF_ry' has C-linkage specified, but returns user-defined type 'double &' which is incompatible with C [-Wreturn-type-c-linkage]
SWIGEXPORT double & QPointF_ry(QPointF * self) {
                    ^
2 warnings generated.
compiling ../src/QtLine_wrap.cxx
compiling ../src/QtSize_wrap.cxx
../src/QtSize_wrap.cxx:584:21: warning: 'QSizeF_rwidth' has C-linkage specified, but returns user-defined type 'double &' which is incompatible with C [-Wreturn-type-c-linkage]
SWIGEXPORT double & QSizeF_rwidth(QSizeF * self) {
                    ^
../src/QtSize_wrap.cxx:596:21: warning: 'QSizeF_rheight' has C-linkage specified, but returns user-defined type 'double &' which is incompatible with C [-Wreturn-type-c-linkage]
SWIGEXPORT double & QSizeF_rheight(QSizeF * self) {
                    ^
2 warnings generated.
compiling ../src/QtRect_wrap.cxx
compiling ../src/QtDateTime_wrap.cxx
compiling ../src/QtMargins_wrap.cxx
compiling ../src/QtAbstractItemModel_wrap.cxx
../src/QtAbstractItemModel_wrap.cxx:266:26: warning: 'QModelIndex_flags' has C-linkage specified, but returns user-defined type 'Qt::ItemFlags' (aka 'QFlags<Qt::ItemFlag>') which is
      incompatible with C [-Wreturn-type-c-linkage]
SWIGEXPORT Qt::ItemFlags QModelIndex_flags(QModelIndex const * self) {
                         ^
../src/QtAbstractItemModel_wrap.cxx:416:26: warning: 'QPersistentModelIndex_flags' has C-linkage specified, but returns user-defined type 'Qt::ItemFlags'
      (aka 'QFlags<Qt::ItemFlag>') which is incompatible with C [-Wreturn-type-c-linkage]
SWIGEXPORT Qt::ItemFlags QPersistentModelIndex_flags(QPersistentModelIndex const * self) {
                         ^
../src/QtAbstractItemModel_wrap.cxx:652:28: warning: 'QAbstractItemModel_supportedDropActions' has C-linkage specified, but returns user-defined type 'Qt::DropActions'
      (aka 'QFlags<Qt::DropAction>') which is incompatible with C [-Wreturn-type-c-linkage]
SWIGEXPORT Qt::DropActions QAbstractItemModel_supportedDropActions(QAbstractItemModel * self) {
                           ^
../src/QtAbstractItemModel_wrap.cxx:662:28: warning: 'QAbstractItemModel_supportedDragActions' has C-linkage specified, but returns user-defined type 'Qt::DropActions'
      (aka 'QFlags<Qt::DropAction>') which is incompatible with C [-Wreturn-type-c-linkage]
SWIGEXPORT Qt::DropActions QAbstractItemModel_supportedDragActions(QAbstractItemModel * self) {
                           ^
../src/QtAbstractItemModel_wrap.cxx:962:26: warning: 'QAbstractItemModel_flags' has C-linkage specified, but returns user-defined type 'Qt::ItemFlags' (aka 'QFlags<Qt::ItemFlag>')
      which is incompatible with C [-Wreturn-type-c-linkage]
SWIGEXPORT Qt::ItemFlags QAbstractItemModel_flags(QAbstractItemModel * self, QModelIndex const & index) {
                         ^
5 warnings generated.
unable to open file for reading: ../src/QtEventLoopRaw.m3: errno=2
open failed on: ../src/QtEventLoopRaw.m3

Fatal Error: failed compiling: 

 *** execution of cm3 -build -override $RARGS -DROOT='/Users/wagner/work/cm3'  failed ***
elegos-MacBook-Pro:cm3 wagner$ find m3-ui -name '*EventLoop*' -print
m3-ui/qt/m3qtcore/AMD64_DARWIN/QtEventLoop.io
m3-ui/qt/m3qtcore/AMD64_DARWIN/QtEventLoop_wrap.o
m3-ui/qt/m3qtcore/AMD64_DARWIN/QtEventLoopRaw.io
m3-ui/qt/m3qtcore/src/QtEventLoop.i3
m3-ui/qt/m3qtcore/src/QtEventLoop.m3
m3-ui/qt/m3qtcore/src/QtEventLoop_wrap.cxx
m3-ui/qt/m3qtcore/src/QtEventLoop_wrap.o
m3-ui/qt/m3qtcore/src/QtEventLoopRaw.i3
m3-ui/qt/m3qtcore/src/swig/QtEventLoop.i

The warnings seem to indicate that there may be more problems.

I installed qt 4.8.6 via brew:
elegos-MacBook-Pro:cm3 wagner$ brew install qt
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/qt-4.8.6.mavericks.bottle.6.tar.gz
######################################################################## 100.0%
==> Pouring qt-4.8.6.mavericks.bottle.6.tar.gz
==> Caveats
We agreed to the Qt opensource license for you.
If this is unacceptable you should uninstall.

.app bundles were installed.
Run `brew linkapps` to symlink these to /Applications.
==> Summary
  /usr/local/Cellar/qt/4.8.6: 2790 files, 122M

Any advice what I did wrong?

Olaf
-- 
Olaf Wagner -- elego Software Solutions GmbH -- http://www.elegosoft.com 
               Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
phone: +49 30 23 45 86 96  mobile: +49 177 2345 869  fax: +49 30 23 45 86 95
Geschäftsführer: Olaf Wagner | Sitz: Berlin
Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194



More information about the M3devel mailing list