If you find that the files are not getting installed then you may need
to run Visual Studio with admin privileges to allow it to write to the
program files directory.

Phil

On 18 March 2015 at 22:25, Alan W. Irwin <ir...@beluga.phys.uvic.ca> wrote:
> On 2015-03-18 14:52+0100 Laurent Berger wrote:
>
>> After building plplot I want to install it on my computer with VS 2012
>> Win64. I install it using INSTALL project which in Plplot.sn solution
>> for VS 2012. Plplot is installed in program files .
>>
>> In my own project I used cmake looking for opencv openscenegraph and plplot :
>> find_package(OpenSceneGraph  3.2.1 REQUIRED osgDB osgUtil osgGA
>> osgViewer osgText osgSim)
>> find_package(OpenCV  REQUIRED)
>> find_package(wxWidgets COMPONENTS core base net adv aui html  qa
>> richtext stc ribbon xml gl REQUIRED)
>> find_package(PLplot  REQUIRED)
>>
>> CMake cannot find plplot on my computer.
>> I think cmake cannot find plplot because system variables are not set
>> : PLPLOT_HOME does not exist.
>> Must I set myself ?
>
> First you should verify what files have been installed in
> $INSTALL_PREFIX/lib/cmake/plplot/ by your PLplot install step,
> where $INSTALL_PREFIX is the installation prefix you chose for
> PLplot.
>
> Here is an example of what those files are named on Linux:
>
> software@raven> ls /home/software/plplot/installcmake/lib/cmake/plplot/
> export_plplot-noconfig.cmake  export_plplot.cmake  plplotConfig.cmake
>
> where "/home/software/plplot/installcmake" happens to be the install
> prefix I have chosen.
>
> Assuming those files have been installed correctly there, then
> the final step is to give a hint to CMake about where they
> are located.
>
> Normally, I find putting $INSTALL_PREFIX/bin on my PATH environment
> variable is enough, but look at the cmake help for find_package
> to look for other environment variables you could set.
>
>> Is it possible to set this variable in PLplot CMakeLists.txt install?
> PLPLOT_HOME is an ancient leftover from proprietary Unix days, and
> is sometimes still useful if you are doing everything by hand.  But
> you should ignore it for this case where you are using CMake facilities
> to find PLplot.
>
>> Is it possible to set env PATH in PLplot CMakeLists.txt to add program
>> files/plplot/bin?
>
> No, it is probably not a good idea to have the official PLplot
> installation set environment variables.  Instead, that is something
> each user of the installed PLplot should do for themselves (like I
> suggested above for the PATH case).
>
> 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
> __________________________
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to