From: Philippe Strauss <philou@philou.ch>
To: caml-list@inria.fr
Subject: [Caml-list] a very tiny tiny bit of community with good intention
Date: Sat, 10 Dec 2011 20:48:19 +0100 [thread overview]
Message-ID: <15B941DF-E261-40A9-96CE-241B398C1FA2@philou.ch> (raw)
and some spare time,
guys, I would like to build and improve the ocamlbrowser example in the lablgtk2 applications directory. On my setup (OSX 10.6), the TK one doesn't work, and I fear even on a working setup, it may discourage a lot of newcomers to the language.
the problem is, it's the first project I encouter linking against patch.cm? in the compiler lib. which tend to reference all the .cm? under compiler-lib.
and It's not documented, or referenced on google.
so, how do I link against anything under compiler-lib ?
my current and ugly steps:
ocamlmklib -I /opt/godi312/lib/ocaml/compiler-lib -o libcompiler path.cmx parse.cmx env.cmx typeclass.cmx typetexp.cmx lexer.cmx typedecl.cmx typemod.cmx btype.cmx config.cmx syntaxerr.cmx ident.cmx printtyp.cmx misc.cmx ctype.cmx
-
and an OMakefile :
-
USE_OCAMLFIND = true
BYTE_ENABLED = false
NATIVE_ENABLED = true
OCAMLINCLUDES += /opt/godi312/lib/ocaml/compiler-lib
OCAML_LIBS[] += ./libcompiler
#OCAML_OTHER_LIBS += str unix unixLabels
OCAML_OTHER_LIBS += str unix
# unixlabels : cmx only
OCAMLPACKS = lablgtk2
OCAMLFLAGS = -g
OCamlProgram(browser, editor file jg_memo jg_message jg_message lexical list2 searchid searchpos shell useunix widgets)
.DEFAULT: browser.nat
.PHONY: clean
clean:
rm -f *.o *.a
rm -f *.cm[aiox]
rm -f *.cmx[as]
rm -rf *.dSYM/
rm -f *.nat *.native *.opt *.byte *.run
rm -f *.omc
-
Thank you
Philippe
next reply other threads:[~2011-12-10 19:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-10 19:48 Philippe Strauss [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-12-10 19:48 Philippe Strauss
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15B941DF-E261-40A9-96CE-241B398C1FA2@philou.ch \
--to=philou@philou.ch \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox