Changeset 8b372ad


Ignore:
Timestamp:
Jun 3, 2010 3:35:46 AM (10 years ago)
Author:
dream <dream@…>
Branches:
master
Children:
6479a24
Parents:
dc3378d0
Message:

Fixed build.sh

jbigi's build.sh had a number of failed assumptions as per where I2P and JAVA_HOME were which needed to be removed and a warning put in their place. A better solution would be to have some way to search for JAVA_HOME and I2P in common locations, but at least this solution works if you do it manually:

I2P=~i2p JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.20 sh build.sh dynamic

thank zzz for prodding me to do this

Location:
core/c/jbigi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/c/jbigi/build.sh

    rdc3378d0 r8b372ad  
    1717mkdir -p bin/local
    1818VER=4.3.1
     19
     20set -e
    1921
    2022if [ "$1" != "dynamic" -a ! -d gmp-$VER ]
     
    5557cd ../..
    5658
    57 I2P=~i2p
    5859if [ ! -f $I2P/lib/i2p.jar ]
    5960then
    60         echo "I2P installation not found in $I2P - correct \$I2P definition in script to run speed test"
     61        echo "I2P installation not found"
     62    echo "We looked in '$I2P'"
     63    echo "Not running tests against I2P installation without knowing where it is"
     64    echo "Please set the environment variable I2P to the location of your I2P installation (so that \$I2P/lib/i2p.jar works)"
     65    echo "If you do so, this script will run two tests to compare your installed jbigi with the one here you just compiled (to see if there is a marked improvement)"
    6166        exit 1
    6267fi
     
    6671echo 'Running test with new libjbigi...'
    6772java -Djava.library.path=lib/ -cp $I2P/lib/i2p.jar:$I2P/lib/jbigi.jar net.i2p.util.NativeBigInteger
     73echo 'If the second is better performance, please use the jbigi you have compiled i2p will work better!'
     74echo '(You can do that just by copying lib/libjbigi.so over the existing libjbigi.so file in $I2P)'
  • core/c/jbigi/build_jbigi.sh

    rdc3378d0 r8b372ad  
    3232esac
    3333
     34if [ ! -f "$JAVA_HOME/include/jni.h" ]; then
     35    echo "Cannot find jni.h! Looked in '$JAVA_HOME/include/jni.h'"
     36    echo "Please set JAVA_HOME to a java home that has the JNI"
     37    exit 1
     38fi
     39
    3440#To link dynamically to GMP (use libgmp.so or gmp.lib), uncomment the first line below
    3541#To link statically to GMP, uncomment the second line below
Note: See TracChangeset for help on using the changeset viewer.