Re: NAB: - problem compiling with graphics...

Henri DF <[email protected]> Mon, 9 Aug 2004 00:32:50 +0200 (CEST)
Newsgroups gmane.network.simulator.epfl
Message-ID <[email protected]>
Ah yes, nab doesn't support (yet) lablgtk2.

not sure about the error below though. i've never had to set/change any 
env vars in standard setups.

does it occur when you try to launch the nabviz-top toplevel? my guess is 
that this is not nab-specific. maybe the ocaml-beginners (yahoo groups) or 
ocaml-list (inria mailing lists) can tell you what is wrong..

henri

> Hi,
>   thanks... pointed me in the right direction - I installed lablgtk2... 
> some small differences in some object definitions(?!)
> installed lablgtk (1.2.7); complies cleanly. Now it can't load 
> dllstr... (see below) I guess I need some env definitions set...
> 
> thanks again for the help,
> 
> cheers,
>    Lionel.
> 
> Fatal error: cannot load shared library dllstr
> Reason: dyld: ocamlrun multiple definitions of symbol _re_partial_match
> /sw/lib/ocaml/stublibs/dllstr.so definition of _re_partial_match
> /sw/lib/ocaml/stublibs/dllstr.so definition of _re_partial_match
> 
> On 8 Aug 2004, at 20:18, Henri DF wrote:
> 
> > Hi Lionel,
> >
> >> Hi Henri,
> >>
> >> I'm trying to take a look at your simulator - which appears to be
> >> excellent...
> >>
> >> I have built and run it for the non graphical mode. However I am 
> >> having
> >> problems with the graphical version.
> >> I have gtk2 installed, lablgtk2, ocami ( Objective Caml version
> >> 3.07+2), this is on OSX/Panther.
> >> I have run all the test progs for the above; but am not a gtk nor 
> >> ocaml
> >> expert at all.
> >> All packages are installed via fink (hence in /sw/)
> >
> >
> > [I don't know much about OSX nor about ocaml on OS X, but..]
> >
> > It sounds like lablgtk is not installed in the default location 
> > (normally
> > it is installed where the ocaml libs are, in a directory called 
> > lablgtk/).
> >
> > Ie on my system I have the caml libs in /usr/local/lib/ocaml, and 
> > lablgtk
> > is in /usr/local/lib/ocaml/lablgtk. This lablgtk dir should contain 
> > many
> > files including gObj.cmi, which is the first one which is searched for
> > below and gives the error.
> >
> > So the simplest thing would be to figure out where lablgtk got 
> > installed,
> > and then modify the Makefile
> > (the line GTK_DIR = $(LIB_DIR)/lablgtk ) to point to that dir. Or you
> > could uninstall lablgtk and then reinstall in the standard location.
> >
> > Hope this helps
> >
> > Henri
> >
> >
> >
> >> for the make nabviz-top command I get:
> >> ...(lots of OK compilation)
> >> /sw/bin//ocamlc.opt  -g  -w A    -I /sw/lib/ocaml/lablgtk  -I lib  -I
> >> lib/contrib  -I gui  -I sim/base  -I sim/interfaces  -I sim/mac  -I
> >> sim/mob  -I sim/pkt  -I proto/grep  -I proto/aodv  -I proto/diff  -I
> >> proto/misc  -I proto/ler -I scripts -I gui/data -c gui/gui_conv.ml
> >> /sw/bin//ocamlc.opt  -g  -w A    -I /sw/lib/ocaml/lablgtk  -I lib  -I
> >> lib/contrib  -I gui  -I sim/base  -I sim/interfaces  -I sim/mac  -I
> >> sim/mob  -I sim/pkt  -I proto/grep  -I proto/aodv  -I proto/diff  -I
> >> proto/misc  -I proto/ler -I scripts -I gui/data -c gui/gui_gtk.mli
> >> File "gui/gui_gtk.mli", line 37, characters 2-13:
> >> Unbound type constructor GObj.widget
> >> make: *** [gui/gui_gtk.cmi] Error 2
> >>
> >> I'm sure its nothing to complicated; any advice welcome
> >> (will be signing on to the email list as soon as I have some sensible
> >> contribs!)
> >>
> >> cheers,
> >>   Lionel Sacks.
> >>
> >>
> 
>