[Proj] Trouble integrating Proj4 into application

Karney, Charles ckarney at Sarnoff.com
Tue Jun 15 07:32:37 EST 2010


If you don't want to muck around with the system files, there are two
other possible solutions.

(1) Define LD_LIBRARY_PATH, with one of

  export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
  export LD_LIBRARY_PATH=/usr/local/lib

(depending on whether LD_LIBRARY_PATH is already defined or not).  This
tells the program loader where to look for shared libraries with running
an executable.

(2) Alternatively, link with

  -Wl,"-rpath=/usr/local/lib" -L/usr/local/lib

The rpath command writes the search path for shared libraries into the
executable.

________________________________________
From: proj-bounces at lists.maptools.org [proj-bounces at lists.maptools.org] On Behalf Of Hamish [hamish_b at yahoo.com]
Sent: Tuesday, June 15, 2010 06:36
To: PROJ.4 and general Projections Discussions
Subject: Re: [Proj] Trouble integrating Proj4 into application

James wrote:
> I have installed the code base for Proj4 on my
> Linux server (Fedora, very recent build).  The build went without a
> hitch, all programs test out fine.  My problem is I can't get the lib
> to compile into my project.  Keeps giving me lib not found errors,
> though the lib is built, in place, and has proper permissions.

you've encountered a classic:

1. add /usr/local/lib to /etc/ld.so.conf
2. as root run ldconfig.


regards,
Hamish



_______________________________________________
Proj mailing list
Proj at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/proj



More information about the Proj mailing list