On Thu, Nov 27, 2008 at 09:36:46PM +0000, Andrew Ross wrote:
> 
> Alan,
> 
> I've also built and tested all the examples in the install tree. The
> only issue I found is that the ocaml examples don't run. test_ocaml.sh
> assumes the examples are x??ocaml, as in the build tree, but the
> Makefile generates x?? executables. I'll try and fix this up tomorrow,
> unless anyone beats me to it.

I've fixed examples/ocaml/Makefile.examples.in to correctly generate
x??ocaml executables. This uncovered some other problems though. Firstly
Makefile.examples does not use rpath and so the install tree examples
are not guaranteed to be linked against the correct library versions.
I've fixed this. I also noticed that it doesn't use pkg-config to get
the cflag and libs for the build. After playing around with this I've
been unable to get it to work correctly. The problem is that some of the
ocamlc options (e.g. -I <dir>, -ccopt <opt) require spaces in them.
If you don't quote the flags in plplotd-ocaml.pc then the two are 
treated as separate options and pkg-config rearranges the order. If you 
do quote them then the two are kept together but pkg-config removes the 
space, which ocamlc doesn't allow. I don't know how to work around this. 
Perhaps there is a way. For now the compile and link options are still 
set manually in Makefile.examples. 

I have not committed any changes to generate plplotd-ocaml. The current
version does not work sensibly. Be warned! This may need a pkg-config
guru to work out a fix.

Anyway, with these changes I can now install, build and test the ocaml
examples in the install tree.

Andrew

-------------------------------------------------------------------------
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