Sorri a forgot that You must run the build script form Visual Studio
Command Prompt. Here is fixed verson of tutorial:

1. Download and install prerequisities:
 1.1 MS Visual Studio Express 2008
(http://www.microsoft.com/express/Downloads/)
 1.2 CMake (http://www.cmake.org/files/v2.8/cmake-2.8.2-win32-x86.exe)
 1.3 Git (only needed if You want to download latest sources from git
repostitories) 
(http://code.google.com/p/msysgit/downloads/detail?name=Git-1.7.3.1-preview20101002.exe&can=2&q=)
 1.4 Python 2.6 or 2.7 (http://www.python.org/ftp/python/2.7/python-2.7.msi)

2. Download and unzip pyside package creator:
http://www.pyside.org/files/pkg/pyside-pkgsetup-0.4.2.zip
 Note: the zip contains also the complete sources of PySide version
0.4.2, so You don't need to download the stable souces your self.

3. Open [Visual Studio Command Prompt] from:
  [Start Menu]\Programs\Microsoft Visual C++ 2008 Express
Edition\Visual Studio Tools

4. From [Visual Studio Command Prompt] run the create_package.py script:
 For example, to build the binaries from stable sources (version
0.4.2) for Python 2.7 and Qt 4.7, run the script with parameters:
 >c:\Python27\python.exe create_package.py --qmake=c:\Qt\4.7.0\bin\qmake.exe

 To build the binaries from git:
 >c:\Python27\python.exe create_package.py
--qmake=c:\Qt\4.7.0\bin\qmake.exe --download

 To check the environment:
 >c:\Python27\python.exe create_package.py
--qmake=c:\Qt\4.7.0\bin\qmake.exe --check-environ

 To show help on all parameters:
 >c:\Python27\python.exe create_package.py --help

5. After the successfull build, the final binary distribution can be
found in subfolder "dist".

2010/11/1 Roman Lacko <backup.rla...@gmail.com>:
> Hi Jon,
>
> I uploaded my scripts I'm using to create the windows distribution packages.
>
> This is my new how-to for buildnig the windows distributions from scratch:
>
> 1. Download and install prerequisities:
>  1.1 MS Visual Studio Express 2008
> (http://www.microsoft.com/express/Downloads/)
>  1.2 CMake (http://www.cmake.org/files/v2.8/cmake-2.8.2-win32-x86.exe)
>  1.3 Git (only needed if You want to download latest sources from git
> repostitories) 
> (http://code.google.com/p/msysgit/downloads/detail?name=Git-1.7.3.1-preview20101002.exe&can=2&q=)
>  1.4 Python 2.6 or 2.7 (http://www.python.org/ftp/python/2.7/python-2.7.msi)
>
> 2. Download and unzip pyside package creator:
> http://www.pyside.org/files/pkg/pyside-pkgsetup-0.4.2.zip
>  Note: the zip contains also the complete sources of PySide version
> 0.4.2, so You don't need to download the stable souces your self.
>
> 3. Run the create_package.py script:
>  For example, to build the binaries from stable sources (version
> 0.4.2) for Python 2.7 and Qt 4.7, run the script with parameters:
>  >c:\Python27\python.exe create_package.py --qmake=c:\Qt\4.7.0\bin\qmake.exe
>
>  To build the binaries from git:
>  >c:\Python27\python.exe create_package.py
> --qmake=c:\Qt\4.7.0\bin\qmake.exe --download
>
>  To check the environment:
>  >c:\Python27\python.exe create_package.py
> --qmake=c:\Qt\4.7.0\bin\qmake.exe --check-environ
>
>  To show help on all parameters:
>  >c:\Python27\python.exe create_package.py --help
>
> 4. After the successfull build, the final binary distribution can be
> found in subfolder "dist".
>
>
> Please let me know if You have any problems
>
> Regards
> -Roman
>
> PS: This script can be also used to build the Linux binaries (tested
> under Ubuntu), but the distribution creation part is not finished yet
>
> 2010/11/1 Jon Middleton <jon.middle...@blacktrace.com>:
>> Hi,
>>
>> I want to build pyside for windows as there are some fixes that I need
>> on the Git HEAD (see
>> http://stackoverflow.com/questions/4013615/how-to-provide-data-from-pyside-qabstractitemmodel-subclass-to-qml-listview),
>> here is a record of what I have done so far.
>>
>> Basically everything works until the final step the "pyside" module
>> build step, I am not sure why this is failing, any help with this
>> would be great.
>>
>> Building Pyside
>> First make sure that you have the following on your system, and make
>> sure they are part of your system PATH.
>>
>> python = http://www.python.org/download/releases/2.6/
>> python libxml2 = http://users.skynet.be/sbi/libxml-python/
>> qt = http://qt.nokia.com/downloads/windows-cpp-vs2008
>> iscc = inno SETUP http://www.jrsoftware.org/isdl.php
>> nmake = C:\Program Files\Visual Studio 9.0\VC\bin
>> git = http://git-scm.com/download
>> cmake = http://www.cmake.org/cmake/resources/software.html
>> create package script:
>> http://qt.gitorious.org/pyside/packaging/blobs/master/windows/createpackage.js
>>
>> From Lacko Roman on how to build:
>> I installed and compiled binaries with the Qt 4.7 for
>> VisualStudio2008, NOT Qt SDK. Qt SDK is compiled with MinGW.
>>
>> Note, that the createpackage.js script must be run from Visual Studio
>> 2008 Command Prompt.
>>
>> The createpackage.js gets the source from
>> http://qt.gitorious.org/pyside then compiles, then creates an
>> installer using INNO setup.
>>
>> so to run the createpackage.js open a command window and type
>>>cscript createpackage.js
>>
>> Progress
>> The script successfully
>> 1. gets the source from gitorious.org
>> 2. builds, test and installs:
>> - apiextractor
>> - generatorrunner
>> - shiboken
>>
>> It Fails to build “pyside” with 18 errors:
>>
>> “Error 1 error PRJ0019: A tool returned an error code from "Running
>> generator for QtCore..
>> ...
>> Error 18 error PRJ0019: A tool returned an error code from "Running
>> generator for QtTest..."
>>
>> Running the generatorrunner manually with the following command:
>>
>> C:\Qt\Temp\pyside\PySide\QtCore>C:\Qt\Temp\PySideInstall\bin\generatorrunner 
>> --g
>> eneratorSet=shiboken --enable-parent-ctor-heuristic 
>> --enable-pyside-extensions -
>> -enable-return-value-heuristic C:/Qt/Temp/pyside/build/PySide/global.h 
>> --include
>> -paths=C:/Qt/Temp/pyside/PySide;C:/Qt/4.7.0/include 
>> --typesystem-paths=C:/Qt/Tem
>> p/pyside/PySide; --output-directory=C:/Qt/Temp/pyside/build/PySide/QtCore 
>> --lice
>> nse-file=C:/Qt/Temp/pyside/PySide/QtCore/../licensecomment.txt 
>> C:/Qt/Temp/pyside
>> /PySide/QtCore/typesystem_core.xml --api-version=4.7
>>
>> Displays the following error:
>> C:\Qt\Temp\PySideInstall\bin\generatorrunner: Error loading generatorset 
>> plugin:
>> Cannot load library 
>> C:/Qt/Temp/PySideInstall/lib/generatorrunner/shiboken_gener
>> ator: The specified module could not be found.
>>
>> It looks like it is missing some files in
>> C:/Qt/Temp/PySideInstall/lib/generatorrunner/
>>
>> I have uploaded all the generated files in PySideInstall directory as
>> it has been created on my system here:
>> http://www.syrris-support.com/Downloads/JMM/PySideInstall.zip
>>
>> Any suggestions how to get this to work would be great.
>>
>> Cheers,
>> Jon.
>>
>> --
>> Jonathan Middleton
>> _______________________________________________
>> PySide mailing list
>> PySide@lists.openbossa.org
>> http://lists.openbossa.org/listinfo/pyside
>>
>
_______________________________________________
PySide mailing list
PySide@lists.openbossa.org
http://lists.openbossa.org/listinfo/pyside

Reply via email to