caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamlbuild documentation
@ 2009-10-20 20:46 Sam Steingold
  2009-10-21  8:47 ` [Caml-list] " Romain Bardou
  0 siblings, 1 reply; 9+ messages in thread
From: Sam Steingold @ 2009-10-20 20:46 UTC (permalink / raw)
  To: caml-list

Hi,

What documentation for ocamlbuild is available in in addition to
http://brion.inria.fr/gallium/index.php/Ocamlbuild &
http://nicolaspouillard.fr/ocamlbuild/ocamlbuild-user-guide.html?

Thanks
Sam


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Caml-list] ocamlbuild documentation
  2009-10-20 20:46 ocamlbuild documentation Sam Steingold
@ 2009-10-21  8:47 ` Romain Bardou
  2009-10-21 13:36   ` Erick Matsen
  0 siblings, 1 reply; 9+ messages in thread
From: Romain Bardou @ 2009-10-21  8:47 UTC (permalink / raw)
  To: Sam Steingold; +Cc: caml-list

Sam Steingold a écrit :
> Hi,
> 
> What documentation for ocamlbuild is available in in addition to
> http://brion.inria.fr/gallium/index.php/Ocamlbuild &
> http://nicolaspouillard.fr/ocamlbuild/ocamlbuild-user-guide.html?

Hello,

As far as I know there is none.

-- 
Romain Bardou


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Caml-list] ocamlbuild documentation
  2009-10-21  8:47 ` [Caml-list] " Romain Bardou
@ 2009-10-21 13:36   ` Erick Matsen
  2009-10-21 14:00     ` Ashish Agarwal
                       ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Erick Matsen @ 2009-10-21 13:36 UTC (permalink / raw)
  To: Romain Bardou; +Cc: Sam Steingold, caml-list

Hi--


This is such a common theme on this list, I wonder if it would be
worth setting up a repository of well-commented Ocamlbuild examples.
That would go a long way towards helping beginners (like myself) out.

Would people be interested in contributing such examples? Any ideas
about where to host them?


Thanks,

Erick

On Wed, Oct 21, 2009 at 1:47 AM, Romain Bardou <Romain.Bardou@lri.fr> wrote:
> Sam Steingold a écrit :
>> Hi,
>>
>> What documentation for ocamlbuild is available in in addition to
>> http://brion.inria.fr/gallium/index.php/Ocamlbuild &
>> http://nicolaspouillard.fr/ocamlbuild/ocamlbuild-user-guide.html?
>
> Hello,
>
> As far as I know there is none.
>
> --
> Romain Bardou
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Caml-list] ocamlbuild documentation
  2009-10-21 13:36   ` Erick Matsen
@ 2009-10-21 14:00     ` Ashish Agarwal
  2009-10-21 14:01     ` Rakotomandimby Mihamina
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: Ashish Agarwal @ 2009-10-21 14:00 UTC (permalink / raw)
  To: Erick Matsen; +Cc: Romain Bardou, Sam Steingold, caml-list

[-- Attachment #1: Type: text/plain, Size: 1781 bytes --]

> Any ideas about where to host them?

Why not at the first link given? It is a wiki.
http://brion.inria.fr/gallium/index.php/Ocamlbuild

Personally I think what's most needed is a description of the concepts,
although examples of course would help too.


On Wed, Oct 21, 2009 at 9:36 AM, Erick Matsen <ematsen@gmail.com> wrote:

> Hi--
>
>
> This is such a common theme on this list, I wonder if it would be
> worth setting up a repository of well-commented Ocamlbuild examples.
> That would go a long way towards helping beginners (like myself) out.
>
> Would people be interested in contributing such examples? Any ideas
> about where to host them?
>
>
> Thanks,
>
> Erick
>
> On Wed, Oct 21, 2009 at 1:47 AM, Romain Bardou <Romain.Bardou@lri.fr>
> wrote:
> > Sam Steingold a écrit :
> >> Hi,
> >>
> >> What documentation for ocamlbuild is available in in addition to
> >> http://brion.inria.fr/gallium/index.php/Ocamlbuild &
> >> http://nicolaspouillard.fr/ocamlbuild/ocamlbuild-user-guide.html?
> >
> > Hello,
> >
> > As far as I know there is none.
> >
> > --
> > Romain Bardou
> >
> > _______________________________________________
> > Caml-list mailing list. Subscription management:
> > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> > Archives: http://caml.inria.fr
> > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> > Bug reports: http://caml.inria.fr/bin/caml-bugs
> >
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>

[-- Attachment #2: Type: text/html, Size: 3175 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Caml-list] ocamlbuild documentation
  2009-10-21 13:36   ` Erick Matsen
  2009-10-21 14:00     ` Ashish Agarwal
@ 2009-10-21 14:01     ` Rakotomandimby Mihamina
  2009-10-21 14:02     ` Gabriel Kerneis
  2009-10-21 14:24     ` Sylvain Le Gall
  3 siblings, 0 replies; 9+ messages in thread
