[Qgis-user] SAGA-GIS on OS X 10.7

Agustin Diez-Castillo gvsig.mac at gmail.com
Wed Mar 27 09:42:53 PDT 2013


William, Jesús and others,
I got a problem when compiling SAGA claiming, if I got it right, that GDAL
framework is not found.
Any hints?
This is the last part of the compiling log:
libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I../../../..
-D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__
-D__WXOSX_COCOA__ -I/Library/Frameworks/GDAL.framework/Headers
-I/Library/Frameworks/PROJ.framework/Headers -fPIC
-I../../../../src/saga_core
-I/Library/Frameworks/GDAL.framework/Versions/1.9/Headers -D_SAGA_LINUX
-D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_UNICODE -g -DDEBUG -g -O2 -MT
ogr_import.lo -MD -MP -MF .deps/ogr_import.Tpo -c ogr_import.cpp
 -fno-common -DPIC -o .libs/ogr_import.o
libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I../../../..
-D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__
-D__WXOSX_COCOA__ -I/Library/Frameworks/GDAL.framework/Headers
-I/Library/Frameworks/PROJ.framework/Headers -fPIC
-I../../../../src/saga_core
-I/Library/Frameworks/GDAL.framework/Versions/1.9/Headers -D_SAGA_LINUX
-D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_UNICODE -g -DDEBUG -g -O2 -MT
ogr_import.lo -MD -MP -MF .deps/ogr_import.Tpo -c ogr_import.cpp -o
ogr_import.o >/dev/null 2>&1
mv -f .deps/ogr_import.Tpo .deps/ogr_import.Plo
/bin/sh ../../../../libtool  --tag=CXX   --mode=link /usr/bin/clang -fPIC
-I../../../../src/saga_core `gdal-config --cflags` -D_SAGA_LINUX
-D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_UNICODE -g -DDEBUG  -g -O2 -fPIC
-shared -avoid-version `gdal-config --libs`
-L/Library/Frameworks/GDAL.framework/unix/lib
-L/Library/Frameworks/PROJ.framework/unix/lib -arch x86_64
-mmacosx-version-min=10.7 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
-lstdc++ -o libio_gdal.la -rpath /usr/local/lib/saga gdal_driver.lo
gdal_export.lo gdal_export_geotiff.lo gdal_import.lo gdal_import_netcdf.lo
MLB_Interface.lo ogr_driver.lo ogr_export.lo ogr_export_kml.lo
ogr_import.lo ../../../../src/saga_core/saga_api/libsaga_api.la
libtool: link: /usr/bin/clang -dynamiclib -Wl,-undefined -Wl,dynamic_lookup
-o .libs/libio_gdal.dylib  .libs/gdal_driver.o .libs/gdal_export.o
.libs/gdal_export_geotiff.o .libs/gdal_import.o .libs/gdal_import_netcdf.o
.libs/MLB_Interface.o .libs/ogr_driver.o .libs/ogr_export.o
.libs/ogr_export_kml.o .libs/ogr_import.o   -framework GDAL
-L/Library/Frameworks/GDAL.framework/unix/lib
-L/Library/Frameworks/PROJ.framework/unix/lib
../../../../src/saga_core/saga_api/.libs/libsaga_api.dylib
-L/usr/local/lib/wxPython-2.9.4.0/lib -lwx_osx_cocoau-2.9 -lstdc++  -O2
-arch x86_64 -mmacosx-version-min=10.7 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
  -framework GDAL -framework IOKit -framework Carbon -framework Cocoa
-framework AudioToolbox -framework System -framework OpenGL -framework
QuickTime -install_name  /usr/local/lib/saga/libio_gdal.dylib
 -Wl,-single_module
ld: framework not found GDAL
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[5]: *** [libio_gdal.la] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


On Tue, Mar 26, 2013 at 4:14 PM, William Kyngesburye
<woklist at kyngchaos.com>wrote:

> Ah, if you're having problems there also, I suggest downloading and
> installing wxPython from wxpython.org.  wxPython includes wxWidgets.
>  Saves a long compilation.  Then you just need to run a command before
> building SAGA (instead of building wxWidgets steps):
>
> export PATH="/usr/local/lib/wxPython-2.9.4.0/bin:$PATH"
>
> On Mar 26, 2013, at 9:59 AM, Jesus Munoz Serrano wrote:
>
> > Thanks a lot william and sorry about my questions. I'm not used to work
> with the terminal nor python.
> > So I downloaded and installed the UnixImageIO framework. But now, I have
> to build wx-widgets. I created build-cocoa-debug, then cd build-cocoa-debug
> and run:
> >
> > ../configure --enable-unicode --enable-debug --enable-shared
> --enable-monolithic --with-osx_cocoa --enable-macosx_arch=x86_64 \
> > --with-macosx-version-min=10.7 \
> >
> --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
> >
> > I am getting the same error again. Also I think I am gonna have the same
> problem building GNU packages and SAGA. There is any easier way to do it?
> Sorry again for the questions.
> >
> > Jesus
> >
> >
> >
> >
> > On 26 Mar 2013, at 15:38, William Kyngesburye wrote:
> >
> >> UnixImageIO framework
> >
>
> -----
> 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
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20130327/f796f1a1/attachment.html>


More information about the Qgis-user mailing list