<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
looks like it is not searching for the headers related to QtQuick. I can see from the logs that it is searching for only QtCore and QtGui headers but not for others. I have the import for the others also in the sip file. Is there any other configuration that
I am missing...</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#000000"><span style="font-variant-ligatures:no-common-ligatures">Reading /Users/sum10122/pythonBindingsEnv/sip/build/Qt/Qt.pro</span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#000000"><span style="font-variant-ligatures:no-common-ligatures">Compiling the project...</span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#000000"><span style="font-variant-ligatures:no-common-ligatures">make</span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#000000"><span style="font-variant-ligatures:no-common-ligatures">cd Qt/ && ( test -e Makefile || /usr/local/opt/qt/bin/qmake -o Makefile /Users/sum10122/pythonBindingsEnv/sip/build/Qt/Qt.pro
) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile<span class="Apple-converted-space"> </span></span></p>
<p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);">
<span style="font-variant-ligatures: no-common-ligatures;">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -O2 -std=gnu++11<span class="Apple-converted-space" style="font-weight: normal;">
</span>-arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.13 -fno-exceptions -Wall -Wextra -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_EXCEPTIONS
-DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -I.. -I/usr/local/Cellar/python@3.9/3.9.1_5/Frameworks/Python.framework/Versions/3.9/include/python3.9
<b>-I/usr/local/Cellar/qt/5.15.2/lib/QtGui.framework/Headers -I/usr/local/Cellar/qt/5.15.2/lib/QtCore.framework/Headers
</b>-I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/AGL.framework/Headers
-I/usr/local/Cellar/qt/5.15.2/mkspecs/macx-clang -F/usr/local/Cellar/qt/5.15.2/lib -o sipQtcmodule.o sipQtcmodule.cpp</span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#000000"><span style="font-variant-ligatures:no-common-ligatures">In file included from sipQtcmodule.cpp:7:</span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#000000"><span style="font-variant-ligatures:no-common-ligatures">/Users/sum10122/pythonBindingsEnv/lib/python3.9/site-packages/PyQt5/bindings/QtQuick/qquickitem.sip:26:10: fatal error: 'qquickitem.h'
file not found</span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#000000"><span style="font-variant-ligatures:no-common-ligatures">#include <qquickitem.h></span></p>
<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Phil Thompson <phil@riverbankcomputing.com><br>
<b>Sent:</b> Thursday, April 29, 2021 9:26 PM<br>
<b>To:</b> Suman Chatterjee <sum_chat@hotmail.com><br>
<b>Cc:</b> pyqt@riverbankcomputing.com <pyqt@riverbankcomputing.com><br>
<b>Subject:</b> Re: need help with the .toml file. Not able to find the Qt headers</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">On 29/04/2021 20:04, Suman Chatterjee wrote:<br>
> Hi,<br>
> I am writing a .toml file to generate the Python bindings for a C++<br>
> library like below<br>
> <br>
> # Specify the build system requirements.<br>
> [build-system]<br>
> requires = ["sip >=5.3, <7", "PyQt-builder >=1.6, <2"]<br>
> build-backend = "sipbuild.api"<br>
> <br>
> # Specify the PEP 566 metadata for the project.<br>
> [tool.sip.metadata]<br>
> name = "ABC"<br>
> version = "100.10"<br>
> summary = "Python bindings for the ArcGIS Runtime library"<br>
> home-page = "<a href="https://www.xxx.com">https://www.xxx.com</a>"<br>
> author = "xxx"<br>
> <br>
> license = "GPL v3"<br>
> requires-dist = "PyQt5 (>=5.15)"<br>
> description-file = "README"<br>
> <br>
> # Configure the building of the fib bindings.<br>
> [tool.sip.bindings.ABC]<br>
> <br>
> include-dirs = ["~/ABC_SDKs/Qt100.10/sdk/include"]<br>
> <br>
> # Specify a PyQt-based project.<br>
> [tool.sip]<br>
> project-factory = "pyqtbuild:PyQtProject"<br>
> # Configure the project.<br>
> [tool.sip.project]<br>
> tag-prefix = "ABC"<br>
> <br>
> <br>
> Now when I run sip-install. I am getting the below error<br>
> <br>
> <br>
> /Users/xxx/pythonBindingsEnv/lib/python3.9/site-packages/PyQt5/bindings/QtQuick/qquickitem.sip:26:10:<br>
> fatal error: 'qquickitem.h' file not found<br>
> <br>
> #include <qquickitem.h><br>
> <br>
> ^~~~~~~~~~~~~~<br>
> <br>
> <br>
> So my question is Do I need to copy all the QT headers files in a<br>
> folder and add that in the Include-Dirs section of the .toml file. I<br>
> have the Qt installation added to my PATH like as below<br>
> <br>
> <br>
> export PATH=/usr/local/opt/qt/bin:$PATH<br>
> <br>
> <br>
> But somehow it is not able to find them. But the similiar .toml file<br>
> worked when I did for the QtCharts. Seems like if I include any other<br>
> folder then it does not search in other paths.<br>
<br>
include-dirs isn't used to find the Qt .h files. qmake is the bit that <br>
knows where they are. Run 'qmake -query' to see where it thinks they <br>
are. Also looking at the generated .pro and Makefiles may give you some <br>
clues.<br>
<br>
Phil<br>
</div>
</span></font></div>
</div>
</body>
</html>