BinaryAnalysisPlatform / bap-bindings

C Bindings to BAP
MIT License
15 stars 9 forks source link

ocamlfind: Package `bap' not found #21

Open Oliver-zrz opened 2 years ago

Oliver-zrz commented 2 years ago

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
ivg commented 2 years ago

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)

Oliver-zrz commented 2 years ago

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 !