Changeset d28f4bd2 for core/c/README

Jun 5, 2011 1:52:43 PM (10 years ago)
zzz <zzz@…>
  • JBigI:
    • Replace old non-PIC 62-bit linux libs (GMP 4.1.4 built in 2005) with PIC libs built with GMP 5.0.2. License is LGPLv3. Built by sponge with GCC 4.4.4, downloaded from http://sponge.i2p/files/jbigi/gmp-5.0.2/ For 64-bit processors, both performance testing and the GMP changelog led us to use 5.0.2 for both the 32- and 64-bit versions, even though the files are twice as big. See http://zzz.i2p/topics/306 for discussion and test results. was a 64 bit file; by the new naming standard supported by NativeBigInteger?, it is now a 32-bit file and the 64-bit one is All new 64-bit libs will have _64 appended.
    • Update build docs
1 edited


  • core/c/README

    r48f4c72 rd28f4bd2  
     2Dynamic library build
    15If you have a installed on your system already
    26(check in /usr/lib), you can build a dynamically linked as follows:
    37        cd jbigi
    48 dynamic
    5 The built library is jbigi/lib/ .
     9You do, of course, need the gmp headers installed.
     10On ubuntu, check for libgmp3 and libgmp3-dev packages.
     11This is much easier and faster than building GMP from source.
    7 Otherwise, prior to building the jbigi library, you will need to fetch the GMP source
    8 from, saving it to jbigi/gmp-4.2.2.tar.bz2 (it will
    9 be unpacked and built as necessary).
    11 Version 4.2.2 has not been extensively tested with I2P. If you would like
    12 to use a well-tested version, get gmp-4.1.4.tar.bz2, and edit jbigi/
    13 to change the version number.
     14Static library build
     17Otherwise, the build script will download the the GMP source,
     18unpack and build it. The GMP version and download location are configured
     19in jbigi/, please review it to ensure you download
     20and build the desired version.
    1522To build the native jbigi and jcpuid libraries for the current host CPU,
    1623simply run sh and the results will be packaged up into jbigi.jar
    17 and the library. To test, copy jbigi/lib/
    18 and jcpuid/lib/freenet/support/CPUInformation/libjcpuid-*.so
    19 to your i2p/ directory. You can also copy jbigi.jar to the i2p/lib/ directory;
    20 it will be used only if the router fails to load the native library.
     24and the library.
    2226To build the native jbigi libraries for all supported CPUs (on the current OS),
    2327go into jbigi/ and run (the results will be under jbigi/lib/)
     30Installation and testing
     33To test, copy jbigi/lib/
     34and jcpuid/lib/freenet/support/CPUInformation/libjcpuid-*.so
     35to your i2p installation directory ($I2P). You may also copy jbigi.jar to the $I2P/lib/ directory;
     36it will be used only if the router fails to load the native library
     37from the I2P installation directory.
    2539The script runs two speed tests, one with your existing
Note: See TracChangeset for help on using the changeset viewer.