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:
[[Category:LanguageBindings::PySide]]
[[Category:LanguageBindings::PySide]]


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


= Building PySide on Microsoft Windows =
= Building PySide on Microsoft Windows =
Line 7: Line 7:
== Prerequisites ==
== Prerequisites ==


* "Qt 4.8 libraries VS 2008 edition":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
* "Qt 4.8 libraries VS 2008 edition":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
* "Qt 4.8 libraries VS 2010 edition":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
* "Qt 4.8 libraries VS 2010 edition":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
* "Windows SDK v7.0":http://www.microsoft.com/en-us/download/details.aspx?id=3138 is required when building against Python 2.6, 2.7 or 3.2
* "Windows SDK v7.0":http://www.microsoft.com/en-us/download/details.aspx?id=3138 is required when building against Python 2.6, 2.7 or 3.2
* "Windows SDK v7.1":http://www.microsoft.com/en-us/download/details.aspx?id=8279 is required when building against Python 3.3 or 3.4
* "Windows SDK v7.1":http://www.microsoft.com/en-us/download/details.aspx?id=8279 is required when building against Python 3.3 or 3.4
* "CMake":http://www.cmake.org/cmake/resources/software.html
* "CMake":http://www.cmake.org/cmake/resources/software.html
* "Python 2.6, 2.7, 3.2, 3.3 or 3.4":http://www.python.org/download/
* "Python 2.6, 2.7, 3.2, 3.3 or 3.4":http://www.python.org/download/
* "OpenSSL (optional)":http://slproweb.com/products/Win32OpenSSL.html
* "OpenSSL (optional)":http://slproweb.com/products/Win32OpenSSL.html


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


* Download "PySide Source Distribution":https://pypi.python.org/packages/source/P/PySide/PySide-1.2.2.tar.gz
* Download "PySide Source Distribution":https://pypi.python.org/packages/source/P/PySide/PySide-1.2.2.tar.gz


* 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>
* Extract the source distribution and switch to the PySide-1.2.2 directory:
<code>
c:gt; cd PySide-1.2.2
</code>


* 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>
* Build PySide windows installer:
<code>
c:gt; c:27\python setup.py bdist_wininst —qmake=c:.8.5\bin\qmake.exe —openssl=c:32bit\bin
</code>


* After the successful build, the binaries can be found in sub-folder &quot;dist&amp;quot;:<br /> <code><br /> c:-setup\dist
* After the successful build, the binaries can be found in sub-folder "dist":
<code>
c:-setup\dist

Revision as of 08:57, 25 February 2015


English "French":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:
 c:gt; cd PySide-1.2.2
  • Build PySide windows installer:
 c:gt; c:27\python setup.py bdist_wininst qmake=c:.8.5\bin\qmake.exe openssl=c:32bit\bin
  • After the successful build, the binaries can be found in sub-folder "dist":

c:-setup\dist