[GRASS-user] error compiling GRASS "checking for pj_get_def in -lproj... no"

P Kishor punk.kish at gmail.com
Thu Sep 3 08:58:22 EDT 2009


I am trying to compile GRASS on Mac OS X. For now, configure is
failing to find libproj correctly. Here is what I get

punkish at Lucknow ~/Projects/grass-6.4.0RC5$ ./configure \
--with-proj-includes=/usr/local/include \
--with-proj-libs=/usr/local/lib \
--with-proj-share=/usr/local/share/proj \
..
checking for location of External PROJ.4 includes... /usr/local/include
checking for proj_api.h... yes
checking External PROJ.4 version... 461
checking for location of External PROJ.4 library... /usr/local/lib
checking for pj_get_def in -lproj... no
configure: error: *** Unable to locate External PROJ.4 library.
punkish at Lucknow ~/Projects/grass-6.4.0RC5$


Here is what I have

punkish at Lucknow /usr/local/lib$ll libpro*
-rwxr-xr-x  1 root  wheel   302492 Mar 10 11:04 libproj.0.5.5.dylib*
lrwxr-xr-x  1 root  wheel       19 Mar 10 11:04 libproj.0.dylib@ ->
libproj.0.5.5.dylib
-rw-r--r--  1 root  wheel  1141944 Mar 10 11:04 libproj.a
lrwxr-xr-x  1 root  wheel       19 Mar 10 11:04 libproj.dylib@ ->
libproj.0.5.5.dylib
-rwxr-xr-x  1 root  wheel      831 Mar 10 11:04 libproj.la*

punkish at Lucknow /usr/local/lib$nm libproj.dylib | grep 'pj_get_def'
00027210 T _pj_get_def



To summarize, I have PROJ.4 4.6.1 installed correctly, and working
well with other programs such as MapServer and PostGIS. My libproj has
that specific symbol that GRASS configure seems unable to find. I have
seen a few references to this error around on lists, but no definitive
remedy.

Any suggestions anyone?



-- 
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================
Sent from Madison, WI, United States


More information about the grass-user mailing list