On 2013-01-04 09:53+0100 Arjen Markus wrote:

> Hello,
>
> I ran into a strange problem while trying to build PLplot
> on Windows XP with the Python bindings enabled and I
> wonder
> if someone can help out with it.
>
> Here is the environment I am using:
> - CMake 2.8.10.2 with NMake Makefiles as the generator
> - MSVC/C++ 16.00.xxx
> - SWIG 2.0.9
> - Python 2.7.3
>
> When I try to build PLplot the build process errors out
> on building dll\_plplotc.pyd: the linker is looking for
> a library python27_d.lib.
>
> I have been unable so far to find in the CMake files
> where this library _name_ is coming from and what is
> more, the name is contained in only one file in the
> set of generated and built files:
> plplotcmodulePYTHON_wrap.c.obj

Hi Arjen:

My guess is that PYTHON_LIBRARY:FILEPATH in the CMakeCache.txt file is
providing this library name.  On linux, that cached value is

PYTHON_LIBRARY:FILEPATH=/usr/lib/libpython2.7.so

and on my MinGW/MSYS/wine platform it is

PYTHON_LIBRARY:FILEPATH=z:/home/wine/newstart/python/Python27/libs/libpython27.a

The Python library is required to satisfy the dependencies of the
python bindings.

The cached value of PYTHON_LIBRARY should be provided automatically by
the CMake Python find module.  If that find module is putting the
wrong result into PYTHON_LIBRARY for some reason on your platform,
then using the -DPYTHON_LIBRARY:FILEPATH cmake option should force
the cache to have the correct value.

Hope this overview of the purpose of the Python library and how
it is found and cached helps you to solve the build issue.

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
__________________________

------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to