On 2008-07-17 18:52-0400 Hezekiah M. Carty wrote:

> On Thu, Jul 17, 2008 at 2:48 PM, Orion Poplawski <[EMAIL PROTECTED]> wrote:
>> Trying to build ocaml bindings I get:
>>
>> [ 98%]
>> Built target xthick30a
>> make -f examples/ocaml/CMakeFiles/x11ocaml.dir/build.make
> -- make output --
>> make[2]: *** No rule to make target `examples/ocaml/x11ocaml', needed by
>> `examples/ocaml/CMakeFiles/x11ocaml'.  Stop.
>
> I have the same problem on an Ubuntu 8.04 system but unfortunately do
> not know cmake well enough to fix it.

CMake target names must be distinct from the name of what the target
produces (the executable in this case).  I fixed this issue with revision
8524, and the build works now.

I also made further changes (revision 8526) to allow ctest of ocaml to work.

If in the build tree you now execute

export LD_LIBRARY_PATH=`pwd`/src

(so that libplplotd could be found), then

ctest --verbose -R ocaml

works.

You must hit carriage return to get the ocaml examples to work because they
appear to be stuck in interactive mode.

Orion, the interactivity of this ctest might disrupt your packaging efforts,
but I assume that could be straightforwardly solved by either using the
default disabling of ocaml (which is done because these bindings and
examples are still far from mature) or by finding a ctest -R option that
excludes the ocaml test.

For now, I would like to have the ocaml ctest available so that developers
can easily play with it if they use the combination of cmake options

-DENABLE_ocaml=ON -DBUILD_TEST=ON

Hez, how far are you from getting command-line parsing to work for ocaml?
That would be a huge step forward.

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 Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to