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.
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.
No problem, thanks for the help!
-Hazen
-- Looking for pkg-config - found
-- checking for module 'cairo'
-- found cairo, version 1.8.8
Summary of CMake build system results for the installed examples
Noninteractive device drivers:
PLD_pdfcairo: ON
PLD_pngcairo: ON
PLD_pscairo: ON
PLD_svgcairo: ON
PLD_cgm: OFF
PLD_dg300:
PLD_epsqt: ON
PLD_pdfqt: ON
PLD_bmpqt: ON
PLD_jpgqt: ON
PLD_pngqt: ON
PLD_ppmqt: ON
PLD_tiffqt: ON
PLD_svgqt: ON
PLD_gif: OFF
PLD_jpeg: OFF
PLD_png: OFF
PLD_hp7470:
PLD_hp7580:
PLD_lj_hpgl:
PLD_imp:
PLD_ljii:
PLD_ljiip:
PLD_pbm:
PLD_pdf: OFF
PLD_ps: ON
PLD_psc: ON
PLD_pstex: OFF
PLD_psttf: OFF
PLD_psttfc: OFF
PLD_svg: ON
PLD_tek4010f:
PLD_tek4107f:
PLD_wxpng: OFF
PLD_xfig: ON
Interactive device drivers:
PLD_xcairo: OFF
PLD_extcairo: ON
N.B. The above devices are all that are currently configurable by the
installed examples build system. Additional interactive device
drivers are likely supplied by the PLplot core and configured as part
of plplot-test-interactive.sh that is run by
make test_interactive
but the build system for the installed examples cannot configure anything
with those device drivers so we don't bother to retreive them from the
core build system or output them here.
Noninteractive bindings:
ENABLE_ada: OFF
ENABLE_c: ON
ENABLE_cxx: ON
ENABLE_d: OFF
ENABLE_f77: ON
ENABLE_f95: OFF
ENABLE_java: OFF
ENABLE_lua: OFF
ENABLE_ocaml: OFF
ENABLE_octave: OFF
ENABLE_pdl: OFF
ENABLE_python: ON
ENABLE_tcl: OFF
Interactive bindings:
ENABLE_tk: OFF
ENABLE_gnome2: OFF
ENABLE_wxwidgets: OFF
ENABLE_qt: ON
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Program
Files/plplot/share/plplot5.9.5/examples
C:\users\hazen>cd c:\users\hazen\plplot_build\
C:\users\hazen\plplot_build>"c:\program files\CMake 2.6\bin\cmake.exe"
..\plplot -G "MinGW Makefiles"
-DSWIG_EXECUTABLE=C:\users\Hazen\Downloads\swigwin-1.3.40\swig.exe
-DPKG_CONFIG_EXECUTABLE=C:\gtk\bin\pkg-config.exe -DBUILD_TEST=ON
-- The C compiler identification is GNU
-- Check for working C compiler: C:/MinGW/bin/gcc.exe
-- Check for working C compiler: C:/MinGW/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- CMake version = 2.6.4
-- WARNING: bash shell not found, ctest will not work properly
-- Checking whether system has ANSI C header files
-- Looking for include files StandardHeadersExist
-- Looking for include files StandardHeadersExist - found
-- Performing Test memchrExists
-- Performing Test memchrExists - Success
-- Performing Test freeExists
-- Performing Test freeExists - Success
-- Check for whether ctype.h macros work on characters with the
high bit set.
-- High-bit characters - work
-- ANSI C header files - found
-- Looking for include files PL_HAVE_UNISTD_H
-- Looking for include files PL_HAVE_UNISTD_H - found
-- Looking for include files HAVE_TERMIOS_H
-- Looking for include files HAVE_TERMIOS_H - not found.
-- Looking for include files PL_HAVE_STDINT_H
-- Looking for include files PL_HAVE_STDINT_H - found
-- Performing Test HAVE_SYS_WAIT_H
-- Performing Test HAVE_SYS_WAIT_H - Failed
-- Looking for DIR in sys/types.h;dirent.h
-- Looking for DIR in sys/types.h;dirent.h - found
-- Check for signal return type in <signal.h>
-- Check for signal handler return type type void - found
-- Looking for popen
-- Looking for popen - found
-- Looking for usleep
-- Looking for usleep - found
-- Looking for mkstemp
-- Looking for mkstemp - not found
-- Looking for finite
-- Looking for finite - found
-- Looking for isnan
-- Looking for isnan - found
-- Looking for isinf
-- Looking for isinf - found
-- Looking for snprintf
-- Looking for snprintf - found
-- SWIG_VERSION = 1.3.40
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- Looking for pkg-config - found
-- X11_FOUND =
-- X11_INCLUDE_DIR =
-- X11_COMPILE_FLAGS =
-- X11_LIBRARIES =
-- CMAKE_GENERATOR = MinGW Makefiles
-- The CXX compiler identification is GNU
-- Check for working CXX compiler: c:/MinGW/bin/g++.exe
-- Check for working CXX compiler: c:/MinGW/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to:
C:/users/hazen/plplot_build/language_tests/CXX
-- The CXX compiler identification is GNU
-- Check for working CXX compiler: c:/MinGW/bin/g++.exe
-- Check for working CXX compiler: c:/MinGW/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for using namespace support
-- Check for using namespace - found
-- Looking for C++ include cmath
-- Looking for C++ include cmath - found
-- Check for broken isnan support in <cmath>
-- Check for isnan in <cmath> - found
-- Check for using stdint.h with CXX compiler
-- Check for using stdint.h with CXX compiler - ok
-- CMAKE_GENERATOR = MinGW Makefiles
-- The Fortran compiler identification is unknown
-- Check for working Fortran compiler: C:/MinGW/bin/g77.exe
-- Check for working Fortran compiler: C:/MinGW/bin/g77.exe -- works
-- Checking whether C:/MinGW/bin/g77.exe supports Fortran 90
-- Checking whether C:/MinGW/bin/g77.exe supports Fortran 90 -- no
-- Configuring done
-- Generating done
-- Build files have been written to:
C:/users/hazen/plplot_build/language_tests/Fortran
-- The Fortran compiler identification is unknown
-- Check for working Fortran compiler: C:/MinGW/bin/g77.exe
-- Check for working Fortran compiler: C:/MinGW/bin/g77.exe -- works
-- Checking whether C:/MinGW/bin/g77.exe supports Fortran 90
-- Checking whether C:/MinGW/bin/g77.exe supports Fortran 90 -- no
-- WARNING: fortran compiler does not support f90/95. Disabling f95 bindings
-- Check for f77 command line support
-- Check for f77 command line support - found
-- Check if isnan function is available in fortran
-- Check for isnan in fortran - not found
-- NOTICE: Found: C:/MinGW/bin/g77.exe
-- CMAKE_GENERATOR = MinGW Makefiles
CMake Error: your Java compiler: "CMAKE_Java_COMPILER-NOTFOUND" was not found.
Please set CMAKE_Java_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!
-- WARNING: no working Java compiler so disabling Java bindings and examples.
-- Found PythonInterp: C:/Python26/python.exe
-- Found PythonLibs: C:/Python26/libs/libpython26.a
-- WARNING: The octave build requires perl. Disabling octave bindings
-- Looking for include paths and libraries for Tcl/Tk
-- Looking for include paths and libraries for Tcl/Tk - not found
-- WARNING: Disabling everything that is Tcl/Tk related
-- WARNING: perl not found. Disabling Perl/PDL examples
-- CMAKE_GENERATOR = MinGW Makefiles
-- Check for working Ada builder: C:/MinGW/bin/gnatmake.exe
-- Check for working Ada builder: C:/MinGW/bin/gnatmake.exe -- broken
CMake Error at
C:/users/hazen/plplot/cmake/modules/CMakeTestAdaCompiler.cmake:48 (MESSAGE):
The Ada builder "C:/MinGW/bin/gnatmake.exe" is not able to compile, bind,
and link a simple test program.
It fails with the following output:
Change Dir:
C:/users/hazen/plplot_build/language_tests/Ada/CMakeFiles/CMakeTmp
Run Build Command:C:/MinGW/bin/mingw32-make.exe
"C:\Program Files\CMake 2.6\bin\cmake.exe"
-HC:\users\hazen\plplot_build\language_tests\Ada\CMakeFiles\CMakeTmp
-BC:\users\hazen\plplot_build\language_tests\Ada\CMakeFiles\CMakeTmp
--check-build-system CMakeFiles\Makefile.cmake 0
"C:\Program Files\CMake 2.6\bin\cmake.exe" -E cmake_progress_start
C:\users\hazen\plplot_build\language_tests\Ada\CMakeFiles\CMakeTmp\CMakeFiles
C:\users\hazen\plplot_build\language_tests\Ada\CMakeFiles\CMakeTmp\CMakeFiles\progress.make
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\Makefile2 all
mingw32-make.exe[1]: Entering directory
`C:/users/hazen/plplot_build/language_tests/Ada/CMakeFiles/CMakeTmp'
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\testadacompiler.dir\build.make
CMakeFiles/testadacompiler.dir/depend
mingw32-make.exe[2]: Entering directory
`C:/users/hazen/plplot_build/language_tests/Ada/CMakeFiles/CMakeTmp'
"C:\Program Files\CMake 2.6\bin\cmake.exe" -E cmake_depends "MinGW
Makefiles"
C:\users\hazen\plplot_build\language_tests\Ada\CMakeFiles\CMakeTmp
C:\users\hazen\plplot_build\language_tests\Ada\CMakeFiles\CMakeTmp
C:\users\hazen\plplot_build\language_tests\Ada\CMakeFiles\CMakeTmp
C:\users\hazen\plplot_build\language_tests\Ada\CMakeFiles\CMakeTmp
C:\users\hazen\plplot_build\language_tests\Ada\CMakeFiles\CMakeTmp\CMakeFiles\testadacompiler.dir\DependInfo.cmake
--color=
Scanning dependencies of target testadacompiler
mingw32-make.exe[2]: Leaving directory
`C:/users/hazen/plplot_build/language_tests/Ada/CMakeFiles/CMakeTmp'
C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\testadacompiler.dir\build.make
CMakeFiles/testadacompiler.dir/build
mingw32-make.exe[2]: Entering directory
`C:/users/hazen/plplot_build/language_tests/Ada/CMakeFiles/CMakeTmp'
"C:\Program Files\CMake 2.6\bin\cmake.exe" -E cmake_progress_report
C:\users\hazen\plplot_build\language_tests\Ada\CMakeFiles\CMakeTmp\CMakeFiles
1
[100%] Building Ada object
CMakeFiles/testadacompiler.dir/testadacompiler.obj
C:\MinGW\bin\gcc.exe -c
C:\users\hazen\plplot_build\language_tests\Ada\CMakeFiles\CMakeTmp\testadacompiler.adb
-o CMakeFiles\testadacompiler.dir\testadacompiler.obj
gnat1: incorrect object file extension
mingw32-make.exe[2]: ***
[CMakeFiles/testadacompiler.dir/testadacompiler.obj] Error 1
mingw32-make.exe[2]: Leaving directory
`C:/users/hazen/plplot_build/language_tests/Ada/CMakeFiles/CMakeTmp'
mingw32-make.exe[1]: *** [CMakeFiles/testadacompiler.dir/all] Error 2
mingw32-make.exe[1]: Leaving directory
`C:/users/hazen/plplot_build/language_tests/Ada/CMakeFiles/CMakeTmp'
mingw32-make.exe: *** [all] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:7 (enable_language)
-- Configuring incomplete, errors occurred!
-- WARNING: no working Ada compiler so disabling Ada bindings and examples.
-- Could NOT find Lua50 (missing: LUA_LIBRARIES LUA_INCLUDE_DIR)
-- WARNING: Lua executable not found. Disabling Lua bindings
-- CMAKE_GENERATOR = MinGW Makefiles
-- D Compiler Install Prefix (use D_PATH env var to override): CMAKE_D_COMPI
CMake Error: your D compiler: "CMAKE_D_COMPILER-NOTFOUND" was not found.
Please set CMAKE_D_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!
-- WARNING: no working D compiler so disabling D bindings and examples.
-- Check for NaN awareness in C compiler
-- Check for NaN awareness in C compiler - found
-- WARNING: qhull library not found. Setting HAVE_QHULL to OFF.
-- checking for module 'pango'
-- found pango, version 1.26.1
-- checking for module 'pangoft2'
-- found pangoft2, version 1.26.1
-- checking for module 'pangocairo'
-- found pangocairo, version 1.26.1
-- WARNING: X windows not found. Setting xcairo driver to OFF.
-- WARNING: ENABLE_tk OFF. Setting PLD_tk, PLD_ntk, and PLD_tkwin OFF.
-- checking for modules 'lasi;pango;pangoft2'
-- package 'lasi' not found
includedir =
libdir =
linkflags =
cflags =
-- WARNING: pango, pangoft2, or lasi not found with pkg-config.
Setting PLD_psttf to OFF. Please install all of these packages
and/or set the environment variable PKG_CONFIG_PATH appropriately.
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.5.3
-- Looking for gdi32 header and library
-- Looking for gdi32 header and library - found
-- WARNING: wxWidgets not found so setting all wxwidgets devices to OFF.
-- WARNING: PLD_wxwidgets is OFF so setting ENABLE_wxwidgets to OFF.
-- WARNING:ocamlc not found. Disabling ocaml bindings
-- WARNING: validate target will not be available to check for syntax errors in
the PLplot DocBook documentation because onsgmls was not found.
-- checking for module 'cairo'
-- found cairo, version 1.8.8
Summary of CMake build system results for PLplot
Install location variables which can be set by the user:
CMAKE_INSTALL_PREFIX: C:/Program Files/plplot
CMAKE_INSTALL_EXEC_PREFIX C:/Program Files/plplot
CMAKE_INSTALL_BINDIR C:/Program Files/plplot/bin
CMAKE_INSTALL_DATADIR C:/Program Files/plplot/share
CMAKE_INSTALL_LIBDIR C:/Program Files/plplot/lib
CMAKE_INSTALL_INCLUDEDIR C:/Program Files/plplot/include
CMAKE_INSTALL_INFODIR C:/Program Files/plplot/share/info
CMAKE_INSTALL_MANDIR C:/Program Files/plplot/share/man
Derived install location variables:
DATA_DIR C:/Program Files/plplot/share/plplot5.9.5
LIB_DIR C:/Program Files/plplot/lib
INCLUDE_DIR C:/Program Files/plplot/include/plplot
BIN_DIR C:/Program Files/plplot/bin
TCL_DIR C:/Program Files/plplot/share/plplot5.9.5/tcl
ADA_INCLUDE_DIR C:/Program Files/plplot/share/ada/adainclude/plplotadad
ADA_LIB_DIR C:/Program Files/plplot/lib/ada/adalib/plplotadad
PYTHON_INSTDIR C:/Program Files/plplot\Lib\site-packages
DRV_DIR C:/Program Files/plplot/lib/plplot5.9.5/driversd
DOC_DIR C:/Program Files/plplot/share/doc/plplot
MAN_DIR C:/Program Files/plplot/share/man
INFO_DIR C:/Program Files/plplot/share/info
Other important CMake variables:
CMAKE_SYSTEM_NAME: Windows
UNIX:
WIN32: 1
APPLE:
MSVC: (MSVC_VERSION: )
MINGW: 1
MSYS:
CYGWIN:
BORLAND:
WATCOM:
SWIG_FOUND: 1
PERL_FOUND: FALSE
X11_FOUND:
CMAKE_BUILD_TYPE:
CMAKE_C_COMPILER CMAKE_C_FLAGS: C:/MinGW/bin/gcc.exe
CMAKE_CXX_COMPILER CMAKE_CXX_FLAGS: c:/MinGW/bin/g++.exe
CMAKE_Fortran_COMPILER CMAKE_Fortran_FLAGS: C:/MinGW/bin/g77.exe
Target Fortran:
PYTHON_EXECUTABLE: C:/Python26/python.exe
PYTHON_INCLUDE_PATH: C:/Python26/include
PYTHON_LIBRARIES: C:/Python26/libs/libpython26.a
NUMERIC_INCLUDE_PATH:
C:/Python26/Lib/site-packages/numpy/core/include/numpy
LIB_TAG: d
ENABLE_DYNDRIVERS: ON
DRIVERS_LIST: cairo;qt;mem;null;ps;svg;wingcc;xfig
DEVICES_LIST:
extcairo;pdfcairo;pngcairo;pscairo;svgcairo;epsqt;pdfqt;qtwidget;bmpqt;jpgqt;pngqt;ppmqt;tiffqt;extqt;svgqt;mem;null;ps;svg;wingcc;xfig
Library options:
BUILD_SHARED_LIBS: ON PL_DOUBLE: ON
Optional libraries:
HAVE_QHULL: OFF WITH_CSA: ON
HAVE_FREETYPE: HAVE_PTHREAD:
HAVE_AGG:
Language Bindings:
ENABLE_f77: ON ENABLE_f95: OFF
ENABLE_cxx: ON ENABLE_java: OFF
ENABLE_python: ON ENABLE_octave: OFF
ENABLE_tcl: OFF ENABLE_itcl: OFF
ENABLE_tk: OFF ENABLE_itk: OFF
ENABLE_pdl: OFF ENABLE_wxwidgets: OFF
ENABLE_gnome2: OFF ENABLE_pygcw: OFF
ENABLE_ada: OFF ENABLE_d: OFF
ENABLE_ocaml: OFF ENABLE_lua: OFF
ENABLE_qt: ON ENABLE_pyqt4: ON
-- Configuring done
-- Generating done
-- Build files have been written to: C:/users/hazen/plplot_build
C:\users\hazen\plplot_build>path=c:\Python26;c:\MinGW\bin;C:\Qt\2009.04\qt\bin;C:\users\Hazen\plplot_build\dll;c:\gtk\bin
------------------------------------------------------------------------------
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