-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while compiling klayout 0.28 #46
Comments
|
Hi @dsus4wang, Thanks for this report. I keep track of Qt6 migration-related issues in #45, and occasionally send reports to Matthias. It looks like you are using an M1 Mac, which I do not have.
Meanwhile, I'll build the latest commit '0.28.2-mac1 branch' on my Intel Mac, and share the build results in this ticket.
Warm regards, |
I got similar errors on my Intel Mac, too. ===> #45 (comment) |
I'm planning to try Qt6 from MacPorts.
|
Improvement and progress! ==> #45 (comment) |
Dear Kazzz-S,
these are the last a few line of log,could you please help me ?thanks! |
Hi @dsus4wang, The last few lines of the log you attached above do not contain any "error" messages or strings. Kazzz-S |
qt5Brew.build.macos-Monterey-debug-RsysPhbauto.log |
Hi @dsus4wang, Thanks for sharing the log file. As noted here, you need to modify two System Ruby header files. config.h
intern.h
Kazzz-S |
Thanks for your help,I've successfully compiled klayout 0.28 |
Dear Kazzz-S,
I just tried to compile klayout using parameter python3 build4mac.py -q Qt6Brew -r Sys -p HBAuto
but there was an error
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -std=c++17 -fvisibility=hidden -O2 -std=gnu++1z -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -mmacosx-version-min=13.0 -Wall -Wextra -pedantic -Woverloaded-virtual -Wsynth -Wno-deprecated -Wno-long-long -Wno-strict-aliasing -Wno-deprecated-declarations -fPIC -DHAVE_QTBINDINGS -DHAVE_PYTHON -DHAVE_RUBY -DHAVE_RUBY_VERSION_CODE=20610 -DHAVE_QT -DHAVE_QT_UITOOLS -DHAVE_QT_NETWORK -DHAVE_QT_SQL -DHAVE_QT_SVG -DHAVE_QT_PRINTSUPPORT -DHAVE_QT_MULTIMEDIA -DHAVE_QT_DESIGNER -DHAVE_QT_XML -DKLAYOUT_VERSION=0.28.2 -DKLAYOUT_VERSION_REV=LatestSourcePackage -DKLAYOUT_VERSION_DATE=2022-12-26 -DKLAYOUT_MAJOR_VERSION=0 -DKLAYOUT_MINOR_VERSION=28 -DKLAYOUT_TINY_VERSION=2 -DMAKE_GSI_QTCORE_LIBRARY -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_DESIGNER_LIB -DQT_UIPLUGIN_LIB -DQT_UITOOLS_LIB -DQT_OPENGLWIDGETS_LIB -DQT_MULTIMEDIAWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_OPENGL_LIB -DQT_MULTIMEDIA_LIB -DQT_SVG_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE5COMPAT_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I../../../../src/gsiqt/qt6/QtCore -I/Users/lycore01/Downloads/klayout-0.28.2-mac1/qt6Brew.build.macos-Ventura-release-RsysPhbauto/gsiqt/qt6/QtCore -I../../../../src/tl/tl -I../../../../src/gsi/gsi -I../../../../src/db/db -I../../../../src/gsiqt/qtbasic -I/opt/homebrew/lib/QtPrintSupport.framework/Headers -I/opt/homebrew/lib/QtDesigner.framework/Headers -I/opt/homebrew/include -I/opt/homebrew/include/QtUiPlugin -I/opt/homebrew/lib/QtUiTools.framework/Headers -I/opt/homebrew/lib/QtOpenGLWidgets.framework/Headers -I/opt/homebrew/lib/QtMultimediaWidgets.framework/Headers -I/opt/homebrew/lib/QtWidgets.framework/Headers -I/opt/homebrew/lib/QtOpenGL.framework/Headers -I/opt/homebrew/lib/QtMultimedia.framework/Headers -I/opt/homebrew/lib/QtSvg.framework/Headers -I/opt/homebrew/lib/QtGui.framework/Headers -I/opt/homebrew/lib/QtXml.framework/Headers -I/opt/homebrew/lib/QtNetwork.framework/Headers -I/opt/homebrew/lib/QtCore5Compat.framework/Headers -I/opt/homebrew/lib/QtSql.framework/Headers -I/opt/homebrew/lib/QtCore.framework/Headers -I/Users/lycore01/Downloads/klayout-0.28.2-mac1/qt6Brew.build.macos-Ventura-release-RsysPhbauto/gsiqt/qt6/QtCore -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/AGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk/System/Library/Frameworks/AGL.framework/Headers -I/opt/homebrew/share/qt/mkspecs/macx-clang -F/opt/homebrew/lib -o gsiDeclQJsonDocument.o ../../../../src/gsiqt/qt6/QtCore/gsiDeclQJsonDocument.cc ../../../../src/gsiqt/qt6/QtCore/gsiDeclQJsonArray_Const_iterator.cc:145:36: error: no matching conversion for C-style cast from 'const QJsonValueConstRef' to 'const QJsonValueRef' ret.write<const QJsonValueRef > ((const QJsonValueRef)((QJsonArray::const_iterator *)cls)->operator* ()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:221:5: note: candidate constructor not viable: no known conversion from 'const QJsonValueConstRef' to 'const QJsonValueRef' for 1st argument QJsonValueRef(const QJsonValueRef &) = default; ^ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:229:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided QJsonValueRef(QJsonArray *array, qsizetype idx) ^ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:231:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided QJsonValueRef(QJsonObject *object, qsizetype idx) ^ ../../../../src/gsiqt/qt6/QtCore/gsiDeclQJsonArray_Const_iterator.cc:456:30: error: no matching conversion for C-style cast from 'QJsonValueConstRef' to 'QJsonValueRef' ret.write<QJsonValueRef > ((QJsonValueRef)((QJsonArray::const_iterator *)cls)->operator[] (arg1)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:221:5: note: candidate constructor not viable: no known conversion from 'QJsonValueConstRef' to 'const QJsonValueRef' for 1st argument QJsonValueRef(const QJsonValueRef &) = default; ^ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:229:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided QJsonValueRef(QJsonArray *array, qsizetype idx) ^ /opt/homebrew/lib/QtCore.framework/Headers/qjsonvalue.h:231:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided QJsonValueRef(QJsonObject *object, qsizetype idx) ^ 2 errors generated. make[3]: *** [gsiDeclQJsonArray_Const_iterator.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [sub-QtCore-make_first] Error 2 make[1]: *** [sub-qt6-make_first] Error 2 make: *** [sub-gsiqt-make_first] Error 2
Could you help me solve this problem?thank you
The text was updated successfully, but these errors were encountered: