Re: NAB: - problem compiling with graphics...
Henri DF <[email protected]> Sun, 8 Aug 2004 21:18:08 +0200 (CEST)
| Newsgroups | gmane.network.simulator.epfl |
|---|---|
| Message-ID | <[email protected]> |
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. > >