From: Rakotomandimby Mihamina @ 2009-10-21 14:01 UTC (permalink / raw)
  To: caml-list

10/21/2009 04:36 PM, Erick Matsen:
> This is such a common theme on this list, I wonder if it would be
> worth setting up a repository of well-commented Ocamlbuild examples.
> That would go a long way towards helping beginners (like myself) out.

somthing a bit like that: http://pleac.sourceforge.net/pleac_ocaml/ ?

> Would people be interested in contributing such examples? Any ideas
> about where to host them?

ocamlforge?
sourceforge? google code? freshmeat?

-- 
       Architecte Informatique chez Blueline/Gulfsat:
    Administration Systeme, Recherche & Developpement
                                    +261 33 11 207 36


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Caml-list] ocamlbuild documentation
  2009-10-21 13:36   ` Erick Matsen
  2009-10-21 14:00     ` Ashish Agarwal
  2009-10-21 14:01     ` Rakotomandimby Mihamina
@ 2009-10-21 14:02     ` Gabriel Kerneis
  2009-10-21 14:25       ` Rakotomandimby Mihamina
  2009-10-21 14:24     ` Sylvain Le Gall
  3 siblings, 1 reply; 9+ messages in thread
From: Gabriel Kerneis @ 2009-10-21 14:02 UTC (permalink / raw)
  To: caml-list

On Wed, Oct 21, 2009 at 06:36:52AM -0700, Erick Matsen wrote:
> This is such a common theme on this list, I wonder if it would be
> worth setting up a repository of well-commented Ocamlbuild examples.
> That would go a long way towards helping beginners (like myself) out.

Since ocamlbuild is (unofficially) unmaintained, I wonder if this is
such a good idea.  You might prefer to swich to a more perennial system
(like make).

Regards,
-- 
Gabriel, only half-kidding


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ocamlbuild documentation
  2009-10-21 13:36   ` Erick Matsen
                       ` (2 preceding siblings ...)
  2009-10-21 14:02     ` Gabriel Kerneis
@ 2009-10-21 14:24     ` Sylvain Le Gall
  3 siblings, 0 replies; 9+ messages in thread
From: Sylvain Le Gall @ 2009-10-21 14:24 UTC (permalink / raw)
  To: caml-list

On 21-10-2009, Erick Matsen <ematsen@gmail.com> wrote:
> Hi--
>
>
> This is such a common theme on this list, I wonder if it would be
> worth setting up a repository of well-commented Ocamlbuild examples.
> That would go a long way towards helping beginners (like myself) out.
>
> Would people be interested in contributing such examples? Any ideas
> about where to host them?
>

OCaml Forge is probably the best place to host this kind of project:
http://forge.ocamlcore.org

Probably a lot of potential contributors are already subscribed and you
will get a good visibility among other OCaml projects.

Regards
Sylvain Le Gall

>
> Thanks,
>
> Erick
>
> On Wed, Oct 21, 2009 at 1:47 AM, Romain Bardou <Romain.Bardou@lri.fr> wrote:
>> Sam Steingold a écrit :
>>> Hi,
>>>
>>> What documentation for ocamlbuild is available in in addition to
>>> http://brion.inria.fr/gallium/index.php/Ocamlbuild &
>>> http://nicolaspouillard.fr/ocamlbuild/ocamlbuild-user-guide.html?
>>
>> Hello,
>>
>> As far as I know there is none.
>>
>> --
>> Romain Bardou
>>
>> _______________________________________________
>> Caml-list mailing list. Subscription management:
>> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
>> Archives: http://caml.inria.fr
>> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>> Bug reports: http://caml.inria.fr/bin/caml-bugs
>>
>

Regards,
Sylvain Le Gall


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Caml-list] ocamlbuild documentation
  2009-10-21 14:02     ` Gabriel Kerneis
@ 2009-10-21 14:25       ` Rakotomandimby Mihamina
  0 siblings, 0 replies; 9+ messages in thread
From: Rakotomandimby Mihamina @ 2009-10-21 14:25 UTC (permalink / raw)
  To: caml-list

