[PyQt] Deploying PyQt5 QtQuick Application on Windows

Jack Massey jack.massey at jacques.com.au
Sun Aug 2 23:48:20 BST 2015


Hi,

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".

I feel that the error has something to do with trying to build python 
using Qt's mingw32 gcc compiler.

Qt Version: 5.4.2
Python version: 3.4.3
pyqtdeploy: changeset 564 939a6c76bc5b
mingw32 version: 491

I also tried python version: 3.0, 3.3.0, 3.3.5, 3.4.0, 3.4.3, 3.5.0b4.
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)

Here is the full output from when it tries to compile the socketmodule:

|gcc -c -pipe -fno-keep-inline-dllexport -O2  -w -DPYQTDEPLOY_FROZEN_MAIN  -DPYQTDEPLOY_OPTIMIZED  -DMS_WINDOWS  -D_WIN32_WINNT=Py_WINVER  -DNTDDI_VERSION=Py_NTDDI  -DWINVER=Py_WINVER  -DQT_QML_DEBUG  -DQT_DECLARATIVE_DEBUG  -DQT_NO_DEBUG  -DQT_WIDGETS_LIB  -DQT_QUICK_LIB  -DQT_GUI_LIB  -DQT_QML_LIB  -DQT_NETWORK_LIB  -
DQT_CORE_LIB  -DQT_NEEDS_QMAIN  -I"..\build"  -I"."  -I"C:\Python34\include"  -I"..\..\sysroot-windows\src\Python-3.4.2\Modules"  -I"C:\Qt\Qt5.4.2\5.4\mingw491_32\include"  -I"C:\Qt\Qt5.4.2\5.4\mingw491_32\include\QtWidgets"  -I"C:\Qt\Qt5.4.2\5.4\mingw491_32\include\QtQuick"  -I"C:\Qt\Qt5.4.2\5.4\mingw491_32\include\QtGui"  -I"C:\Qt\Qt5.4.2\5.4\mingw491_32\inc
lude\QtQml"  -I"C:\Qt\Qt5.4.2\5.4\mingw491_32\include\QtNetwork"  -I"C:\Qt\Qt5.4.2\5.4\mingw491_32\include\QtCore"  -I"release"  -I"C:\Qt\Qt5.4.2\5.4\mingw491_32\mkspecs\win32-g++"   -o release\socketmodule.o ..\..\sysroot-windows\src\Python-3.4.2\Modules\socketmodule.c

In  file included fromC:/Qt/Qt5.4.2/Tools/mingw491_32/i686-w64-mingw32/include/objbase.h:14:0,
              fromC:/Qt/Qt5.4.2/Tools/mingw491_32/i686-w64-mingw32/include/ole2.h:17,
              fromC:/Qt/Qt5.4.2/Tools/mingw491_32/i686-w64-mingw32/include/wtypes.h:12,
              fromC:/Qt/Qt5.4.2/Tools/mingw491_32/i686-w64-mingw32/include/winscard.h:10,
              fromC:/Qt/Qt5.4.2/Tools/mingw491_32/i686-w64-mingw32/include/windows.h:97,
              fromC:/Qt/Qt5.4.2/Tools/mingw491_32/i686-w64-mingw32/include/winsock2.h:23,
              from ..\..\sysroot-windows\src\Python-3.4.2\Modules\socketmodule.h:16,
              from ..\..\sysroot-windows\src\Python-3.4.2\Modules\socketmodule.c:265:
C:/Qt/Qt5.4.2/Tools/mingw491_32/i686-w64-mingw32/include/combaseapi.h:231:79:  error:  unknown type name'SOLE_AUTHENTICATION_SERVICE'
WINOLEAPI  CoInitializeSecurity  (PSECURITY_DESCRIPTOR  pSecDesc,LONG  cAuthSvc,SOLE_AUTHENTICATION_SERVICE  *asAuthSvc, void *pReserved1,DWORD  dwAuthnLevel,DWORD  dwImpLevel, void *pAuthList,DWORD  dwCapabilities, void *pReserved3);
                                                                                ^
C:/Qt/Qt5.4.2/Tools/mingw491_32/i686-w64-mingw32/include/combaseapi.h:256:60:  error:  unknown type name'SOLE_AUTHENTICATION_SERVICE'
WINOLEAPI  CoQueryAuthenticationServices  (DWORD  *pcAuthSvc,SOLE_AUTHENTICATION_SERVICE  **asAuthSvc);
                                                             ^
Makefile.Release:958:  recipefor  target'release/socketmodule.o'  failed
mingw32-make[1]:  *** [release/socketmodule.o]Error  1
mingw32-make[1]:  Leaving  directory'C:/Users/LENEL/Documents/jemip/build-jemip-Desktop_Qt_5_4_2_MinGW_32bit-Debug'
makefile:34:  recipefor  target'release'  failed
mingw32-make:  *** [release]Error  2
02:23:53:  The  process"C:\Qt\Qt5.4.2\Tools\mingw491_32\bin\mingw32-make.exe"  exited with code2.
Error  while  building/deploying project jemip (kit:  Desktop  Qt  5.4.2  MinGW  32bit)
When  executing step"Make"|

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150803/4646edef/attachment.html>


More information about the PyQt mailing list