[Mapserver-users] compiling against .so or sources? what is better?

Daniel Morissette morissette at dmsolutions.ca
Fri Jan 23 14:18:35 PST 2004


Eduardo Patto Kanegae wrote:
> What is the diference between compile a feature with its source or with 
> its shared object lib ?
> 
> eg:
> 
> ./configure --with-foo=/usr/local/lib # poiting to libfoo.so
> 
> or
> 
> ./configure --with-foo=/usr/local/foo/src # pointing to foo.h and other 
> "foo" C sources...
> 
> thanks
> 

You should use the installed version of the library whenever possible 
(unless you really know what you're doing).  Pointing directly to the 
source tree usually leads to trouble at runtime.

Note that when pointing to the installed version, in general you 
shouldn't include the "lib" directory in the path, i.e. you should use

   --with-foo=/usr/local

Also note that some configure options want to be pointed to a 
configuration script and not to a directory, so you always need to read 
the "./configure --help" output or the docs to check what you need to 
pass. For instance, GDAL needs a reference to the gdal-config script, e.g.

   --with-gdal=/usr/local/bin/gdal-config

HTH

Daniel
-- 
------------------------------------------------------------
  Daniel Morissette               morissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the MapServer-users mailing list