[FWTools] Probably did something stupid...

Frank Warmerdam warmerdam at pobox.com
Wed Jul 25 11:00:15 EDT 2007


Mike Toothaker wrote:
> This is the Makefile for both which will not compile.  The problem seems 
> to be connected to the “–Wl,-rpath,$(FWLIB)” part, and the error lines 
> seem to indicate that it is trying to find the libraries for smile even 
> though it cannot.  So my question is maybe it is because I am trying to 
> mix shared and static libraries as the smile libraries are .a and the 
> libraries for FWTools are .so, is it possible to get statically built 
> copies of the FWTools libraries?  Is there some way that I can have it 
> link in the static libraries for smile and use the shared ones for 
> FWTools at run time?  If I leave off the –Wl stuff then I get errors 
> that it has unreferenced function calls for my gdal functions.
...
> test: milcordsmilebn.o milcordbn.o test.cpp
> 
>             $(CC) -o test.exe test.cpp milcordsmilebn.o milcordbn.o \
> 
>             -L$(SMILE) -I$(SMILE) -I$(CMBN) -lsmilearn -lsmilexml -lsmile \
> 
>             -L$(FWLIB) -I$(CMDB) -I$(FWINC) -lgdal -Wl,-rpath,$(FWLIB)

Mike,

I'm a bit fuzzy on the -Wl,-rpath flag.  Why do you need this for FWTools?
Can't you just add the FWLIB directory to LD_LIBRARY_PATH?

There is no option to get the static libraries for FWTools.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the FWTools mailing list