Hi Xiaohai, -----Original Message----- From: Alan W. Irwin <alan.w.irwin1...@gmail.com> ... > 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! >>AM: An alternative would be to run the command window as administrator - if >>you search for the command prompt and right-click on the name that appears >>you get the choice to run it as a different user or as administrator. Regards, Arjen DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. _______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general