Dear all, After some success installing SAGA, I've tried editing SagaUtils.py and hard coding the SAGA_FOLDER to /usr/local/bin with not success. Having not knowledge of python, it seems to me that the following else clause should work in mac as well.
if SextanteUtils.isMac(): testfolder = os.path.join(str(QgsApplication.prefixPath()), "bin") if os.path.exists(os.path.join(testfolder, "saga_cmd")): folder = testfolder else: testfolder = "/usr/local/bin" if os.path.exists(os.path.join(testfolder, "saga_cmd")): folder = testfolder and the same in the next call to Mac elif SextanteUtils.isMac(): fout.write("export SAGA_MLB=" + SagaUtils.sagaPath() + "/../lib/saga\n"); fout.write("export PATH=" + SagaUtils.sagaPath() + ":$PATH\n"); else: pass for command in commands: fout.write("saga_cmd " + command.encode("utf8") + "\n") In this case I have doubts if SAGA_MLB should be "../lib/saga\n" instance of ""/../lib/saga\n" I've tested most of the above option with no success whatsoever Error messages are not always the same but the further I get is to: Error while checking SAGA installation. SAGA might not be correctly configured. Traceback (most recent call last): File "/Applications/QGIS_2.0-dev.app/Contents/Resources/python/plugins/sextante/saga/SagaUtils.py", line 146, in checkSagaIsInstalled from sextante.core.Sextante import runalg ImportError: cannot import name runalg Best On Thu, Apr 4, 2013 at 9:58 PM, William Kyngesburye <wokl...@kyngchaos.com>wrote: > On Apr 4, 2013, at 2:33 PM, gvSIGMac wrote: > > > Thanks William, > > On 10.8 I can't compile because there is not autoconf available. See > inline comments below. > > > That's part of what the instructions cover - installing the autotools. > > Anyways, I've been working on a packaging plan for saga within qgis. I > just got to the point of testing it, and it looks like Sextante does not > care if the saga tools are in the current PATH (ie the QGIS bin folder), it > requires a saga path to be configured in Sextante. Problem is, there is a > saga path option in the code, but there is no way to configure it in the > Sextante preferences dialog box. Orfeo and GRASS both have the preferences > to set their paths, so this must be an oversight. > > > ________________________________ > > Agustin > > > > On 04/04/2013, at 19:10, William Kyngesburye <wokl...@kyngchaos.com> > wrote: > > > >> On Apr 4, 2013, at 7:52 AM, Agustin Diez-Castillo wrote: > >> > >>> Other approaches compile in 10.7. Thanks William > >>>> SDKs are really only needed when you compile on one system for an > earlier system, like on Lion (10.7) for >Snow Leopard (10.6) > >>> So, maybe my first compilation should work with 10.6 and 10.8. I did > check both with no stable results. > >> > >> The binaries created should not work on 10.6 because you used a 10.7 > SDK. It should work on 10.8. The compilation method should work on all > systems as long as the SDK, macosx-version-min and CXX options are adjusted > to match (no need to set CXX on 10.6). > >> > >>> I prepared a package [1] in case anyone want to test this. > >>> Anyhow, if we're discussing that here is because we want to use SAGA > via SEXTANTE in Qgis and there I have no success whatsoever. In my system, > saga_cmd works but Qgis tells me that the SAGA installation maybe is not > correct. I did put /usr/local/lib/saga on my path as well. > >> > >> How did you add it to your path? Adding it to .bash_profile will not > work. And that's the wrong path anyways, it should be /usr/local/bin. > >> > > I added both to .bash_profile > >> If QGIS can't find /usr/local/bin without help (no way to do that in > QGIS 1.8, unless Sextante has a configuration option for the SAGA path), > one way would be to compile directly into the QGIS app. Add to the SAGA > configure command: > >> > >> --prefix=/Applications/QGIS.app/Content/MacOS > > I did something like that to build my saga but did not think about > putting this in QGIS. So maybe you can build QGIS with saga in the near > future? > > --prefix=/Applications/SAGA.app > >> > >> it will then install into the QGIS app bin/ folder which QGIS/Sextante > should find automatically. Though you can't move or rename QGIS now or it > will break SAGA. > > > >> > >>> There are other issues when running SAGA but I guess those belong to > the SAGA list. > >>> Agustin > >>> [1] https://www.dropbox.com/s/ufzsq7h826jp4u8/SAGA21.dmg > >>> > >>> > >>> On Thu, Mar 28, 2013 at 12:35 AM, William Kyngesburye < > wokl...@kyngchaos.com> wrote: > >>> OK. 2 simple choices of solutions: > >>> > >>> Don't use a SDK. SDKs are really only needed when you compile on one > system for an earlier system, like on Lion (10.7) for Snow Leopard (10.6), > or when only the Xcode app is used (ie with an Xcode project). With this, > just remove the -isysroot up to .sdk in the configuration. > >>> > >>> Or if you need the SDK, add "-F /Library/Frameworks" to LINK_MISC. > The documentation for the isysroot flag appears to be a little misleading. > It says that the sysroot specified is added to all search paths, but I > think it really means all search paths that are within the scope of the > SDK. /Library is not. But /usr is, so it would still catch /usr/local, so > the wx libraries would be a problem... > >>> > >> > >> ----- > >> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com> > >> http://www.kyngchaos.com/ > >> > >> First Pogril: Why is life like sticking your head in a bucket filled > with hyena offal? > >> Second Pogril: I don't know. Why IS life like sticking your head in a > bucket filled with hyena offal? > >> First Pogril: I don't know either. Wretched, isn't it? > >> > >> -HitchHiker's Guide to the Galaxy > >> > >> > > ----- > William Kyngesburye <kyngchaos*at*kyngchaos*dot*com> > http://www.kyngchaos.com/ > > Earth: "Mostly harmless" > > - revised entry in the HitchHiker's Guide to the Galaxy > > >
_______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user