Building PySide on Windows: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
'''English''' [http://qt-devnet.developpez.com/tutoriels/python/pyside/installer/?page=windows#IV French] ''[qt-devnet.developpez.com]''
[[Category:LanguageBindings::PySide]]


=Building PySide on Microsoft Windows=
'''English''' "French":http://qt-devnet.developpez.com/tutoriels/python/pyside/installer/?page=windows#IV


==Prerequisites==
= Building PySide on Microsoft Windows =


* [http://download.qt.io/official_releases/qt/4.8/4.8.5/qt-win-opensource-4.8.5-vs2008.exe Qt 4.8 libraries VS 2008 edition] ''[download.qt.io]'' is required when building against Python 2.6, 2.7 or 3.2
== Prerequisites ==
* [http://download.qt.io/official_releases/qt/4.8/4.8.5/qt-win-opensource-4.8.5-vs2010.exe Qt 4.8 libraries VS 2010 edition] ''[download.qt.io]'' is required when building against Python 3.3 or 3.4
* [http://www.microsoft.com/en-us/download/details.aspx?id=3138 Windows <span class="caps">SDK</span> v7.0] ''[microsoft.com]'' is required when building against Python 2.6, 2.7 or 3.2
* [http://www.microsoft.com/en-us/download/details.aspx?id=8279 Windows <span class="caps">SDK</span> v7.1] ''[microsoft.com]'' is required when building against Python 3.3 or 3.4
* [http://www.cmake.org/cmake/resources/software.html CMake] ''[cmake.org]''
* [http://www.python.org/download/ Python 2.6, 2.7, 3.2, 3.3 or 3.4] ''[python.org]''
* [http://slproweb.com/products/Win32OpenSSL.html OpenSSL] ''[slproweb.com]''


'''<span class="caps">NOTE</span>''': Be sure that cmake.exe is in your <span class="caps">PATH</span>.
* &quot;Qt 4.8 libraries VS 2008 edition&amp;quot;:http://download.qt.io/official_releases/qt/4.8/4.8.5/qt-win-opensource-4.8.5-vs2008.exe is required when building against Python 2.6, 2.7 or 3.2
* &quot;Qt 4.8 libraries VS 2010 edition&amp;quot;:http://download.qt.io/official_releases/qt/4.8/4.8.5/qt-win-opensource-4.8.5-vs2010.exe is required when building against Python 3.3 or 3.4
* &quot;Windows SDK v7.0&amp;quot;:http://www.microsoft.com/en-us/download/details.aspx?id=3138 is required when building against Python 2.6, 2.7 or 3.2
* &quot;Windows SDK v7.1&amp;quot;:http://www.microsoft.com/en-us/download/details.aspx?id=8279 is required when building against Python 3.3 or 3.4
* &quot;CMake&amp;quot;:http://www.cmake.org/cmake/resources/software.html
* &quot;Python 2.6, 2.7, 3.2, 3.3 or 3.4&amp;quot;:http://www.python.org/download/
* &quot;OpenSSL (optional)&quot;:http://slproweb.com/products/Win32OpenSSL.html


==Building PySide installer==
'''NOTE''': Be sure that cmake.exe is in your PATH.


* Download [https://pypi.python.org/packages/source/P/PySide/PySide-1.2.2.tar.gz PySide Source Distribution] ''[pypi.python.org]''
== Building PySide installer ==


* Extract the source distribution and switch to the PySide-1.2.2 directory:
* Download &quot;PySide Source Distribution&amp;quot;:https://pypi.python.org/packages/source/P/PySide/PySide-1.2.2.tar.gz


* Build PySide windows installer:
* Extract the source distribution and switch to the PySide-1.2.2 directory:<br /> <code><br /> c:gt; cd PySide-1.2.2<br /> </code>


* After the successful build, the binaries can be found in sub-folder “dist”:
* Build PySide windows installer:<br /> <code><br /> c:gt; c:27\python setup.py bdist_wininst —qmake=c:.8.5\bin\qmake.exe —openssl=c:32bit\bin<br /> </code>


===Categories:===
* After the successful build, the binaries can be found in sub-folder &quot;dist&amp;quot;:<br /> <code><br /> c:-setup\dist
 
* [[:Category:LanguageBindings|LanguageBindings]]
** [[:Category:LanguageBindings::PySide|PySide]]

Revision as of 14:33, 23 February 2015


English "French&quot;:http://qt-devnet.developpez.com/tutoriels/python/pyside/installer/?page=windows#IV

Building PySide on Microsoft Windows

Prerequisites

NOTE: Be sure that cmake.exe is in your PATH.

Building PySide installer

  • Extract the source distribution and switch to the PySide-1.2.2 directory:
    <br /> c:gt; cd PySide-1.2.2<br />
    
  • Build PySide windows installer:
    <br /> c:gt; c:27\python setup.py bdist_wininst qmake=c:.8.5\bin\qmake.exe openssl=c:32bit\bin<br />
    
  • After the successful build, the binaries can be found in sub-folder "dist&quot;:

    c:-setup\dist