On 2017-09-18 21:23+0200 Laurent Berger wrote:

Hi,

Thanks for new version (5.13.0). I have installed plplot and now I want to use it in my own project using cmake

my cmakelist is


if (wxWidgets_FOUND)
   include_directories(${wxWidgets_INCLUDE_DIRS})
   target_link_libraries (wxOpenCVMain ${wxWidgets_LIBRARIES} )
endif (wxWidgets_FOUND)
if (PLplot_FOUND)
message( " PATH  ${PLplot_INCLUDE_DIR} ${PLplot_LIBS}" )
message( " PATH ${PLplot_DIR} ${PLplot_LIBS}" )
   include_directories(${PLplot_INCLUDE_DIRS})
   target_link_libraries( wxOpenCVMain ${PLplot_LIBS} )
else (PLplot_FOUND)
message( " PROBLEME" )
endif(PLplot_FOUND)


I can see  in cmake output
OPENCV = G:/Lib/install/opencv/include;G:/Lib/install/opencv/include/opencv
PATH
PATH C:/Program Files/plplot/lib/cmake/plplot
-- WINDOWS
-- G:/Lib/wxWidgets-3.1.0/lib/vc_x64_lib
-- Configuring done
-- Generating done
-- Build files have been written to: G:/Lib/build/wxOpenCV


but nothing in variable PLplot_INCLUDE_DIR .

Where is my mistake ?

Hi Laurent:

I am glad you finally were able to figure out your plplot-devel posting
issues.

From your first message logic above, and the output shown, it appears
_both_ ${PLplot_INCLUDE_DIR} and ${PLplot_LIBS} are empty, while
${PLplot_DIR} is filled with C:/Program Files/plplot/lib/cmake/plplot.

But you need to give more details (i.e., the CMake logic you used to
determine the values of ${PLplot_INCLUDE_DIR} and ${PLplot_LIBS}, and
the actual locations on your disk for the PLplot headers and
libraries) before we can help you determine _why_ those variables are
empty.

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
__________________________

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to