[gdal-dev] Compile GDAL/OGR with OGDI Support on OSX 10.7.4
Samuel Smith
samuel at groundlevel.ca
Mon Oct 8 07:43:21 PDT 2012
I did that (actually to /usr/includes/ - projects.h alongside
proj_api.h) and that let me compile GDAL just fine without OGDI (where
before those .h's were noted as missing). I've also put ecs.h in the
same place.
In turn OGDI compiled fine~ish (thanks to your instructions), it's the
extra step of building GDAL with OGDI support that's got me.
That said ... I actually have no idea what an h(eader) file does. The
quality of your instructions got me this far, not my own acumen!
Sam
Sent from my iPad
On 2012-10-08, at 7:24, William Kyngesburye <woklist at kyngchaos.com> wrote:
> There is a new problem with OGDI that I didn't account for in my build instructions: OGDI isn't updated for the new PROJ headers (that is, no projects.h). You need to copy projects.h to your proj header location.
>
>
> On Oct 7, 2012, at 10:39 PM, Samuel Smith wrote:
>
>> Monkeying around with my first GDAL/OGR builds in Mac OS X 10.7.4 tonight ... Got it built with FGB support, then tried OGDI.
>>
>> This required compiling OGDI first, which I eventually got to go with the 3.2.0-beta2 instructions from kyngchaos (http://www.kyngchaos.com/macosx/build/ogdi) - Thanks!
>>
>> But now I can't get GDAL 1.9.2 to re-compile --with-ogdi ...
>>
>> My ./configure looks like this ...
>>
>> ./configure --with-threads --disable-static --without-grass \
>> --with-geos=/opt/opengeo/pgsql/9.1/bin/geos-config --with-proj=/opt/opengeo/pgsql/9.1/bin/proj \
>> --with-fgdb=/Library/FileGDB_API/ --with-pg=/opt/opengeo/pgsql/9.1/bin/pg_config --with-ogdi=/usr/local/lib/ogdi/ \
>> --prefix="$HOME/local" CFLAGS=" -Os -arch x86_64" CXXFLAGS=" -Os -arch x86_64" LDFLAGS=" -arch x86_64"
>>
>> But I keep getting told that ecs.h cannot be found ...
>>
>> ...
>> checking for jpeg12... enabled
>> checking for DGifOpenFileName in -lgif... no
>> checking gif_lib.h usability... no
>> checking gif_lib.h presence... no
>> checking for gif_lib.h... no
>> using internal gif code.
>> checking for cln_GetLayerCapabilities in -logdi... yes
>> configure: error: ecs.h not found.
>>
>> Any lovin'? TIA, Sam
>>
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> "I ache, therefore I am. Or in my case - I am, therefore I ache."
>
> - Marvin
>
>
More information about the gdal-dev
mailing list