ggobi / qtbase

Dynamic bindings from R to the Qt library
20 stars 7 forks source link

compilation issues in High Sierra macOS #38

Closed ryellow closed 6 years ago

ryellow commented 7 years ago

Hello, fresh install Qt 5.9.2 and cmake 3.8.1. macOS High Sierra, Xcode. qtbase downloaded as zip from here.

Here is the terminal output:

Scanning dependencies of target smokeqt [ 45%] Building CXX object kdebindings/smoke/qt/CMakeFiles/smokeqt.dir/smokedata.cpp.o [ 46%] Building CXX object kdebindings/smoke/qt/CMakeFiles/smokeqt.dir/x_1.cpp.o [ 47%] Building CXX object kdebindings/smoke/qt/CMakeFiles/smokeqt.dir/x_2.cpp.o [ 48%] Building CXX object kdebindings/smoke/qt/CMakeFiles/smokeqt.dir/x_3.cpp.o [ 49%] Building CXX object kdebindings/smoke/qt/CMakeFiles/smokeqt.dir/x_4.cpp.o Downloads/qtbase-master/src-build/kdebindings/smoke/qt/x_4.cpp:3920:59: error: argument type 'qfloat16' is incomplete QDataStream& xret = this->QDataStream::operator<<((qfloat16)x[1].s_class); ^~~~~~~~ /Volumes/IOMEGA/Qt/5.9.2/clang_64/lib/QtCore.framework/Headers/qdatastream.h:53:7: note: forward declaration of 'qfloat16' class qfloat16; ^ Downloads/qtbase-master/src-build/kdebindings/smoke/qt/x_4.cpp:5813:49: error: cannot refer to type member 'QDateTime' in '__smokeqt::x_QDateTime' with '->' x[0].s_class = (void*)&this->QDateTime::QDateTime; ^ /Volumes/IOMEGA/Qt/5.9.2/clang_64/lib/QtCore.framework/Headers/qdatetime.h:210:21: note: member 'QDateTime' declared here class Q_CORE_EXPORT QDateTime ^ 2 errors generated. make[3]: [kdebindings/smoke/qt/CMakeFiles/smokeqt.dir/x_4.cpp.o] Error 1 make[2]: [kdebindings/smoke/qt/CMakeFiles/smokeqt.dir/all] Error 2 make[1]: [all] Error 2 make: [all] Error 2 ERROR: compilation failed for package ‘qtbase’

Any other users face this? Are those errors known?

Mageshwar commented 7 years ago

Were you able to fix this issue? I'm facing it as well. Thanks :)

ryellow commented 7 years ago

No, I'm sorry.

lawremi commented 7 years ago

Thanks for the report. I had missed this somehow. I will look into it. In the meantime, you could try using an older version of Qt.

lawremi commented 6 years ago

I am still working on this.. the parser does not have support for cxx11 features that Qt is now using.

lawremi commented 6 years ago

Just pushed some fixes. Seems to build on my Mac, and binds to all of Qt.