jaked / froc

Functional reactive programming in OCaml
http://jaked.github.com/froc
Other
66 stars 3 forks source link

compiling froc fails without ocamljs #1

Closed avsm closed 14 years ago

avsm commented 14 years ago

I got this build failure with ocaml-3.11.2 on MacOS X when trying to compile froc without ocamljs (I'm just installing that now too, but thought you might want to know about this).

./configure -disable-ocamljs
Welcome to froc version 0.2
Checking for findlib... found

Effective options:
    -disable-ocamljs
    -bindir /opt/local/bin
    -libdir /opt/local/lib/ocaml

Writing Makefile.conf

Please check Makefile.conf.

You can now compile froc by invoking
   make all
Finally, a
   make install
will install the package(s).
click:froc avsm$ make
mkdir -p stage
for pkg in froc; do \
    make -C src/$pkg all || exit; \
done
ocamlbuild froc.cma froc.cmxa 
Finished, 0 targets (0 cached) in 00:00:00.
+ ocamlfind ocamldep -package camlp4.macro -syntax camlp4o -modules froc_ddg.ml 
    >     froc_ddg.ml.depends
File "froc_ddg.ml", line 217, characters 6-35:
While finding quotation "" in a position of "expr":
  There is no quotation expander available.
  Camlp4: Uncaught exception: Not_found

Preprocessing error on file froc_ddg.ml
Command exited with code 2.
Compilation unsuccessful after building 12 targets (11 cached) in 00:00:00.
make[1]: *** [all] Error 10
make: *** [all] Error 2
jaked commented 14 years ago

Thanks for the bug report. Apparently Camlp4 wants to expand quotations in code that is IFDEF'd out. You can replace the IFDEF OCAMLJS branch with any syntactically valid expression (such as ()) and things should work. I will figure out a workaround.

avsm commented 14 years ago

Works great with ocamljs installed. Unfortunately I then got sidetracked playing the minesweeper example game for ages.

jaked commented 14 years ago

ha. the simplest things are always the best.

jaked commented 14 years ago

I just posted release 0.2a which fixes this problem. Thanks again.