On 2013-07-19 10:06+0200 Arjen Markus wrote:

> Hello,
>
> I am trying to run the Python examples under Cygwin, but
> I get the message from example 1 that it can not find the
> _plplotc module. Is there some environment variable required,
> like LD_LIBRARY_PATH or PATH? (The PATH variable points to
> the directory that contains the _plplotc.pyd file, but that,
> apparently, is not enough.)

Hi Arjen:

Is the problem, perhaps, the module name in the dll subdirectory does
not have the correct form to be recognized by Cygwin Python?

The current CMake logic concerning that name (from
bindings/python/CMakeLists.txt) is

if(WIN32_OR_CYGWIN)
   set_target_properties(
   _plplotcmodule
   PROPERTIES
   SUFFIX ".pyd"
   OUTPUT_NAME "_plplotc"
   )
endif(WIN32_OR_CYGWIN)

So the resulting name (for MSVC, MinGW, MinGW/MSYS, and Cygwin
currently) is _plplotc.pyd in the dll subdirectory.  Since that is not
working for you, my guess is the name should be _plplotc.dll in that
same subdirectory just for the Cygwin case. If your tests show that
guess (or one of your own) is correct, then please change the above
logic to

if(WIN32_AND_NOT_CYGWIN)
[...] current stanza
elseif(CYGWIN)
[...] modified stanza
endif(WIN32_AND_NOT_CYGWIN)

to automatically create the correct name form for the Cygwin case
without disrupting the other platforms I have mentioned.

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); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to