jextract and Botan

Jorn Vernee jbvernee at xs4all.nl
Sun Apr 21 19:59:09 UTC 2019


Hi Giorgio,

Please note that jextract does not really support C++ yet. If you want 
to create bindings for Botan you will have to use the C API for now, 
which is also what's used for bindings of other languages it seems [1]

Eye-balling the command you'd need to use, try:

    jextract /usr/local/include/botan-2/botan/ffi.h -L /usr/local/lib/ -I 
/usr/local/include/botan-2/ -l botan-2 -t Botan --record-library-path -o 
botan2.jar

A jextract of just the header file works for me, but I can not get the 
build working on my machine, so I can't test the exact command.

Hope this helps,
Jorn

[1] : 
https://github.com/randombit/botan/blob/e21bddd79357f2ad8576fd871d387b722192b847/src/lib/ffi/ffi.h


More information about the panama-dev mailing list