<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="content_283253" class="post-content" itemprop="text">
<p>Hi,</p>
<p>I am currently trying to deploy a PyQt5 QtQuick application on
Windows 7. I have successfully done this already with pyqtdeploy
on linux. The issue I am facing is when I try and build the
project (in qt creator after running pyqtdeploy) I get the error
"unknown type name 'SOLE_AUTHENTICATION_SERVICE'" orginating
from "combaseapi.h" and "combaseapi.c" when it tries to compile
python's "socketmodule.c".</p>
<p>I feel that the error has something to do with trying to build
python using Qt's mingw32 gcc compiler. <br>
</p>
<p>Qt Version: 5.4.2<br>
Python version: 3.4.3<br>
pyqtdeploy: changeset 564 939a6c76bc5b<br>
mingw32 version: 491<br>
<br>
I also tried python version: 3.0, 3.3.0, 3.3.5, 3.4.0, 3.4.3,
3.5.0b4. <br>
Haven't tried another version of QT yet as it is still
downloading and will be for a very very long time...
(downloading version 5.5.0)<br>
</p>
<p>Here is the full output from when it tries to compile the
socketmodule:</p>
<pre><code class=" hljs ruby">gcc -c -pipe -fno-keep-inline-dllexport -<span class="hljs-constant">O2</span> -w -<span class="hljs-constant">DPYQTDEPLOY_FROZEN_MAIN</span> -<span class="hljs-constant">DPYQTDEPLOY_OPTIMIZED</span> -<span class="hljs-constant">DMS_WINDOWS</span> -<span class="hljs-constant">D_WIN32_WINNT</span>=<span class="hljs-constant">Py_WINVER</span> -<span class="hljs-constant">DNTDDI_VERSION</span>=<span class="hljs-constant">Py_NTDDI</span> -<span class="hljs-constant">DWINVER</span>=<span class="hljs-constant">Py_WINVER</span> -<span class="hljs-constant">DQT_QML_DEBUG</span> -<span class="hljs-constant">DQT_DECLARATIVE_DEBUG</span> -<span class="hljs-constant">DQT_NO_DEBUG</span> -<span class="hljs-constant">DQT_WIDGETS_LIB</span> -<span class="hljs-constant">DQT_QUICK_LIB</span> -<span class="hljs-constant">DQT_GUI_LIB</span> -<span class="hljs-constant">DQT_QML_LIB</span> -<span class="hljs-constant">DQT_NETWORK_LIB</span> -<span class="hljs-constant">
DQT_CORE_LIB</span> -<span class="hljs-constant">DQT_NEEDS_QMAIN</span> -<span class="hljs-constant">I</span><span class="hljs-string">"..\build"</span> -<span class="hljs-constant">I</span><span class="hljs-string">"."</span> -<span class="hljs-constant">I</span><span class="hljs-string">"C:\Python34\include"</span> -<span class="hljs-constant">I</span><span class="hljs-string">"..\..\sysroot-windows\src\Python-3.4.2\Modules"</span> -<span class="hljs-constant">I</span><span class="hljs-string">"C:\Qt\Qt5.4.2\5.4\mingw491_32\include"</span> -<span class="hljs-constant">I</span><span class="hljs-string">"C:\Qt\Qt5.4.2\5.4\mingw491_32\include\QtWidgets"</span> -<span class="hljs-constant">I</span><span class="hljs-string">"C:\Qt\Qt5.4.2\5.4\mingw491_32\include\QtQuick"</span> -<span class="hljs-constant">I</span><span class="hljs-string">"C:\Qt\Qt5.4.2\5.4\mingw491_32\include\QtGui"</span> -<span class="hljs-constant">I</span><span class="hljs-string">"C:\Qt\Qt5.4.2\5.4\mingw491_32\inc
lude\QtQml"</span> -<span class="hljs-constant">I</span><span class="hljs-string">"C:\Qt\Qt5.4.2\5.4\mingw491_32\include\QtNetwork"</span> -<span class="hljs-constant">I</span><span class="hljs-string">"C:\Qt\Qt5.4.2\5.4\mingw491_32\include\QtCore"</span> -<span class="hljs-constant">I</span><span class="hljs-string">"release"</span> -<span class="hljs-constant">I</span><span class="hljs-string">"C:\Qt\Qt5.4.2\5.4\mingw491_32\mkspecs\win32-g++"</span> -o release\socketmodule.o ..\..\sysroot-windows\src\<span class="hljs-constant">Python</span>-<span class="hljs-number">3.4</span>.<span class="hljs-number">2</span>\<span class="hljs-constant">Modules</span>\socketmodule.c
<span class="hljs-constant">In</span> file included from <span class="hljs-constant">C</span><span class="hljs-symbol">:/Qt/Qt5</span>.<span class="hljs-number">4.2</span>/<span class="hljs-constant">Tools</span>/mingw491_32/i686-w64-mingw32/<span class="hljs-keyword">include</span>/objbase.<span class="hljs-symbol">h:</span><span class="hljs-number">14</span><span class="hljs-symbol">:</span><span class="hljs-number">0</span>,
from <span class="hljs-constant">C</span><span class="hljs-symbol">:/Qt/Qt5</span>.<span class="hljs-number">4.2</span>/<span class="hljs-constant">Tools</span>/mingw491_32/i686-w64-mingw32/<span class="hljs-keyword">include</span>/ole2.<span class="hljs-symbol">h:</span><span class="hljs-number">17</span>,
from <span class="hljs-constant">C</span><span class="hljs-symbol">:/Qt/Qt5</span>.<span class="hljs-number">4.2</span>/<span class="hljs-constant">Tools</span>/mingw491_32/i686-w64-mingw32/<span class="hljs-keyword">include</span>/wtypes.<span class="hljs-symbol">h:</span><span class="hljs-number">12</span>,
from <span class="hljs-constant">C</span><span class="hljs-symbol">:/Qt/Qt5</span>.<span class="hljs-number">4.2</span>/<span class="hljs-constant">Tools</span>/mingw491_32/i686-w64-mingw32/<span class="hljs-keyword">include</span>/winscard.<span class="hljs-symbol">h:</span><span class="hljs-number">10</span>,
from <span class="hljs-constant">C</span><span class="hljs-symbol">:/Qt/Qt5</span>.<span class="hljs-number">4.2</span>/<span class="hljs-constant">Tools</span>/mingw491_32/i686-w64-mingw32/<span class="hljs-keyword">include</span>/windows.<span class="hljs-symbol">h:</span><span class="hljs-number">97</span>,
from <span class="hljs-constant">C</span><span class="hljs-symbol">:/Qt/Qt5</span>.<span class="hljs-number">4.2</span>/<span class="hljs-constant">Tools</span>/mingw491_32/i686-w64-mingw32/<span class="hljs-keyword">include</span>/winsock2.<span class="hljs-symbol">h:</span><span class="hljs-number">23</span>,
from ..\..\sysroot-windows\src\<span class="hljs-constant">Python</span>-<span class="hljs-number">3.4</span>.<span class="hljs-number">2</span>\<span class="hljs-constant">Modules</span>\socketmodule.<span class="hljs-symbol">h:</span><span class="hljs-number">16</span>,
from ..\..\sysroot-windows\src\<span class="hljs-constant">Python</span>-<span class="hljs-number">3.4</span>.<span class="hljs-number">2</span>\<span class="hljs-constant">Modules</span>\socketmodule.<span class="hljs-symbol">c:</span><span class="hljs-number">265</span><span class="hljs-symbol">:</span>
<span class="hljs-constant">C</span><span class="hljs-symbol">:/Qt/Qt5</span>.<span class="hljs-number">4.2</span>/<span class="hljs-constant">Tools</span>/mingw491_32/i686-w64-mingw32/<span class="hljs-keyword">include</span>/combaseapi.<span class="hljs-symbol">h:</span><span class="hljs-number">231</span><span class="hljs-symbol">:</span><span class="hljs-number">79</span><span class="hljs-symbol">:</span> <span class="hljs-symbol">error:</span> unknown type name <span class="hljs-string">'SOLE_AUTHENTICATION_SERVICE'</span>
<span class="hljs-constant">WINOLEAPI</span> <span class="hljs-constant">CoInitializeSecurity</span> (<span class="hljs-constant">PSECURITY_DESCRIPTOR</span> pSecDesc, <span class="hljs-constant">LONG</span> cAuthSvc, <span class="hljs-constant">SOLE_AUTHENTICATION_SERVICE</span> *asAuthSvc, void *pReserved1, <span class="hljs-constant">DWORD</span> dwAuthnLevel, <span class="hljs-constant">DWORD</span> dwImpLevel, void *pAuthList, <span class="hljs-constant">DWORD</span> dwCapabilities, void *pReserved3);
^
<span class="hljs-constant">C</span><span class="hljs-symbol">:/Qt/Qt5</span>.<span class="hljs-number">4.2</span>/<span class="hljs-constant">Tools</span>/mingw491_32/i686-w64-mingw32/<span class="hljs-keyword">include</span>/combaseapi.<span class="hljs-symbol">h:</span><span class="hljs-number">256</span><span class="hljs-symbol">:</span><span class="hljs-number">60</span><span class="hljs-symbol">:</span> <span class="hljs-symbol">error:</span> unknown type name <span class="hljs-string">'SOLE_AUTHENTICATION_SERVICE'</span>
<span class="hljs-constant">WINOLEAPI</span> <span class="hljs-constant">CoQueryAuthenticationServices</span> (<span class="hljs-constant">DWORD</span> *pcAuthSvc, <span class="hljs-constant">SOLE_AUTHENTICATION_SERVICE</span> **asAuthSvc);
^
<span class="hljs-constant">Makefile</span>.<span class="hljs-constant">Release</span><span class="hljs-symbol">:</span><span class="hljs-number">958</span><span class="hljs-symbol">:</span> recipe <span class="hljs-keyword">for</span> target <span class="hljs-string">'release/socketmodule.o'</span> failed
mingw32-make[<span class="hljs-number">1</span>]<span class="hljs-symbol">:</span> *** [release/socketmodule.o] <span class="hljs-constant">Error</span> <span class="hljs-number">1</span>
mingw32-make[<span class="hljs-number">1</span>]<span class="hljs-symbol">:</span> <span class="hljs-constant">Leaving</span> directory <span class="hljs-string">'C:/Users/LENEL/Documents/jemip/build-jemip-Desktop_Qt_5_4_2_MinGW_32bit-Debug'</span>
<span class="hljs-symbol">makefile:</span><span class="hljs-number">34</span><span class="hljs-symbol">:</span> recipe <span class="hljs-keyword">for</span> target <span class="hljs-string">'release'</span> failed
mingw32-<span class="hljs-symbol">make:</span> *** [release] <span class="hljs-constant">Error</span> <span class="hljs-number">2</span>
<span class="hljs-number">02</span><span class="hljs-symbol">:</span><span class="hljs-number">23</span><span class="hljs-symbol">:</span><span class="hljs-number">53</span><span class="hljs-symbol">:</span> <span class="hljs-constant">The</span> process <span class="hljs-string">"C:\Qt\Qt5.4.2\Tools\mingw491_32\bin\mingw32-make.exe"</span> exited with code <span class="hljs-number">2</span>.
<span class="hljs-constant">Error</span> <span class="hljs-keyword">while</span> building/deploying project jemip (<span class="hljs-symbol">kit:</span> <span class="hljs-constant">Desktop</span> <span class="hljs-constant">Qt</span> <span class="hljs-number">5.4</span>.<span class="hljs-number">2</span> <span class="hljs-constant">MinGW</span> <span class="hljs-number">32</span>bit)
<span class="hljs-constant">When</span> executing step <span class="hljs-string">"Make"</span></code></pre>
</div>
</body>
</html>