On Mon, Oct 5, 2009 at 5:31 AM, Zorg 421 <zorglub...@gmail.com> wrote:
> Hello plplot developpers,
> Since Sept29 the build system for plcairo has been integrated into cmake.
> Unfortunately, on my godi 3.11 on a mac, with ocaml-cairo from GIT and
> lablgtk2 from svn installed by hands in
> site-lib and std-lib respectively, it's not beeing detected by cmake
> configuration:
>
> ...
> -- OCAMLC = /opt/godi311/bin/ocamlc.opt
> -- CAMLIDL = /opt/godi311/bin/camlidl
> -- OCAMLMKLIB = /opt/godi311/bin/ocamlmklib
> -- OCAMLOPT = /opt/godi311/bin/ocamlopt.opt
> -- OCAMLFIND = /opt/godi311/bin/ocamlfind
> -- OCAML_LIB_PATH = /opt/godi311/lib/ocaml/std-lib
> -- CAMLIDL_LIB_DIR = /opt/godi311/lib/ocaml/std-lib
> -- WARNING:Cairo OCaml library not found.  Disabling Plcairo module
> -- WARNING: lablgtk2 OCaml library not found.
> ...
>
>
> While:
>
> $ ocamlfind query plplot
> /opt/godi311/lib/ocaml/site-lib/plplot
>
> $ ocamlfind query cairo
> /opt/godi311/lib/ocaml/site-lib/cairo
>
> and ls /opt/godi311/lib/ocaml/std-lib/lablgtk2/ gives 273 dir entries.
> I guess lablgtk2 is reachable using "ocamlopt -I +lablgtk2".
>
> Is there some define option to the cmake configure to set those paths
> for bypassing autodetection?

The Plcairo module is very young and still prone to changes in both
its build requirements and API, at least until the next PLplot
release.  Thank you for your testing and reports in the mean time.

As of now, ocamlfind support is required for Cairo-OCaml in order for
the Plcairo module to be built.  ocamlfind support for lablgtk2 is
only required to build the example examples/ocaml/xgtk_interface.ml
which uses the Plcairo module.

That explains why CMake does not find your lablgtk2 installation.  I'm
not sure why the CMake configuration process is not finding your Cairo
OCaml install.  It tests for Cairo OCaml by attempting to compile a
one line program:

module C = Cairo

using this compilation line:

${OCAMLFIND} c -package cairo -linkpkg \
          test_cairo.ml -o test_cairo

If the compilation fails then the Plcairo module is disabled.  A
similar test is made for Gtk, but in this case both the Gtk and
Cairo_lablgtk modules are checked:

module G = Gtk
module C = Cairo_lablgtk

compiled with:

${OCAMLFIND} c -package cairo.lablgtk2 -linkpkg test_gtk.ml -o test_gtk

If that OR the Cairo OCaml check fails then the xgtk_interface.ml
example is not built.

Could you test these and report back the results?  Additionally, could
you send me the complete output from cmake as well as the complete
output from make when you build PLplot as attachments off-list?

Thank you for taking the time to test and report these issues.

Hez

-- 
Hezekiah M. Carty
Graduate Research Assistant
University of Maryland
Department of Atmospheric and Oceanic Science

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to