Changeset c68977ca for core/c


Ignore:
Timestamp:
Feb 27, 2008 3:18:32 PM (12 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
9b86da7c
Parents:
bc7bd62
Message:
  • i2ptunnel: Add 3-hop option to edit.jsp to match configtunnels.jsp
  • i2psnark: Remove orion and gaytorrents from default tracker list
  • Remove orion from jump list and from eepsite_index.html
  • Jbigi: Change jbigi version to 4.2.2 in build scripts - tested by amiga
  • Capitalize OutboundMessageDistributor? job name
  • TunnelPool?: Add a warning if all tunnels are backlogged
Location:
core/c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • core/c/README

    rbc7bd62 rc68977ca  
    11Prior to building the jbigi library, you will need to fetch the GMP source
    2 from http://www.swox.com/gmp/, saving it to jbigi/gmp-4.1.4.tar.bz2 (it will
     2from http://www.swox.com/gmp/, saving it to jbigi/gmp-4.2.2.tar.bz2 (it will
    33be unpacked and built as necessary).
     4
     5Version 4.2.2 has not been extensively tested with I2P. If you would like
     6to use a well-tested version, get gmp-4.1.4.tar.bz2, and edit jbigi/build.sh
     7to change the version number.
    48
    59To build the native jbigi and jcpuid libraries for the current host CPU,
    610simply run sh build.sh and the results will be packaged up into jbigi.jar
     11and the libjbigi.so library. To test, copy jbigi/lib/libjbigi.so
     12and jcpuid/lib/freenet/support/CPUInformation/libjcpuid-*.so
     13to your i2p/ directory. You can also copy jbigi.jar to the i2p/lib/ directory;
     14it will be used only if the router fails to load the native library.
    715
    816To build the native jbigi libraries for all supported CPUs (on the current OS),
    917go into jbigi/ and run build-all.sh (the results will be under jbigi/lib/)
     18
     19After copying the files to the i2p/ directory,
     20to run a speed test comparing the native library to the java library,
     21run the shell script below.
     22
     23-----------------
     24
     25#!/bin/sh
     26export I2P=~/i2p
     27java -cp $I2P/lib/i2p.jar:$I2P/lib/jbigi.jar net.i2p.util.NativeBigInteger
  • core/c/jbigi/build-all.sh

    rbc7bd62 rc68977ca  
    1313esac
    1414
    15 echo "Extracting GMP..."
    16 tar -xjf gmp-4.1.4.tar.bz2
     15VER=4.2.2
     16echo "Extracting GMP Version $VER ..."
     17tar -xjf gmp-$VER.tar.bz2
    1718echo "Building..."
    1819mkdir bin
     
    2526        mkdir bin/$x
    2627        cd bin/$x
    27         ../../gmp-4.1.4/configure --build=$x
     28        ../../gmp-$VER/configure --build=$x
    2829        make
    2930        sh ../../build_jbigi.sh static
  • core/c/jbigi/build.sh

    rbc7bd62 rc68977ca  
    11#/bin/sh
    22
    3 echo "Building the jbigi library with GMP"
     3VER=4.2.2
     4echo "Building the jbigi library with GMP Version $VER"
    45
    56echo "Extracting GMP..."
    6 tar -xjf gmp-4.1.4.tar.bz2
     7tar -xjf gmp-$VER.tar.bz2
    78echo "Building..."
    89mkdir -p lib/
     
    1213Darwin*)
    1314# --with-pic is required for static linking
    14 ../../gmp-4.1.4/configure --with-pic;;
     15../../gmp-$VER/configure --with-pic;;
    1516*)
    16 ../../gmp-4.1.4/configure;;
     17../../gmp-$VER/configure;;
    1718esac
    1819make
Note: See TracChangeset for help on using the changeset viewer.