[GRASS-dev] How to specify custom include directories

David Finlayson dfinlayson at usgs.gov
Wed Jul 11 19:18:57 EDT 2007


First time compiling GRASS on SuSE. I do not have su privileges on this
machine and so I am forced to build my entire tool chain in my home
directory ($HOME)=/we/davidf).

So far fftw-3.1.2, gdal-1.4.2 and proj-4.5.0 have all compiled using the
following:

./configure --prefix=$HOME
make
make install

Which has built a directory tree in $HOME like this:

$HOME/bin
$HOME/include
$HOME/lib
$HOME/man
$HOME/share

Now, trying the same with grass results in a configure error:

albacore src/grass-6.2.cvs_src_snapshot_2007_07_07> ./configure
--prefix=$HOME --enable-64bit --with-libs=/usr/lib64
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
... etc ...
checking for deflate in -lz... yes
checking for location of External PROJ.4 includes...
checking for proj_api.h... no
configure: error: *** Unable to locate External PROJ.4 includes.

However, proj_api.h is in $HOME/include

I have tried adding --includedir=$HOME/include to the above but that didn't
change anything.  I'm sure it's something simple. How do I tell configure
where my local includes are (and why didn't --prefix=$HOME work?)

Thanks,



-- 
David Finlayson, Ph.D.
Operational Geologist

U.S. Geological Survey
Pacific Science Center
400 Natural Bridges Drive
Santa Cruz, CA  95060, USA

Tel: 831-427-4757, Fax: 831-427-4748, E-mail: dfinlayson at usgs.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20070711/26199214/attachment.html


More information about the grass-dev mailing list