<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);">
Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am writing a .toml file to generate the Python bindings for a C++ library like below</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);">
<span style="font-size: 10pt;"># Specify the build system requirements.</span>
<div><span style="font-size: 10pt;">[build-system]</span></div>
<div><span style="font-size: 10pt;">requires = ["sip >=5.3, <7", "PyQt-builder >=1.6, <2"]</span></div>
<div><span style="font-size: 10pt;">build-backend = "sipbuild.api"</span></div>
<div><br>
</div>
<div><span style="font-size: 10pt;"># Specify the PEP 566 metadata for the project.</span></div>
<div><span style="font-size: 10pt;">[tool.sip.metadata]</span></div>
<div><span style="font-size: 10pt;">name = "ABC"</span></div>
<div><span style="font-size: 10pt;">version = "100.10"</span></div>
<div><span style="font-size: 10pt;">summary = "Python bindings for the ArcGIS Runtime library"</span></div>
<div><span style="font-size: 10pt;">home-page = "https://www.xxx.com"</span></div>
<div><span style="font-size: 10pt;">author = "xxx"</span></div>
<div><br>
</div>
<div><span style="font-size: 10pt;">license = "GPL v3"</span></div>
<div><span style="font-size: 10pt;">requires-dist = "PyQt5 (>=5.15)"</span></div>
<div><span style="font-size: 10pt;">description-file = "README"</span></div>
<div><br>
</div>
<div><span style="font-size: 10pt;"># Configure the building of the fib bindings.</span></div>
<div><span style="font-size: 10pt;">[tool.sip.bindings.ABC]</span></div>
<div><br>
</div>
<div><span style="font-size: 10pt;">include-dirs = ["~/ABC_SDKs/Qt100.10/sdk/include"]</span></div>
<div><br>
</div>
<div><span style="font-size: 10pt;"># Specify a PyQt-based project.</span></div>
<div><span style="font-size: 10pt;">[tool.sip]</span></div>
<div><span style="font-size: 10pt;">project-factory = "pyqtbuild:PyQtProject"</span></div>
<div><span style="font-size: 10pt;"># Configure the project.</span></div>
<div><span style="font-size: 10pt;">[tool.sip.project]</span></div>
<span style="font-size: 10pt;">tag-prefix = "ABC"</span><br>
</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);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Now when I run sip-install. I am getting the below error</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">/Users/xxx/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>
<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"><span class="Apple-converted-space">
</span>^~~~~~~~~~~~~~</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"><br>
</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; font-size: 11pt;">So my question is Do I need to copy all the QT headers files in a folder and add that in the Include-Dirs section
of the .toml file. I have the Qt installation added to my PATH like as below</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; font-size: 11pt;"><br>
</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; font-size: 10pt;">export PATH=/usr/local/opt/qt/bin:$PATH</span><span style="font-variant-ligatures: no-common-ligatures; font-size: 11pt;"> </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; font-size: 11pt;"><br>
</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; font-size: 11pt;">But somehow it is not able to find them. But the similiar .toml file worked when I did for the QtCharts. Seems
like if I include any other folder then it does not search in other paths.</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; font-size: 11pt;"><br>
</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; font-size: 11pt;">I will appreciate for any help. </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; font-size: 11pt;">Thank You,</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; font-size: 11pt;">Suman</span></p>
<br>
</div>
</body>
</html>