[Qgis-user] Python bindings for SAGA for OSX (Leopard)?

William Kyngesburye woklist at kyngchaos.com
Sun Nov 13 10:28:00 PST 2011


No, it's ultimately connected to Carbon vs. Cocoa on OS X.  Carbon is 32bit only, Cocoa is needed for 64bit.  wxPython 2.9 is needed for Cocoa, thus 64bit.

Then, since there is compiled C++ code in SAGA, and QGIS has its own internal Python interpreter, SAGA architecture must match QGIS architecture to be usable at all in QGIS.  So, if you want a 64bit QGIS, you need a 64bit Cocoa wxPython 2.9 for SAGA.


On Nov 12, 2011, at 10:05 PM, John C. Tull wrote:

> I don't know if this might be of relevance, but it looks like they have made saga work on FreeBSD. I do not know if FreeBSD suffers from the same wxPython limitation, but I'm guessing it does not. Perhaps this will prove helpful, though:
> http://sourceforge.net/projects/saga-gis/forums/forum/790705/topic/3518550
> 
> Cheers,
> John
> 
> On Nov 12, 2011, at 7:42 PM, William Kyngesburye wrote:
> 
>> ooohhh, disabling python doesn't help - it's SAGA itself that needs wx for its API (wx-config is for the wx libraries, not wxpython).  Then the GUI and Python API is built off wxpython.  Or something like that...
>> 
>> On Nov 12, 2011, at 12:08 PM, Agustin Lobo wrote:
>> 
>>> what about using saga through qgis? The plugin on linux seems to work
>>> pretty well (Faunalia has performed some serious tests for a bunch of
>>> modules). Would that not avoid the wxpython issue?
>>> Agus
>>> 
>>> 2011/11/12 William Kyngesburye <woklist at kyngchaos.com>:
>>>> Well, it's looks like SAGA is going to be a tough one on OS X.
>>>> 
>>>> One big issue for me is that it doesn't support wxPython (for the GUI) 2.9 yet.  2.9 is needed on Snow Leopard and Lion to make a fully-64bit SAGA.  But it should compile fine with a 32bit wxPython 2.8.  I just prefer to have things keep up with OS X.
>>>> 
>>>> Configuration is strange - unlike all other configurations I've seen, SAGA configure does NOT detect or have any way to specify locations for dependent libraries and software, like wxPython, GDAL, PROJ, ...  It either expects libraries to be in standard system paths (/usr, /usr/local), or finds package config scripts (wx-config, gdal-config, ...) during compilation.
>>>> 
>>>> This means adding stuff to your PATH to be able to find wxPython at all (the "official" distribution puts it in a subfolder of /usr/local/lib, so wx-config is not in the PATH) or any of my frameworks.  For those that don't have config scripts (ie PROJ), it will probably mean messing around with CFLAGS and LDFLAGS - I didn't get past the wxPython 2.9 problem to be able to try anything else.
>>>> 
>>>> On Nov 10, 2011, at 11:26 AM, William Kyngesburye wrote:
>>>> 
>>>>> After a quick look, I don't think the python version is a problem - there is no mention of a minimum Python.
>>>>> 
>>>>> SAGA has a lot of compiled C++, it's not just Python, so you need binaries or compile yourself.  wxPython is also required, for the GUI.
>>>>> 
>>>>> I can look into how to do the compilation on OS X, and may even make an installer package, though I support Leopard any more with my packages so you'd still have to compile it yourself.
>>>>> 
>>>>> On Nov 10, 2011, at 10:51 AM, Daniel Alejandro Pacheco wrote:
>>>>> 
>>>>>> Hi everythere,
>>>>>> 
>>>>>> I am having some trouble in the moment when I want install some plugins that I need, in the beginning I thought that is because the plugins are broken, but later I understood that is because first, I need to install Phyton bindings for SAGA if I want run this plugins, the BIG problem is that in the webpage QGIS SAGA interface wiki I can´t find how to install it in Macintosh Leopard, I reviewed other tutorials, and in none mention the issue. My question is how can solve this problem?? I think that maybe I need update my version of Phyton to 2.6, because OSX Leopard has Phyton version 2.5, how can I do it? And I don´t know if this update solve this problem.
>>>>>> 
>>>>>> Maybe someone can help me.
>>>>>> Tks for you help
>>>>>> 
>>>>>> Best Regards
>>>>>> 
>>>>>> Daniel
>> 
>> -----
>> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
>> http://www.kyngchaos.com/
>> 
>> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
>> 
>> [Marvin]  You think you have problems?  What are you supposed to do if you ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer...
>> 
>> - HitchHiker's Guide to the Galaxy
>> 
>> 
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

Theory of the Universe

There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable.  There is another theory which states that this has already happened.

-Hitchhiker's Guide to the Galaxy 2nd season intro





More information about the Qgis-user mailing list