Hi Dardo, if I understand correctly you try to compile PySide tools from source with MinGW. It is possible but under windows currently we support compilation only with the Visual Studio 2008 (Express).
This is mini how to compile the PySide windows binaries (I will put this on wiki soon): 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) 1.5 Python SetupTools package (http://pypi.python.org/pypi/setuptools/) 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". Hope this helps Regards -Roman 2010/11/3 Luciano Wolf <[email protected]>: > Hi Dardo, > > I'm forwarding this message to the PySide's mailing list as I don't > have the necessary Windows skills :) > > Cheers, > Luciano > > On Mon, Nov 1, 2010 at 5:38 PM, Dardo Schuster Glez > <[email protected]> wrote: >> Dear Sir >> >> I am using python and qt designer and i see that pyside is a great tool to >> work with it but i can´t use rcc tool. I download pyside tools and when i >> try to create the exe file with cmake i receive a error message : >> >> The C compiler identification is GNU >> >> The CXX compiler identification is GNU >> >> Check for working C compiler: C:/MinGW/bin/gcc.exe >> >> Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken >> >> CMake Error at C:/Archivos de programa/CMake >> 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE): >> >> The C compiler "C:/MinGW/bin/gcc.exe" is not able to compile a simple test >> >> program. >> >> It fails with the following output: >> >> Change Dir: C:/Dardo/Lenguaje >> Python/pyside-tools-0.2.2/pyrcc/CMakeFiles/CMakeTmp >> >> Run Build Command:C:/MinGW/bin/mingw32-make.exe "cmTryCompileExec/fast" >> >> C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTryCompileExec.dir\build.make >> >> CMakeFiles/cmTryCompileExec.dir/build >> >> mingw32-make.exe[1]: Entering directory `C:/Dardo/Lenguaje >> >> Python/pyside-tools-0.2.2/pyrcc/CMakeFiles/CMakeTmp' >> >> "C:\Archivos de programa\CMake 2.8\bin\cmake.exe" -E cmake_progress_report >> >> "C:\Dardo\Lenguaje >> >> Python\pyside-tools-0.2.2\pyrcc\CMakeFiles\CMakeTmp\CMakeFiles" 1 >> >> Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj >> >> C:\MinGW\bin\gcc.exe -o CMakeFiles\cmTryCompileExec.dir\testCCompiler.c.obj >> >> -c "C:\Dardo\Lenguaje >> >> Python\pyside-tools-0.2.2\pyrcc\CMakeFiles\CMakeTmp\testCCompiler.c" >> >> Linking C executable cmTryCompileExec.exe >> >> "C:\Archivos de programa\CMake 2.8\bin\cmake.exe" -E cmake_link_script >> >> CMakeFiles\cmTryCompileExec.dir\link.txt --verbose=1 >> >> C:\MinGW\bin\gcc.exe -Wl,@CMakeFiles\cmTryCompileExec.dir\objects1.rsp -o >> >> cmTryCompileExec.exe -Wl,--out-implib,libcmTryCompileExec.dll.a >> >> -Wl,--major-image-version,0,--minor-image-version,0 -lkernel32 -luser32 >> >> -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 >> >> -ladvapi32 >> >> C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: >> >> @CMakeFiles\cmTryCompileExec.dir\objects1.rsp: No such file: No such file >> >> or directory >> >> collect2: ld returned 1 exit status >> >> mingw32-make.exe[1]: *** [cmTryCompileExec.exe] Error 1 >> >> mingw32-make.exe[1]: Leaving directory `C:/Dardo/Lenguaje >> >> Python/pyside-tools-0.2.2/pyrcc/CMakeFiles/CMakeTmp' >> >> mingw32-make.exe: *** [cmTryCompileExec/fast] Error 2 >> >> CMake will not be able to correctly generate this project. >> >> Call Stack (most recent call first): >> >> Configuring incomplete, errors occurred! >> >> >> >> I open the cmake error.log file and i see this messages : >> >> >> >> Compiling the C compiler identification source file "CMakeCCompilerId.c" >> failed. >> Compiler: C:/MinGW/bin/gcc.exe >> Build flags: >> Id flags: >> >> The output was: >> El sistema no puede hallar la ruta especificada (system can´t find >> directory) >> >> Compiling the C compiler identification source file "CMakeCCompilerId.c" >> failed. >> Compiler: C:/MinGW/bin/gcc.exe >> Build flags: >> Id flags: -c >> >> The output was: >> El sistema no puede hallar la ruta especificada >> >> Compiling the C compiler identification source file "CMakeCCompilerId.c" >> failed. >> Compiler: C:/MinGW/bin/gcc.exe >> Build flags: >> Id flags: -Aa >> >> The output was: >> El sistema no puede hallar la ruta especificada >> >> Compiling the CXX compiler identification source file >> "CMakeCXXCompilerId.cpp" failed. >> Compiler: C:/MinGW/bin/g++.exe >> Build flags: >> Id flags: >> >> The output was: >> El sistema no puede hallar la ruta especificada >> >> Compiling the CXX compiler identification source file >> "CMakeCXXCompilerId.cpp" failed. >> Compiler: C:/MinGW/bin/g++.exe >> Build flags: >> Id flags: -c >> >> The output was: >> El sistema no puede hallar la ruta especificada >> >> >> >> I didnt know how to compile it , i am making my project whitout resource >> file but i need to solve this problem as soon as posible >> >> >> >> Thanks >> >> Dardo R. Schuster >> >> Canary Islands - Spain >> > _______________________________________________ > PySide mailing list > [email protected] > http://lists.openbossa.org/listinfo/pyside > _______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
