Delivered-To: lablgtk at yquem.inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=wRu2OVO8Y8VJfm22rSP+FE+DrBEfPppqo2oxCOgu1yE=; b=iV8kKwHsQykMxVGV5W8I1JFDieqmy+XnUG9L41qQ1gj3HGTPfeqvmRLS2SPBrjYzAywNu8DeZqYFNQJGb7F43vtPAybQQwEhNCkfK/gR5KkJLhqjWVMB4Otd5j2ifr54+vMd7RbrQICwXZWWZdDb/wmJ7yFQCBLqy58l9MHH3So= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=NbxhqRsmjNTr6XA4DkRdMwhkcYZEvKOFA2Va/em+4bbfR1XvkGcAqmURwcDFqhink9cvdQOZ67pOgltlBX4K9ngMiwM4IlXvr6B/PjSmvE4Q/DIgDvGBaDb/5wkLFRpFVIG5EmlbfSyK1KEzwvU1T3IU4JV04DoixVXi4S/ELEU= Message-ID: Date: Tue, 19 Feb 2008 11:10:53 -0600 From: "Angela Zhu" To: "Yoann Padioleau" Subject: Re: [Lablgtk] Problem using GSourceView In-Reply-To: <87odac6h2y.fsf at wanadoo.fr> MIME-Version: 1.0 References: <87skzp5535.fsf@wanadoo.fr> <87odac6h2y.fsf@wanadoo.fr> Cc: lablgtk at yquem.inria.fr Mime-version: 1.0 Content-Type: multipart/mixed; boundary="===============0645686999==" Content-Length: 7875 --===============0645686999== Content-Type: multipart/alternative; boundary="----=_Part_27703_13994531.1203441053478" ------=_Part_27703_13994531.1203441053478 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I used MacPorts to install lablgtk2, so "gSourceView.mli" is in /opt/local/var/macports/software/lablgtk2/2.10.0_0/opt/local/lib/ocaml/lablgtk2 I didn't find the other two files ("lablgtksourceview.cma" and " gSourceView.cmi"). Regards, Angela On Feb 19, 2008 10:34 AM, Yoann Padioleau wrote: > "Angela Zhu" writes: > > > On Feb 19, 2008 9:38 AM, Yoann Padioleau wrote: > > > > "Angela Zhu" writes: > > > > > Hello, > > > > > > I have lablgtk 2.10.0 installed on my machine. And I want to > > > use GSourceView.source_view in my OCaml program. > > > > > > At the beginning of my file, when I have: > > > open Glib > > > open GtkEdit > > > The file compiles just fine. > > > > > > But when I add > > > open GSourceView, I got "Unbound module GSourceView". > > > > > > Does anyone have some idea what can be wrong here? > > > > I have those flags in my Makefile to compile code using GSourceView: > > SYSINCLUDES= -I +lablgtk2 -I +lablgtksourceview > > SYSLIBS=str.cma unix.cma dbm.cma threads.cma lablgtk.cma > > lablgtksourceview.cma > > > > > > Thanks! > > > > But even after I added these flags, I still got > > "Unbound module GSourceView" during compiling. > > > > Is there anything else I need to do? > > What is your full command line to compile the file that generates > the error ? Something like the following > ocamlc -c -I +lablgtk2 -I +lablgtksourceview foo.ml > ocamlc -o foo foo.cmo -I +lablgtk2 -I +lablgtksourceview lablgtk.cma > lablgtksourceview.cma > ? > > > Where is your lablgtk installed ? > Do you have a file lablgtksourceview.cma > and gSourceView.mli, and gSourceView.cmi in your ocaml libraries > (/usr/local/lib/ocaml/... or something similar). > > > > > -- > > Regards, > > Angela Zhu > > ------------------------------------------ > > Dept. of CS, Rice University > > http://www.cs.rice.edu/~yz2/ > > ------------------------------------------ > > > > > > > > > > Even if gtksourceview is now part of lablgtk2, it looks like they > > are compiled in different library files (.cma). > > > > > > > > > > > > > Many thanks in advance! > > > -- > > > Regards, > > > Angela Zhu > > > ------------------------------------------ > > > Dept. of CS, Rice University > > > http://www.cs.rice.edu/~yz2/ > > > ------------------------------------------ > > > _______________________________________________ > > > Lablgtk mailing list > > > Lablgtk@yquem.inria.fr > > > http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk > ------=_Part_27703_13994531.1203441053478 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I used MacPorts to install lablgtk2, so "gSourceView.mli" is in
/opt/local/var/macports/software/lablgtk2/2.10.0_0/opt/local/lib/ocaml/lablgtk2

I didn't find the other two files ("lablgtksourceview.cma" and "gSourceView.cmi").

Regards,
Angela

On Feb 19, 2008 10:34 AM, Yoann Padioleau <padator@wanadoo.fr> wrote:
"Angela Zhu" <angela22.zhu@gmail.com> writes:

> On Feb 19, 2008 9:38 AM, Yoann Padioleau <padator@wanadoo.fr> wrote:
>
>     "Angela Zhu" <angela22.zhu@gmail.com> writes:
>
>     > Hello,
>     >
>     > I have lablgtk 2.10.0 installed on my machine. And I want to
>     > use GSourceView.source_view in my OCaml program.
>     >
>     > At the beginning of my file, when I have:
>     >    open Glib
>     >    open GtkEdit
>     > The file compiles just fine.
>     >
>     > But when I add
>     >    open GSourceView, I got "Unbound module GSourceView".
>     >
>     > Does anyone have some idea what can be wrong here?
>
>     I have those flags in my Makefile to compile code using GSourceView:
>     SYSINCLUDES= -I +lablgtk2 -I +lablgtksourceview
>     SYSLIBS=str.cma unix.cma dbm.cma threads.cma  lablgtk.cma
>     lablgtksourceview.cma
>
>
> Thanks!
>
> But even after I added these flags, I still got
> "Unbound module GSourceView" during compiling.
>
> Is there anything else I need to do?

What is your full command line to compile the file that generates
the error ? Something like the following
 ocamlc -c -I +lablgtk2 -I +lablgtksourceview  foo.ml
 ocamlc -o foo foo.cmo -I +lablgtk2 -I +lablgtksourceview  lablgtk.cma lablgtksourceview.cma
?


Where is your lablgtk installed ?
Do you have a file lablgtksourceview.cma
and gSourceView.mli, and gSourceView.cmi in your ocaml libraries
(/usr/local/lib/ocaml/... or something similar).



> --
> Regards,
> Angela Zhu
> ------------------------------------------
> Dept. of CS, Rice University
> http://www.cs.rice.edu/~yz2/
> ------------------------------------------
>
>
>
>
>     Even if gtksourceview is now part of lablgtk2, it looks like they
>     are compiled in different library files (.cma).
>
>
>     >
>     >
>     > Many thanks in advance!
>     > --
>     > Regards,
>     > Angela Zhu
>     > ------------------------------------------
>     > Dept. of CS, Rice University
>     > http://www.cs.rice.edu/~yz2/
>     > ------------------------------------------
>     > _______________________________________________
>     > Lablgtk mailing list
>     > Lablgtk@yquem.inria.fr
>     > http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk



------=_Part_27703_13994531.1203441053478-- --===============0645686999== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk --===============0645686999==--