Date: Mon, 31 Oct 2005 08:33:59 +0900 (JST) Message-Id: <20051031.083359.74696416.garrigue at math.nagoya-u.ac.jp> To: ermine at ermine.pp.ru Cc: lablgtk at math.nagoya-u.ac.jp Subject: Re: LablGtk 2.6.0 and LablGL 1.02 From: Jacques Garrigue In-Reply-To: <20051029134538.GA42470 at ermine.home> References: <20051028.121831.35663388.garrigue at math.nagoya-u.ac.jp> <20051029134538.GA42470@ermine.home> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Anastasia Gornostaeva > To bould lablgtk2 (any version) with gspell under freebsd i need to modify > make.config: > > GTKSPELL_LIBS = -Wl,--rpath -Wl,/usr/local/lib -L/usr/X11R6/lib -lgtkspell > -L/usr/local/lib -laspell > > (libaspell is installed into /usr/local/lib). Classic problem with freebsd: most libraries are installed in /usr/local/lib, which is not in gcc's libpath. > And, I built lablGL with freeglut library instead of Mesa, does it make > sense? It seems it works perfectly. I would expect no problem. LablGlut is not tied to any implementation. > I have a simple question: when i should prefer GtkThread.main () instead of > GMain.Main.main (), if I use threads? Always or in some cases? As explained in gtkThread.mli: (** The main loop to use with threads. [GMain.main] does not work! This changes [GMain.main] to call [threaded_main] rather than [GtkMain.Main.default_main], so subsequent calls will work. The first call sets the GUI thread, and subsequent calls to [main] will be automatically routed through [sync] *) val main : unit -> unit That is, you only need to call it once, to start your program, and then inner calls will do the right thing. Jacques