[PySide] windows builds pyside + qt 4.8

Bjørn Helge Kjøsnes bjelge at nefines.com
Wed Sep 5 10:15:17 CEST 2012


Hi,

sorry but I have never had the need for a 64 bit version. I was just 
happy that the 32 bit version now finally compiles without patches.

Bjorn Helge

On 05.09.2012 10:10, Roman Lacko wrote:
> Bjorn, have You build also 64bit version of Qt and PySide ?
>
> Thanks
> R.
>
> 2012/9/5 Bjørn Helge Kjøsnes <bjelge at nefines.com>:
>> On 05.09.2012 09:57, Roman Lacko wrote:
>>
>> Hi Bjorn,
>>
>> 2012/9/5 Bjørn Helge Kjøsnes <bjelge at nefines.com>:
>>
>> Hi,
>>
>> I have successfully built PySide 1.1.2 with Qt 4.8.2 and Python 2.7. I
>> have not made any packages but I can share my build batch file. I use
>> this batch file in a Visual Studio 2008 Command Prompt. You have to have
>> a Python build in Visual Studio 2008 and a Qt 4.8.2 build from source
>> using Visula Studio 2008 if you want the debug versions as well as the
>> release version. I guess you can use the stock versions of but Qt and
>> Python if  you just remove the debug build parts of the batch file.
>>
>> Please can You send configure.exe parameters used when building Qt from
>> source ?
>> Thanks
>>
>>
>> SET QTDIR=\Projects\Qt\QT482\
>> SET PYTHONDDIR=\Projects\Python\Python-2.7.3\PCbuild\
>> SET PYTHONRDIR=\Projects\Python\Python-2.7.3\PCbuild\
>> SET PYTHONVER=27
>> SET PYSIDESOURCEDIR=\Projects\PySide\
>> SET PYSIDEINSTALLDIR=\Projects\PySide\PySideInstall\
>> SET PSINSTALLD=%PYSIDEINSTALLDIR%Debug
>> SET PSINSTALLR=%PYSIDEINSTALLDIR%Release
>> SET SHIBOKENDIR=\Projects\PySide\shiboken-1.1.2
>> SET PYSIDEDIR=\Projects\PySide\pyside-qt4.8+1.1.2
>> SET PYSIDETOOLSDIR=\Projects\PySide\pyside-tools-0.2.13
>> SET QTDIR=E:\Projects\QT\QT482
>> SET LIBXML=E:\Projects\PySide\libxml2-2.7.8.win32\
>> SET LIBXSLT=E:\Projects\PySide\libxslt-1.1.26.win32\
>> SET LIBICONV=E:\Projects\PySide\iconv-1.9.2.win32\
>> SET LIBZLIB=E:\Projects\PySide\zlib-1.2.5\
>>
>> SET
>> PATH=%QTDIR%\bin;%LIBXML%bin;%LIBXSLT%bin;%LIBICONV%bin;%LIBZLIB%bin;%PATH%
>>
>> @echo make install dir
>> mkdir %PYSIDEINSTALLDIR%
>> @echo go to pyside source dir
>> cd %PYSIDESOURCEDIR%
>> @echo make install dir
>> mkdir %PSINSTALLR%
>>
>> @echo PySide build shiboken release
>> cd %SHIBOKENDIR%
>> mkdir buildrelease
>> cd buildrelease
>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE
>> -DPYTHON_EXECUTABLE="%PYTHONRDIR%python.exe"
>> -DLIBXML2_LIBRARIES=%LIBXML%lib\libxml2.lib
>> -DLIBXML2_INCLUDE_DIR=%LIBXML%include
>> -DLIBXSLT_LIBRARIES=%LIBXSLT%lib\libxslt.lib
>> -DLIBXSLT_INCLUDE_DIR=%LIBXSLT%include
>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" ..
>> nmake install
>> copy %LIBXML%bin\libxml2.dll %PYSIDEINSTALLDIR%Release\bin
>> copy %LIBXSLT%bin\libxslt.dll %PYSIDEINSTALLDIR%Release\bin
>> copy %LIBICONV%bin\iconv.dll %PYSIDEINSTALLDIR%Release\bin
>> copy %LIBZLIB%bin\zlib1.dll %PYSIDEINSTALLDIR%Release\bin
>> @echo PySide build shiboken debug
>> mkdir %PSINSTALLD%
>> cd %SHIBOKENDIR%
>> mkdir builddebug
>> cd builddebug
>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE
>> -DPYTHON_EXECUTABLE="%PYTHONDDIR%python_d.exe"
>> -DPYTHON_DEBUG_LIBRARY="%PYTHONDDIR%python%PYTHONVER%_d.lib"
>> -DPYTHON_LIBRARIES="%PYTHONDDIR%python%PYTHONVER%_d.lib"
>> -DLIBXML2_LIBRARIES=%LIBXML%lib\libxml2.lib
>> -DLIBXML2_INCLUDE_DIR=%LIBXML%include
>> -DLIBXSLT_LIBRARIES=%LIBXSLT%lib\libxslt.lib
>> -DLIBXSLT_INCLUDE_DIR=%LIBXSLT%include
>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" ..
>> nmake install
>> copy %LIBXML%bin\libxml2.dll %PYSIDEINSTALLDIR%Debug\bin
>> copy %LIBXSLT%bin\libxslt.dll %PYSIDEINSTALLDIR%Debug\bin
>> copy %LIBICONV%bin\iconv.dll %PYSIDEINSTALLDIR%Debug\bin
>> copy %LIBZLIB%bin\zlib1.dll %PYSIDEINSTALLDIR%Debug\bin
>>
>> @echo PySide build pyside release
>> cd %PYSIDEDIR%
>> mkdir buildrelease
>> cd buildrelease
>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE
>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" ..
>> nmake install
>> @echo PySide build pyside debug
>> cd %PYSIDEDIR%
>> mkdir builddebug
>> cd builddebug
>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE
>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" ..
>> nmake install
>> @echo PySide build pyside tools release
>> cd %PYSIDETOOLSDIR%
>> mkdir buildrelease
>> cd buildrelease
>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=FALSE
>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLR%" ..
>> nmake install
>>
>> @echo PySide build pyside tools debug
>> cd %PYSIDETOOLSDIR%
>> mkdir builddebug
>> cd builddebug
>> cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=FALSE
>> -DCMAKE_INSTALL_PREFIX="%PSINSTALLD%" ..
>> nmake install
>>
>> cd %PYSIDEINSTALLDIR%
>> @echo Done building PySide Debug and Release version
>>
>>
>> Regards,
>> Bjørn Helge Kjøsnes
>>
>> On 05.09.2012 09:32, Chris Bartels wrote:
>>
>> Hi all,
>>
>> Is there anyone who has succesfully build PySide Windows binaries with
>> qt 4.8? (If so, are they willing to share them?) I desperately need
>> the 4.8 versions, as there are some crucial bugfixes in Qt 4.8.. but I
>> haven't been able to build PySide.)
>>
>> Chris
>> _______________________________________________
>> PySide mailing list
>> PySide at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/pyside
>>
>> _______________________________________________
>> PySide mailing list
>> PySide at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/pyside
>>
>> Hi Roman,
>>
>> I use this method when building my own Qt from source:
>>
>>
>>
>> Build QT latest version using Visual Studio 2008
>>
>> Make sure you have openssl library installed
>>
>> Download from  http://www.slproweb.com/products/Win32OpenSSL.html and
>> install the Win32 OpenSSL full package (current version is v1.0.0a)
>> Install it to where you have the other libraries and let it install dll to
>> windows system (my place is E:\Projects\OpenSSL-Win32)
>>
>> Download QT source. Latest version can be  found with the name
>> qt-everywhere-opensource-src-xxxx.zip.
>> Unzip to a directory without spaces in the name like e:\projects\qt\qt482.
>> Edit environment variable to add: QTDIR = e:\projects\qt\qt482
>> Edit the PATH environment variable to add: %QTDIR%\bin
>> Go to the e:\projects\qt\qt482 in Visual Studio 2008 command prompt and run:
>>
>> configure.exe -debug-and-release -platform win32-msvc2008 -webkit -openssl
>> -I E:\Projects\OpenSSL-Win32\Include -L E:\Projects\OpenSSL-Win32\Lib
>>
>> Open Visual Studio 2008 and ignore warnings as this is just demo apps with
>> the same name in different directories
>>
>> Build debug
>> Build release
>>
>> Regards,
>> Bjørn Helge
>>
>>




More information about the PySide mailing list