OCaml Forge
SCM

Forum: help

Discussion Forums: help

Monitor Forum | Start New Thread Start New Thread
RE: Unable to compile on Ubuntu 9.10 [ reply ]
By: Simon Werner on 2010-07-25 14:36
[forum:509]
I finally got around to try compiling again. But I found that the problem was not with xml-light. My problem was with the following statements in build.ml:
let parsing = ocaml_src // "parsing"
let typing = ocaml_src // "typing"
let utils = ocaml_src // "utils"

I had to change them to:
let parsing = ocaml_src // "compiler-libs/parsing"
let typing = ocaml_src // "compiler-libs/typing"
let utils = ocaml_src // "compiler-libs/utils"

This seems to be the place Ubuntu installs these libs.

OCamlEditor now works fine!!! Nice tool!

Unable to compile on Ubuntu 9.10 [ reply ]
By: Simon Werner on 2010-07-21 19:34
[forum:508]
Hello,

I would really like to get this project going, it looks very interesting. But I am having some problems compiling it under Ubuntu 9.10.

I have installed the vanilla version of lablgtk2 v2.12.0-3.

I downloaded and installed xml-light.

My OCaml version is 3.11.1 (not quite the required 3.11.2, but I don't think it really matters here).

I followed the README file instructions to link to the correct source directories. I realise that lablgtk2 in Ubuntu may have renamed some of the filenames (e.g. "xml_parser.mli" instead of "parser.mli"). But it is also not picking up the xml-light files either, since the naming convention is different than expected


COMPILE ERRORS:

~/OCamlEditor-1.4.1/src$ ocaml build.ml
ocamlc -o oebuild -thread -w syumx str.cma unix.cma threads.cma miscellanea.ml dep.ml oebuild.ml
ocamlopt -o oebuild.opt -thread -w syumx str.cmxa unix.cmxa threads.cmxa miscellanea.ml dep.ml oebuild.ml
./oebuild ocamleditor.ml -thread -lflags "-linkall" -cflags "-w syumx" -I "ocaml-src/parsing ocaml-src/typing ocaml-src/utils +lablgtk2 +xml-light" -l "toplevellib unix str threads lablgtk gtkThread.o xml-light"
File "ocaml_word_bound.ml", line 24, characters 54-56:
Warning X: illegal backslash escape in string.
File "ocaml_word_bound.ml", line 24, characters 71-73:
Warning X: illegal backslash escape in string.
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light lex.ml
File "lex.ml", line 1, characters 0-1:
Error: Wrong file naming: /usr/lib/ocaml/xml-light/parser.cmi
contains the compiled interface for
XmlParser
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light delimiters.ml
File "delimiters.ml", line 1, characters 0-1:
Error: Wrong file naming: /usr/lib/ocaml/xml-light/parser.cmi
contains the compiled interface for
XmlParser
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light text.ml
File "text.ml", line 361, characters 10-31:
Error: Unbound value Delimiters.find_match
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light lexical.ml
File "lexical.ml", line 1, characters 0-1:
Error: Wrong file naming: /usr/lib/ocaml/xml-light/parser.cmi
contains the compiled interface for
XmlParser
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light shell.ml
File "shell.ml", line 202, characters 35-46:
Error: Unbound value Lexical.tag
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light completion.ml
File "completion.ml", line 23, characters 0-10:
Error: Unbound module Types
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light ocaml_text.ml
File "ocaml_text.ml", line 1, characters 0-1:
Error: Wrong file naming: /usr/lib/ocaml/xml-light/parser.cmi
contains the compiled interface for
XmlParser
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light incremental_search.ml
File "incremental_search.ml", line 74, characters 23-32:
Error: Unbound type constructor Text.view
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light editor_page.ml
File "editor_page.ml", line 31, characters 13-32:
Error: Unbound class Ocaml_text.view
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light bookmark.ml
File "bookmark.ml", line 26, characters 9-18:
Error: Unbound type constructor Text.view
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light editor.ml
File "editor.ml", line 30, characters 66-75:
Error: Unbound type constructor Text.view
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light bconf_console.ml
File "bconf_console.ml", line 35, characters 31-44:
Error: Unbound type constructor Editor.editor
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light bconf_list.ml
File "bconf_list.ml", line 185, characters 54-72:
Error: Unbound value Bconf_console.exec
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light project_properties.ml
File "project_properties.ml", line 79, characters 19-38:
Error: Unbound class Bconf_list.view
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light preferences_tool.ml
File "preferences_tool.ml", line 94, characters 27-40:
Error: Unbound type constructor Editor.editor
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light find_replace.ml
File "find_replace.ml", line 50, characters 8-47:
Error: Unbound value Incremental_search.set_last_incremental
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light external_tools.ml
File "external_tools.ml", line 64, characters 15-28:
Error: Unbound type constructor Editor.editor
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light dialog_find_file.ml
File "dialog_find_file.ml", line 24, characters 34-47:
Error: Unbound type constructor Editor.editor
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light browser.ml
File "browser.ml", line 35, characters 14-28:
Error: Unbound value Messages.paned
ocamlc.opt -c -w syumx -thread -I ocaml-src/parsing -I ocaml-src/typing -I ocaml-src/utils -I +lablgtk2 -I +xml-light ocamleditor.ml
File "ocamleditor.ml", line 37, characters 2-17:
Error: Unbound value Browser.browser