bap-bindings icon indicating copy to clipboard operation
bap-bindings copied to clipboard

ocamlfind: Package `bap' not found

Open Oliver-zrz opened this issue 4 years ago • 2 comments

I have this error when installing, can someone help me ?

$ make -j
/usr/bin/ocamlfind opt -c -o _build/bap/lib/bindings.cmx -I _build/bap/generated -I _build/bap/lib -package bap,bap-plugins,ctypes.stubs,ctypes.foreign,findlib.dynload,bap-main bap/lib/bindings.ml
/usr/bin/ocamlfind opt -c -o _build/bap/stub_generator/generate.cmx -I _build/bap/generated -I _build/bap/lib -package bap,bap-plugins,ctypes.stubs,ctypes.foreign,findlib.dynload,bap-main bap/stub_generator/generate.ml
/usr/bin/ocamlfind opt -c -o _build/bap/lib/apply_bindings.cmx -I _build/bap/generated -I _build/bap/lib -package bap,bap-plugins,ctypes.stubs,ctypes.foreign,findlib.dynload,bap-main bap/lib/apply_bindings.ml
ocamlfind: Package `bap' not found
Makefile:75: recipe for target '_build/bap/lib/bindings.cmx' failed
make: *** [_build/bap/lib/bindings.cmx] Error 2
make: *** Waiting for unfinished jobs....
ocamlfind: Package `bap' not found
Makefile:75: recipe for target '_build/bap/lib/apply_bindings.cmx' failed
make: *** [_build/bap/lib/apply_bindings.cmx] Error 2
ocamlfind: Package `bap' not found
Makefile:75: recipe for target '_build/bap/stub_generator/generate.cmx' failed
make: *** [_build/bap/stub_generator/generate.cmx] Error 2

Oliver-zrz avatar Oct 29 '21 08:10 Oliver-zrz

You need to install bap and other dependencies, e.g.,

opam install bap ctypes ctypes-foreign --yes

Also, these bindings are built every week, so unless you need some specific operating system (i.e., the pre-built binaries do not work for you) you can just grab them from the release page. Look for the libbap and libbap-dev packages.

P.S. and do not forget to activate the opam switch, with eval $(opam env)

ivg avatar Oct 29 '21 13:10 ivg

You need to install bap and other dependencies, e.g.,

opam install bap ctypes ctypes-foreign --yes

Also, these bindings are built every week, so unless you need some specific operating system (i.e., the pre-built binaries do not work for you) you can just grab them from the release page. Look for the libbap and libbap-dev packages.

P.S. and do not forget to activate the opam switch, with eval $(opam env)

Thank you very much. I'll give it a try !

Oliver-zrz avatar Oct 30 '21 07:10 Oliver-zrz