On 2009-12-31 14:52-0500 Hazen Babcock wrote:

> Alan W. Irwin wrote:
>> 
>> Hi Hazen:
>> 
>> To help understand the output you are sending, could you give us the top
>> directories of your source tree, build tree, and install tree that you use
>> for the core build?  N.B., I try to carefully distinguish between the
>> original core build that created the installed examples tree, and the
>> further build of those installed examples.
>
> Source:
> C:\users\hazen\plplot
>
> Build:
> C:\users\hazen\plplot_build
>
> Install:
> C:\Program Files\plplot
>
>> 
>> I don't think the install-tree examples build on Windows has ever been 
>> tried
>> before so I really appreciate you pioneering that.  It appears from above
>> that you are using the new CMake-based build system for the installed
>> examples.  I assume that below but please confirm that.
>
> Yes I am, I'm running cmake in:
> C:\Program Files\plplot\share\plplot5.9.5\examples
>
> I've attached the output from the cmake commands (for both core & install 
> builds).
>
>> It appears that INCLUDE_DIR is being screwed up/misinterpreted by that 
>> build
>> system.  For the core build, that is set with the following command
>> 
>> set(INCLUDE_DIR ${CMAKE_INSTALL_INCLUDEDIR}/${PACKAGE})
>> 
>> in cmake/modules/instdirs.cmake.
>> 
>> What does cmake for the core build say about that variable? (Its value is
>> not in the cache, but it is output in the cmake summary).  On my Linux
>> system, the value is
>> 
>> INCLUDE_DIR     /home/software/plplot_cvs/installcmake/include/plplot
>> 
>> i.e., $PL_INSTALL_PREFIX/include/plplot, where PL_INSTALL_PREFIX is the
>> top-level directory of the install tree.  If you check in that install-tree
>> directory you should find plplot.h is installed there by the core "make
>> install" command.
>> 
>> The new build system for the installed examples accesses that directory
>> via the
>> 
>> include_directories(${INCLUDE_DIR})
>> 
>> line in $PL_INSTALL_PREFIX/share/plplot5.9.5/examples/c/CMakeLists.txt, 
>> where
>> INCLUDE_DIR is set (for my system) using
>> 
>> set(INCLUDE_DIR /home/software/plplot_cvs/installcmake/include/plplot)
>> 
>> in 
>> $PL_INSTALL_PREFIX/share/plplot5.9.5/examples/cmake/modules/plplot_configure.cmake
>>  
>> 
>> Note the value is consistent with the core cmake summary output for me.
>> 
>> What does that file say about INCLUDE_DIR in your case?
>
> set(LIB_TAG "d")
> set(INCLUDE_DIR C:/Program Files/plplot/include/plplot)
> set(MATH_LIB )
>
> So it looks consistent.

Yes it does.  However, if you look at the
actual -I options you reported in your original post, the only one that
involved plplot/include/plplot is

-I"C:\Program 
Files\plplot\share\plplot5.9.5\examples\c\Files\plplot\include\plplot"

which obviously has a wrong (much too long) prefix consisting of
the source tree directory with everything after the blank in 
"Program Files/plplot/include/plplot" appended.

Thus, I suspect that blank is the source of the problem here. Could you try
again with an install prefix that doesn't have a blank in it?

Also, I don't think it has anything to do with the current problem, but it
is probably better/cleaner to use a separate build tree for building and
testing the installed examples rather than mixing the build and test in with
the installed examples.

Happy New Year's Eve! to everybody here.

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

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to