OCaml Forge

Detail: [#537] Bad interaction between camlp4 and ocaml-xgettext

Bugs: Browse | Download .csv | Monitor

[#537] Bad interaction between camlp4 and ocaml-xgettext

Date:
2010-03-06 16:31
Priority:
3
State:
Open
Submitted by:
Sylvain Le Gall (gildor-admin)
Assigned to:
Sylvain Le Gall (gildor-admin)
Resolution:
None
Severity:
None
Version:
None
Component:
None
Operating System:
None
 
Summary:
Bad interaction between camlp4 and ocaml-xgettext

Detailed description
It seems quite hard to mix ocaml-xgettext and camlp4.

E.g:
ocaml-xgettext -I +camlp4 /usr/lib/ocaml/type-conv/pa_type_conv.cmo /home/gildor/programmation/00build/x86_64-unknown-linux-gnu/lib/ocaml/3.11.2/odn/pa_odn.cma ../src/oasis/OASISTypes.ml
Camlp4: Uncaught exception: Not_found

but

ocaml-xgettext pa_o.cmo -I /usr/lib/ocaml/type-conv pa_type_conv.cmo /home/gildor/programmation/00build/x86_64-unknown-linux-gnu/lib/ocaml/3.11.2/odn/pa_odn.cma ../src/oasis/OASISTypes.ml

A good idea to simplify this, is to integrate findlib and:
ocaml-xgettext -syntax camlp4o -package pa_odn.with.syntax

Another idea is to be able to create .ppo (partial po), during the build and merge them:
ocamlfind ocamlc -syntax camlp4o toto.ml -> toto.mo
ocamlfind ocaml-xgettext -syntax camlp4o toto.ml -> toto.pop

This will allow incremental extraction and will work nicely with ocamlbuild.

Followup

No Followups Have Been Posted

Attached Files:

Changes:

Field Old Value Date By
assigned_tonone2010-09-09 16:54gildor-admin