10/21/2009 05:02 PM, Gabriel Kerneis:
>> worth setting up a repository of well-commented Ocamlbuild examples.
> You might prefer to swich to a more perennial system

Not wrong...

-- 
       Architecte Informatique chez Blueline/Gulfsat:
    Administration Systeme, Recherche & Developpement
                                    +261 33 11 207 36


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ocamlbuild documentation
  2009-02-09 21:24       ` DooMeeR
@ 2009-02-10 14:06         ` Jan Kybic
  0 siblings, 0 replies; 9+ messages in thread
From: Jan Kybic @ 2009-02-10 14:06 UTC (permalink / raw)
  To: caml-list

>> Instead, I found that ocamlbuild replaces my current build option of choice:
>>   ocamlopt foo.ml -I +lablGL lablgl.cmxa lablglut.cmxa foo.ml -o foo
>> with lots of incidental complexity:

I agree with the previous posters that ocamlbuild is a great project
but the documentation is not yet sufficient for a beginner. Let me
recall my recent experience:

Yesterday, out of curiosity, I have tried to use Ocaml for my current
project. It is not complicated, just a few Ocaml source files with a
few libraries. In Ocamlmake, I only had to list the SOURCES and set

PACKS = lacaml unix extlib str gsl

In ocamlbuild, I spent a long time finding out how to tell Ocaml to
use the required libraries.  I took the ocamlfind plugin from
the Ocamlbuild wiki
(http://brion.inria.fr/gallium/index.php/Using_ocamlfind_with_ocamlbuild)
and created the following _tags file:

<*.ml> or <*.mli>: pkg_extlib, pkg_gsl, pkg_str, pkg_unix
<dList.ml>: ocaml, pp(ocaml+twt), debug
<utils.ml>: ocaml, pp(camlp4o), debug

Now, all files compiled correctly. However, the linking failed with
message "No implementations provided for the following modules". I could
eliminate some of the messages by invoking ocamlbuild as

  ocamlbuild -libs str,unix,bigarray,gsl matvflss.native

but this did not help with gsl and extlib libraries.  Finally, after
many frustrating attempts I could link everything using:

ocamlbuild -lflags -I,/usr/lib/ocaml/site-packages/gsl -lflags -I,/usr/lib/ocaml/site-packages/extlib -libs str,unix,bigarray,gsl,extLib   matvflss.native

So finally yes, ocamlbuild works. But for a beginner, it is currently more
complicated to use than Ocamlmake. Instead of a few lines in a
Makefile, you need to write myocamlbuild.ml, _tags, and a script
automating the command line.  I found the command line more or less by
trial and error and by looking at the examples. It is admittedly my
fault since there is one relevant sentence in the manual ("You may
need to add options such as...") but it is easy to miss.

Why do I have to manually set all the paths and library names
if I have already said "pkg_..." in _tags? Why does not ocamlbuild
uses ocamlfind to find out automatically? I thought the plugin was
supposed to do exactly this.

By the way, how am I supposed to use the caml-types-show-type feature
in Emacs Tuareg mode, if ocamlbuild forces all the annot files into
the _build subdirectory?


I am sure Ocamlbuild will mature with time and become a very useful
tool. Keep up the good work.

Jan


-- 
-------------------------------------------------------------------------
Jan Kybic <kybic@fel.cvut.cz>                       tel. +420 2 2435 5721
http://cmp.felk.cvut.cz/~kybic                      ICQ 200569450


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-10-21 14:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-20 20:46 ocamlbuild documentation Sam Steingold
2009-10-21  8:47 ` [Caml-list] " Romain Bardou
2009-10-21 13:36   ` Erick Matsen
2009-10-21 14:00     ` Ashish Agarwal
2009-10-21 14:01     ` Rakotomandimby Mihamina
2009-10-21 14:02     ` Gabriel Kerneis
2009-10-21 14:25       ` Rakotomandimby Mihamina
2009-10-21 14:24     ` Sylvain Le Gall
  -- strict thread matches above, loose matches on Subject: below --
2009-02-06 16:11 [ANN] OCaml Batteries Included, alpha 3 David Rajchenbach-Teller
2009-02-09 13:36 ` ocamlbuild documentation (was Re: [Caml-list] Re: [ANN] OCaml Batteries Included, alpha 3) Daniel Bünzli
2009-02-09 13:59   ` Romain Bardou
2009-02-09 18:28     ` Jon Harrop
2009-02-09 21:24       ` DooMeeR
2009-02-10 14:06         ` ocamlbuild documentation Jan Kybic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).