All,

I have had success linking to Plplot shared libraries on all distributions of 
Linux.  However,  in porting some of my software to Cygwin on XP, linking to 
static libraries had a small problem using the *.pc file for F77.

I built plplot like this on Cygwin:
plplot-5.9.2 from the tarball.  
----------------------------------
mkdir build_dir
cd build_dir
export CC="gcc"
export CXX="g++"
export FC="g77"
cmake -DBUILD_SHARED_LIBS=OFF ../ >& cmake.out
make >& make.out
make install >& make_install.out
------------------------------------------

The generated plplotd-f77.pc referenced the static libraries with a -9.1.1 
suffix, like one might expect for a shared library.  I manually edited the 
line:

Libs: -L${libdir} -lplplotf77d-9.9.1  -lplplotf77cd-9.1.1

to the following line

Libs: -L${libdir} -lplplotf77d -lplplotf77cd

And then my software was able to build (I use autoconf, automake, libtool).  
The pkg-config generated flags made the link to the static libraries, since 
those plplot library names don't end in -9.1.1.

I would rather not distribute software with instructions on how to manually 
edit a plplot file before a build.  I can't find the "gen-pc-files.sh" script 
referred to in the plplot README file, so I guess things have moved on a bit 
since that was written.  Do you have a recommendation on how to modify the 
generation of the pkg-config *.pc files in the case of a static only build?  

Paul
-- 
Dr. Paul Michaels, PE
Voice: (208) 426-1929 Fax:(208) 426-4061
Email: p...@cgiss.boisestate.edu WWW: http://cgiss.boisestate.edu/~pm

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to