I try to build haxe binary for debugging purposes and use it in vscode with OCaml Platform - Visual Studio Marketplace plugin and earlybird.
How was set up haxe binary build:
- in root dune-project file changed (lang dune) from 3.0 to 3.7 and added (map_workspace_root false)
- in src/dune file uncomment (modes byte) option
- in root directory run make all to run default haxe binary build
- after run dune build --profile release src/haxe.bc
- create launch.json configuration for debugging ocaml, json option program was set to “${cwd}/_build/default/src/haxe.bc”
After launch debug mode i got an error:
Fatal error: cannot load shared library dllextc_stubs
Reason: dllextc_stubs.so: cannot open shared object file: No such file or directory
At that time default haxe build after make install works without problems.
Maybe someone know how to fix this error or some sort of instruction for proper debug build of haxe binary?
os: ubuntu 22.10
ocaml version: 5.2.1 (installed through opam)
dune version: 3.19.1
earlybird version: 1.3.3
haxe repo cloned from development branch