Minor issue in automatic enabling of JNI build #379

issue afk11 openend this issue on March 2, 2016
  1. afk11 commented at 1:06 pm on March 2, 2016: contributor

    I came across this last night and it took a little tracking down. Since introducing #364, the build system will automatically determine whether JNI can be built. If the environment supports it, the java library is built, but without checking if the necessary modules are also being compiled.

    My situation was: only build the library with the pubkey recovery module and install it, compile my bindings for another language.. I ran into a configure error that no usable version of libsecp256k1 could be found. I could coax things to compile all the same (run configure first against bd2895fd - the commit before JNI) but using my bindings resulted in an error that secp256k1_schnorr wasn’t found.

    My bindings didn’t have this dependency previously, nor did the default install presume that all modules were to be compiled, so something about JNI building/requiring everything seemed to lead to this.

    To fix this, I had to disable JNI, or enable every module to satisfy the JNI libraries dependencies.

  2. dtebbs referenced this in commit f8e798a932 on Apr 16, 2016
  3. real-or-random cross-referenced this on Jan 7, 2020 from issue Remove Java Native Interface by jonasnick
  4. real-or-random closed this on Feb 10, 2020


afk11


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-10-30 01:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me