1/8/2023 0 Comments Sip on first![]() zip archive in \Users\your_username\Desktop\compilation\ĭownload latest Qt 4.x (vs2010 version) installer from here: This is for all that want to build PyQt4 with latest Qt4 and Python 3.4.x.ĭownload SIP source code (in my case version 4.19.5) from here:ĭownload PyQt4 source code (in my case version 4.12.1) from here:Įxtract SIP and PyQt. Then, run (the compilation will take a while) : nmake Note that this command disable QtNfs because of a compilation problem I could not resolve. Python configure.py -disable QtNfc -confirm-license The steps are almost the same as sip but it will take more time. This will create a sip.exe in your Python dir, for me it is C:\Python36, it may elsewhere, depending on where you installed Python. Then (always in the same terminal) you run : nmake In windows, "make" is substituted by "nmake" ! "C:\Qt\Qt5.8.0\5.8\msvc2015\bin\qtenv2.bat"Īfter running this command, it automatically change your current directory, stay on the terminal and re-go to your sip-4.19.2 directory and run: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" Keep the double quotes, windows does not like spaces. VERY IMPORTANT STEP: source your environment variables by running in the terminal : Extract the content of your PyQt5 archive in this forlderĪt this step, you did not install sip, you only configured it (basically its installation dir, etc.).Extract the content of your sip archive in this forlder.Create a folder "compilation" in your Desktop for example:.Let's create an environment to compile PyQt and SIP (in order to compile PyQt, you need first to compile sip) It is important you stay on the same terminal ( cmd.exe) during the whole process so you don't have to source your environment twice. Qt download link must match the Visual Studio (VS) version installed (here VS 2015) and the PyQt5 version you need to install Microsoft Visual Studio 2015 Community Edition (32-bits) ![]() (if you also have python 2.7, make sure to use verions 3 of python)ĭownload sources for sip and PyQt5: Under "Source Packages", download the "Windows Source" When Installing Qt, make sure to select the correct pre-built components you have (for e.g Microsoft Visual Studio 2017)ĭownload Python 3.6.x (32-bits) any version will do it : Microsoft Visual Studio 2017 Community Edition (32-bits) Since Microsoft Visual Studio 2015 Community Edition is not available to download anymore, next users should use Microsoft Visual Studio 2017 Community Edition with Qt 5.9 and follow the same instructions below. The instructions follow the same steps as for Qt 5.8 Since Qt 5.9, there is only one version of Qt downloadable for Windows that includes the pre-built components for MSVC201x and MinGW. Note: There are several questions posted before, but none of them helped so far, I'm sure I must be missing something silly.įor next users who need to build sip (or pyqt) in windows using sourcesĪLL these instructions are for 32-bits, it will work even if you have a 64-bit system. ![]() Environment Variable (Path : C:\Python34 C:\Python34\Lib C:\Python34\Lib\site-packages). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |