On 2019-09-26 19:52-0000 xiaohai wang wrote:

i am trying the command in 
https://sourceforge.net/p/plplot/wiki/Configure_PLplot_for_Visual_CXX_CLI/
( is it  correct to install plplot for c not only for c++ according to this  
page?)<https://sourceforge.net/p/plplot/wiki/Configure_PLplot_for_Visual_CXX_CLI/>
for my c project in Visual Studio on windows to do the cmake

and after i typed  nmake install in command window throws a error like this

[100%] Built target x31
[100%] Built target x33
Install the project...
-- Install configuration: ""
CMake Error at cmake_install.cmake:44 (file):
 file cannot create directory: C:/Program Files
 (x86)/plplot/share/plplot5.15.0/examples.  Maybe need administrative
 privileges.


NMAKE : fatal error U1077: “.\cmake.exe”: 返回代码“0x1”
Stop.

返回代码  means "return code"

how can i solve this?

Hi xiaohai:

When you configure PLplot set the -DCMAKE_INSTALL_PREFIX cmake option
to the pathname of a non-existent directory that you have the
adminstrative priviledge to create yourself.  Then when you run "nmake
install" that directory will be created and filled up with the PLplot
installation (which is much smaller than your build tree because
unused files such as object files created by builds are not installed)
to build applications that link with installed PLplot libraries and
drivers.  Such examples (and both a traditional and CMake-based build
system for them) are supplied in all our supported computer languages
in the $PREFIX/share/plplot-5.15.0/examples source tree, where $PREFIX
is the directory you chose above.

By the way, it sounds like you are making excellent progress with the
nmake approach.  Good luck with the rest of your PLplot experience as
well!

Alan
__________________________
Alan W. Irwin

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.org); 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
__________________________


_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to