to compile with python 2.7 try use this flag on cmake "-DCMAKE_USE_PYTHON_VERSION=2.7"
On Wed, Sep 22, 2010 at 5:21 PM, Stefan Scherfke <[email protected]> wrote: > Hello, > > I’ve reinstalled Snow Leopard last weekend and am now trying to build PySide > for Python 2.7 (ppc/i386/x86-64) and Qt 4.7 (Cocoa 32/64 bit). > > This time everything actually compiles, but I can’t get cmake to find Python > 2.7 instead of the system’s Python 2.6. If I use Carlos’ > createpackage-script, I get a nice mix of 2.6 and 2.7 stuff. > > I haven’t worked with cmake yet, but read > <http://www.cmake.org/cmake/help/cmake2.6docs.html#command:find_package> and > modified my cmake-call to: > > cmake .. -DCMAKE_INSTALL_PREFIX=../install/usr/ > -DCMAKE_SYSTEM_FRAMEWORK_PATH=/Library/Frameworks/ > -DCMAKE_SYSTEM_PREFIX_PATH=/Library/Frameworks/ > -DCMAKE_PREFIX_PATH=/Library/Frameworks/ CMakeLists.txt > > I also tried adding: > > find_package(PythonLibs PATHS /Library/Frameworks/ NO_DEFAULT_PATH) > > to CMakeLists.txt, but both didn’t work. > > Any help would be very appreciated. I’ll create and upload a package if I’m > eventually able to build that … ;-) > > Regards, > Stefan > _______________________________________________ > PySide mailing list > [email protected] > http://lists.openbossa.org/listinfo/pyside > -- Renato Araujo Oliveira Filho Instituto Nokia de Tecnologia - INdT Mobile: +55 (81) 8704-2144 _______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
