On 2009-12-30 21:02-0500 Hazen Babcock wrote:

>
> I have successfully "installed" (all you have to do is download it &
> unzip it) GTK+ on windows from here:
> http://www.gtk.org/download-windows.html
> Using the GTK+ 2.18 all-in-one bundle, which includes cairo &
> pkg-config. I was able to build plplot with the cairo drivers and I got
> the build tree examples compiled and working.
>
> Now that I have pkg-config I've been attempting to build the examples in
> the install tree and have run into a problem:

>
> C:\Program Files\plplot\share\plplot5.9.5\examples>mingw32-make VERBOSE=1
> "C:\Program Files\CMake 2.6\bin\cmake.exe" -H"C:\Program
> Files\plplot\share\plplot5.9.5\examples" -B"C:\Program
> Files\plplot\share\plplot5.9.5\examples" --check-build-system
> CMakeFiles\Makefile.cmake 0
> "C:\Program Files\CMake 2.6\bin\cmake.exe" -E cmake_progress_start
> "C:\Program Files\plplot\share\plplot5.9.5\examples\CMakeFiles"
> "C:\Program
> Files\plplot\share\plplot5.9.5\examples\CMakeFiles\progress.make"
> mingw32-make -f CMakeFiles\Makefile2 all
> mingw32-make[1]: Entering directory `C:/Program
> Files/plplot/share/plplot5.9.5/examples'
> mingw32-make -f c\CMakeFiles\ext-cairo-test.dir\build.make
> c/CMakeFiles/ext-cairo-test.dir/depend
> mingw32-make[2]: Entering directory `C:/Program
> Files/plplot/share/plplot5.9.5/examples'
> "C:\Program Files\CMake 2.6\bin\cmake.exe" -E cmake_depends "MinGW
> Makefiles" "C:\Program Files\plplot\share\plplot5.9.5\examples"
> "C:\Program Files\plplot\share\plplot5.9.5\examples\c" "C:\Program
> Files\plplot\share\plplot5.9.5\examples" "C:\Program
> Files\plplot\share\plplot5.9.5\examples\c" "C:\Program
> Files\plplot\share\plplot5.9.5\examples\c\CMakeFiles\ext-cairo-test.dir\DependInfo.cmake"
> --color=
> mingw32-make[2]: Leaving directory `C:/Program
> Files/plplot/share/plplot5.9.5/examples'
> mingw32-make -f c\CMakeFiles\ext-cairo-test.dir\build.make
> c/CMakeFiles/ext-cairo-test.dir/build
> mingw32-make[2]: Entering directory `C:/Program
> Files/plplot/share/plplot5.9.5/examples'
> "C:\Program Files\CMake 2.6\bin\cmake.exe" -E cmake_progress_report
> "C:\Program Files\plplot\share\plplot5.9.5\examples\CMakeFiles" 19
> [  1%] Building C object
> c/CMakeFiles/ext-cairo-test.dir/ext-cairo-test.c.obj
> cd C:\PROGRA~1\plplot\share\PLPLOT~1.5\examples\c &&
> C:\MinGW\bin\gcc.exe   -IC:\Program -I"C:\Program
> Files\plplot\share\plplot5.9.5\examples\c\Files\plplot\include\plplot"
>  -IC:/gtk/include/cairo -IC:/gtk/include/freetype2 -IC:/gtk/include
> -IC:/gtk/include/libpng12 -o
> CMakeFiles\ext-cairo-test.dir\ext-cairo-test.c.obj   -c "C:\Program
> Files\plplot\share\plplot5.9.5\examples\c\ext-cairo-test.c"
> C:\Program
> Files\plplot\share\plplot5.9.5\examples\c\ext-cairo-test.c:6:20:
> plplot.h: No such file or directory
> [...]

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.

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.

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?

As far as I know, the CMake INCLUDE_DIR variable used in
"include_directories(${INCLUDE_DIR})" should always be specified as a CMake
path (which happens to agree with the Unix "/" conventions) rather than a
native path.

I must obviously ask you many questions to help you get install-tree builds
working properly on Windows, and I am looking forward to your replies.

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