On Sat, Mar 6, 2010 at 2:27 AM, Alan W. Irwin <ir...@beluga.phys.uvic.ca> wrote:
>
> I have been working with xgtk_interfaceocaml in preparation for making
> this application one of the interactive tests that we run.
>
> It builds automatically and without any errors for me when BUILD_TEST=ON in
> the build tree.  That good result continued after some CMake code cleanup
> (revision 10855). However, I had to propagate (revision 10856) some
> additional variables to the build-system for the installed examples in order
> to get the same good build result there for this special ocaml example.
>
> How should this example be run?
>
> I have attached the results of
>
> ./xgtk_interfaceocaml >& xgtk_interfaceocaml.out
>
> which show lots of errors, but that might not be the right way to run that
> application.  That's the build-tree result, and I also get similar run-time
> errors (starting with the same invalid (NULL) pointer instance) in the
> installed examples case as well.
>
> In case I am running it correctly, and therefore there is some run-time
> issue for my platform, here is some additional data.
>
...cut (this all look fine)...
>
> I hope you can help me either to (a) run the example correctly or
> (b) figure out the run-time errors if I am running it correctly.
>


The configuration pieces all look correct.  Using the latest
Subversion trunk (10856) the example runs without issue on my system
in the build tree using:

./xgtk_interfaceocaml

I am running Ubuntu 9.10, with relevant libraries similar to yours.

Looking through the error messages, this looks like something that
stems from the application being run across a network X connection.
My understanding is that something in the pipeline is rejecting the
connection, which leads to the "Gtk-WARNING **: Screen for GtkWindow
not set" error.  This cascades through the rest of the Gtk+ calls not
having a screen or window to write to.

I have had similar problems in the past with forwarded X applications.
 If I recall correctly, the non-security-conscious approach is along
the lines of:

xhost +localhost

That said, I don't remember if this is supposed to be run on the
client or server :-)  I think localhost should be replaced by the
opposite system (server -> client or client -> server).

I hope this helps.  Do any of the other Gtk-using examples show
similar problems?

Hez

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to