I’ve added the three variables PYTHON_EXECUTABLE, PYTHON_INCLUDE_DIR and 
PYTHON_LIBRARY with paths to the corresponding Python 2.7 files/directories to 
my cmake calls.

For this, I’ve modified Carlos’ build script 
<http://www.cgoncalves.info/trash/pyside/macosx/createpackage> so that it looks 
like this <http://pastebin.com/72dECY3n>.

PySide seems to use Python 2.7 now, but I now get a segmentation fault when 
building pyside :)

/bin/sh: line 1: 10998 Segmentation fault      
/Users/stefan/Code/PySide/install/usr/bin/generatorrunner 
--generatorSet=shiboken --enable-parent-ctor-heuristic 
--enable-pyside-extensions --enable-return-value-heuristic 
/Users/stefan/Code/PySide/pyside/build/PySide/global.h 
--include-paths=/Users/stefan/Code/PySide/pyside/PySide:/Library/Frameworks 
--typesystem-paths=/Users/stefan/Code/PySide/pyside/PySide: 
--output-directory=/Users/stefan/Code/PySide/pyside/build/PySide/QtCore 
--license-file=/Users/stefan/Code/PySide/pyside/PySide/QtCore/../licensecomment.txt
 /Users/stefan/Code/PySide/pyside/PySide/QtCore/typesystem_core.xml 
--api-version=4.7
make[2]: *** [PySide/QtCore/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp] 
Error 139
make[1]: *** [PySide/QtCore/CMakeFiles/QtCore.dir/all] Error 2
make: *** [all] Error 2


Cheers,
Stefan


Am 2010-09-23 um 11:49 schrieb Stefan Scherfke:

> Hi Renato,
> 
> it (shiboken) still says:
> 
>       -- Found PythonLibs: /usr/lib/libpython2.6.dylib 
>       -- Found PythonInterp: /usr/bin/python2.6 
> 
> Maybe it’s because Python 2.7 gets installed to 
> /Library/Frameworks/Python.framework/Versions/2.7/bin rather than /usr/bin. I 
> also tried installing the PythonUnixTools package which places links to 
> python2.7 in /usr/local/bin, but this also didn’t help.
> 
> Regards,
> Stefan
> 
> 
> Am 2010-09-22 um 22:37 schrieb Renato Araujo Oliveira Filho:
> 
>> 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
> 

_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to