On 2006-11-02 10:33+0100 Arjen Markus wrote:

> Werner Smekal wrote:
>
>>
>> Anyway, no, I didn't update the Wiki but will do. And also strange,
>> that in cygwin I also have to copy all dlls into the example/c dir, to
>> make the examples run - they are not found automatically, though I
>> thought this should work in cygwin.
>
> Hm, I thought with Cygwin the -rpath mechanism would work properly!
> At least that is how CMake/make/the linker can find the libraries under
> Linux.
>
> That is interesting, if annoying. I want to implement the
> library_output_path
> option for Windows, but it seems necessary for Cygwin too.

I believe the -rpath mechanism worked under our ABS for
build-tree tests under Cygwin with shared libraries.  So we may be up
against a bug in our PLplot CBS, a bug in the CMake generator that Werner
used on Cygwin, or a bug in CMake itself for the Cygwin platform.

So, Werner, what generator did you use for your Cygwin experiment?
I believe there is a simple one that Arjen likes that works well on the
command line.  Is that the one you used?  Arjen, you may want to try
your favorite cmake generator as well on Cygwin to see if the problem
persists.

If experiments with a variety of generators are unsuccessful, then to help
sort out what is really going on I suggest you implement a simple
"hello-world" style CMake example with the shared library built in one
subdirectory and an example built in another subdirectory that calls that
library with the appropriate cmake commands to set up ctest for that
example.

(One of the nice advantages of CMake is it usually only takes a few minutes
to set up simple test cases like this.)

If you can get that simple test case to work on Cygwin with any generator, 
but that same generator does not work for our CBS, then obviously we need to
improve our CBS.  If the simple example does not work under any
circumstances, then it should be straightforward to make it part of the bug
report to the CMake developers so they can easily replicate the problem for
themselves.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to