Matthew Toseland <toad at ...> writes: > > Cool. What code changes? >
I added a couple case statements to NativeBigInteger.java, similar to those suggested by Josh Watzman earlier this month. I think his diff also added support for loading an external jbigi library without having to rebuild the freenet-ext.jar file. My changes only work if the library is put into the jar. I'm *assuming* that his code changes result in a requested library name of "libjbigi-osx-none.jnilib". I don't know for sure, since I found his diff after I had already made my changes. I used the jbigi source from i2p since the build scripts for it had already been modified to support OSX. The resulting file was libjbigi.jnilib, which just needed to be renamed to "libjbigi-osx-none.jnilib" and inserted into freenet-ext.jar. The i2p_0_6_0_6 source builds the jbigi library static, so I'm hoping that it will run fine on a Mac that doesn't have gmp installed. Someone else said they had managed to build the library on the Mac, but their library was dynamic and would only run on a Mac with gmp already installed (or something to that effect.) After the osx jbigi library is inserted in to the freenet-ext.jar, I dropped that into the lib folder of the current stable source and built the project using ant. I won't discuss how many wrong turns I made on the way ;-) And the result on starting freenet... INFO: Non-optimized native BigInteger library 'net/i2p/util/libjbigi-osx-none.jnilib' loaded from resource