On Wednesday 01 December 2010 07:58:13 Roman Lacko wrote: > Hi Hugo, > > I successfully compiled the packages with python 2.6 and 2.7 but the > compilation failed with Python 2.5:
Luciano fixed this problem, it's caused by a missing cast in a phonon inject code, because the Py_DECREF macro doesn't automatic cast the argument on py2.5 like it does on python >2.5. The patch to fix this compile problem is attached (use git am to apply it). > [ 97%] Building CXX object > PySide/phonon/CMakeFiles/phonon.dir/PySide/phonon/phonon_backendcapabilitie > s_notifierwrapper_wrapper.cpp.obj > phonon_backendcapabilities_notifierwrapper_wrapper.cpp > C:\Downloads\pyside-pkgsetup-1.0.0beta1\modules\pyside\build\PySide\phonon\ > PySide\phonon\phonon_backendcapabilities_notifierwrapper_wrapper.cpp(392) > > : error C2027: use of undefined type 'PySideSignal' > > > C:\Downloads\pyside-pkgsetup-1.0.0beta1\modules\pyside\libpyside\pysidesig > nal.h(40) > > : see declaration of 'PySideSignal' > > C:\Downloads\pyside-pkgsetup-1.0.0beta1\modules\pyside\build\PySide\phonon\ > PySide\phonon\phonon_backendcapabilities_notifierwrapper_wrapper.cpp(392) > > : error C2227: left of '->ob_refcnt' must point to > > class/struct/union/generic type > C:\Downloads\pyside-pkgsetup-1.0.0beta1\modules\pyside\build\PySide\phonon\ > PySide\phonon\phonon_backendcapabilities_notifierwrapper_wrapper.cpp(396) > > : error C2027: use of undefined type 'PySideSignal' > > > C:\Downloads\pyside-pkgsetup-1.0.0beta1\modules\pyside\libpyside\pysidesig > nal.h(40) > > : see declaration of 'PySideSignal' > > C:\Downloads\pyside-pkgsetup-1.0.0beta1\modules\pyside\build\PySide\phonon\ > PySide\phonon\phonon_backendcapabilities_notifierwrapper_wrapper.cpp(396) > > : error C2227: left of '->ob_refcnt' must point to > > class/struct/union/generic type > NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\cl.exe' : > return code '0x2' > Stop. > NMAKE : fatal error U1077: '"c:\program files (x86)\microsoft visual > studio 9.0\vc\bin\nmake.exe"' : return code '0x2' > Stop. > NMAKE : fatal error U1077: '"c:\program files (x86)\microsoft visual > studio 9.0\vc\bin\nmake.exe"' : return code '0x2' > > > Regards > -Roman > > 2010/12/1 Roman Lacko <[email protected]>: > > Here is the problem, somone forgot to release PySideTools with this > > patch: > > http://qt.gitorious.org/pyside/pyside-tools/commit/c6b462c76da96e4208795 > > 50f70a193932ed5fc9f > > > > which fixes the PySide version here: > > find_package(PySide 0.4.0 REQUIRED) > > to: > > find_package(PySide 1.0.0 REQUIRED) > > > > Regards > > -Roman > > > > 2010/12/1 Roman Lacko <[email protected]>: > >> Hi, > >> > >>> You can apply a simple patch to get it compiled, just comment the line > >>> 158 of the main CMakeLists.txt, removing: > >>> > >>> add_subdirectory(tests) > >> > >> the problem with PySide is solved but have another with PySideTools, > >> the configuration fails with error: > >> > >> Configuring pyside-tools in > >> c:\Downloads\pyside-pkgsetup-1.0.0beta1\modules\pyside-tools\build... > >> -- The C compiler identification is MSVC > >> -- The CXX compiler identification is MSVC > >> -- Check for CL compiler version > >> -- Check for CL compiler version - 1500 > >> -- Check if this is a free VC compiler > >> -- Check if this is a free VC compiler - no > >> -- Check for working C compiler: C:/Program Files (x86)/Microsoft > >> Visual Studio 9.0/VC/bin/cl.exe > >> -- Check for working C compiler: C:/Program Files (x86)/Microsoft > >> Visual Studio 9.0/VC/bin/cl.exe -- works > >> -- Detecting C compiler ABI info > >> -- Detecting C compiler ABI info - done > >> -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft > >> Visual Studio 9.0/VC/bin/cl.exe > >> -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft > >> Visual Studio 9.0/VC/bin/cl.exe -- works > >> -- Detecting CXX compiler ABI info > >> -- Detecting CXX compiler ABI info - done > >> -- Found PythonInterp: C:/Python26/python.exe > >> -- Looking for Q_WS_X11 > >> -- Looking for Q_WS_X11 - not found. > >> -- Looking for Q_WS_WIN > >> -- Looking for Q_WS_WIN - found > >> -- Looking for Q_WS_QWS > >> -- Looking for Q_WS_QWS - not found. > >> -- Looking for Q_WS_MAC > >> -- Looking for Q_WS_MAC - not found. > >> -- Found Qt-Version 4.7.1 (using C:/Qt/4.7.1/bin/qmake.exe) > >> CMake Error at CMakeLists.txt:7 (find_package): > >> Could not find module FindPySide.cmake or a configuration file for > >> package PySide. > >> > >> Adjust CMAKE_MODULE_PATH to find FindPySide.cmake or set PySide_DIR to > >> the directory containing a CMake configuration file for PySide. The > >> file will have one of the following names: > >> > >> PySideConfig.cmake > >> pyside-config.cmake > >> > >> > >> Regards > >> -Roman -- Hugo Parente Lima INdT - Instituto Nokia de Tecnologia
From 9e26b5f39d2d966da93f7bb835b09485a1ec5c83 Mon Sep 17 00:00:00 2001 From: Luciano Wolf <[email protected]> Date: Tue, 30 Nov 2010 10:30:55 -0300 Subject: [PATCH] Add needed cast to compile using python versions <2.6 Reviewer: Hugo Parente Lima <[email protected]> Marcelo Lira <[email protected]> --- PySide/phonon/typesystem_phonon.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PySide/phonon/typesystem_phonon.xml b/PySide/phonon/typesystem_phonon.xml index 16dd72c..226560e 100644 --- a/PySide/phonon/typesystem_phonon.xml +++ b/PySide/phonon/typesystem_phonon.xml @@ -87,11 +87,11 @@ signal_item = PySide::Signal::newObject("capabilitiesChanged", "void", NULL); PyDict_SetItemString(Sbk_Phonon_BackendCapabilities_NotifierWrapper_Type.super.ht_type.tp_dict, "capabilitiesChanged", (PyObject*)signal_item); - Py_DECREF(signal_item); + Py_DECREF((PyObject*)signal_item); signal_item = PySide::Signal::newObject("availableAudioOutputDevicesChanged", "void", NULL); PyDict_SetItemString( Sbk_Phonon_BackendCapabilities_NotifierWrapper_Type.super.ht_type.tp_dict, "availableAudioOutputDevicesChanged", (PyObject*)signal_item); - Py_DECREF(signal_item); + Py_DECREF((PyObject*)signal_item); </inject-code> </object-type> </namespace-type> -- 1.7.3.2
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
