Hi, I just signed up to the list, so my apologies if my post is 
completely out of whack.

-Firstly the documentation (wiki & INSTALL) use a file named 
plplot_cmake. This file is not present in either 5.9.2 source tree nor 
the current svn trunk. I think the file I need is this one called 
"CMakeLists.txt". Moving on...

-After running cmake in "build_dir" the makefile is created in '../' 
(the source dir) instead of './'. Moving on..

My real question is that there appears to be no way to tell cmake what 
my cairo and pangocairo build flags need to be, resulting in predictable 
errors such as:
...plplot-5.9.2/drivers/cairo.c:33:19: error: cairo.h: No such file or 
directory
...plplot-5.9.2/drivers/cairo.c:34:30: error: pango/pangocairo.h: No 
such file or directory

Of course what is missing is these calls somewhere:

$ pkg-config --cflags --libs cairo
$ pkg-config --cflags --libs pangocairo

Any help pointing me in the right direction would be much appreciated.

Here is my cmake line:

cmake -DCMAKE_INSTALL_PREFIX=/home/thomas/ -DPLD_extcairo=ON 
-DENABLE_f77=OFF -DENABLE_wxwidgets=OFF -DENABLE_cxx=OFF 
-DENABLE_python=OFF -DCMAKE_C_FLAGS=-O2 -DPLD_pscairo=OFF 
-DPLD_pdfcairo=OFF -DPLD_pngcairo=OFF -DPLD_xcairo=OFF 
-DPLD_svgcairo=OFF -DPLD_memcairo=OFF -DPLD_png=OFF -DPLD_jpeg=OFF 
-DPLD_gif=OFF -DPLD_hp7470=OFF -DPLD_hp7580=OFF -DPLD_lj_hpgl=OFF 
-DPLD_xterm=OFF -DPLD_tek4010=OFF -DPLD_4010f=OFF -DPLD_tek4107=OFF 
-DPLD_tek4107f=OFF -DPLD_mskermit=OFF -DPLD_versaterm=OFF -DPLD_vlt=OFF 
-DPLD_conex=OFF -DPLD_aqt=OFF -DPLD_cgm=OFF -DPLD_dg300=OFF 
-DPLD_gcw=OFF -DPLD_imp=OFF -DPLD_linuxvga=OFF -DPLD_ljii=OFF 
-DPLD_ljiip=OFF -DPLD_mem=OFF -DPLD_ntk=OFF -DPLD_null=OFF -DPLD_pbm=OFF 
-DPLD_pdf=OFF -DPLD_plmeta=OFF -DPLD_ps=OFF -DPLD_pstex=OFF 
-DPLD_psttf=OFF -DPLD_svg=OFF -DPLD_tk=OFF -DPLD_tkwin=OFF 
-DPLD_wingcc=OFF -DPLD_wxwidgets=OFF -DPLD_xfig=OFF -DPLD_xwin=OFF 
../CMakeLists.txt >& cmake.out

and cmake.out looks like:

-- Checking whether system has ANSI C header files
-- ANSI C header files - found
-- SWIG_VERSION = 1.3.33
-- Looking for pkg-config - found
-- X11_FOUND = 1
-- X11_INCLUDE_DIR = /usr/include
-- X11_COMPILE_FLAGS = -I/usr/include
-- X11_LIBRARIES = 
/usr/lib/libSM.so;/usr/lib/libICE.so;/usr/lib/libX11.so;/usr/lib/libXext.so
-- ENABLE_tcl is OFF so disabling everything else that is Tcl/Tk related
-- FREETYPE_INCLUDE_DIR = /usr/include/freetype2
-- FREETYPE_LIBRARIES = /usr/lib/libfreetype.so
-- checking for module 'pango'
--   found pango, version 1.20.5
-- checking for module 'pangoft2'
--   found pangoft2, version 1.20.5
-- Found LTDL: /usr/lib/libltdl.so;/usr/lib/libdl.so
-- LTDL_INCLUDE_DIR = /usr/include
-- LTDL_LIBRARY_DIR = /usr/lib
-- LTDL_LIBRARIES = /usr/lib/libltdl.so;/usr/lib/libdl.so

Summary of CMake build system results for PLplot

Install location variables which can be set by the user:
CMAKE_INSTALL_PREFIX:      /home/thomas
CMAKE_INSTALL_EXEC_PREFIX  /home/thomas
CMAKE_INSTALL_BINDIR       /home/thomas/bin
CMAKE_INSTALL_DATADIR      /home/thomas/share
CMAKE_INSTALL_LIBDIR       /home/thomas/lib
CMAKE_INSTALL_INCLUDEDIR   /home/thomas/include
CMAKE_INSTALL_INFODIR      /home/thomas/share/info
CMAKE_INSTALL_MANDIR       /home/thomas/share/man

Derived install location variables:
DATA_DIR        /home/thomas/share/plplot5.9.2
LIB_DIR         /home/thomas/lib
INCLUDE_DIR     /home/thomas/include/plplot
BIN_DIR         /home/thomas/bin
TCL_DIR         /home/thomas/share/plplot5.9.2/tcl
ADA_INCLUDE_DIR /home/thomas/share/ada/adainclude/plplotadad
ADA_LIB_DIR     /home/thomas/lib/ada/adalib/plplotadad
PYTHON_INSTDIR
DRV_DIR         /home/thomas/lib/plplot5.9.2/driversd
DOC_DIR         /home/thomas/share/doc/plplot
MAN_DIR         /home/thomas/share/man
INFO_DIR        /home/thomas/share/info

Other important CMake variables:

CMAKE_SYSTEM_NAME:      Linux
UNIX:                   1
WIN32:
APPLE:
MSVC:                           (MSVC_VERSION:  )
MINGW:
MSYS:
CYGWIN:
BORLAND:
WATCOM:

SWIG_FOUND:             1
PERL_FOUND:             TRUE
X11_FOUND:              1

CMAKE_BUILD_TYPE:
CMAKE_C_COMPILER CMAKE_C_FLAGS:                 /usr/bin/gcc -O2
LIB_TAG:                d

ENABLE_DYNDRIVERS:      ON
DRIVERS_LIST: cairo
DEVICES_LIST: extcairo

Library options:
BUILD_SHARED_LIBS:      ON              PL_DOUBLE:      ON

Optional libraries:
HAVE_QHULL:             OFF             WITH_CSA:       ON
HAVE_FREETYPE:          ON              HAVE_PTHREAD:   ON
HAVE_AGG:               OFF

Language Bindings:
ENABLE_f77:             OFF             ENABLE_f95:             OFF
ENABLE_cxx:             OFF             ENABLE_java:            OFF
ENABLE_python:          OFF             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:
ENABLE_ocaml:           OFF

-- Configuring done
-- Generating done
-- Build files have been written to: /home/thomas/src/plplot-5.9.2


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to