Recently I tested making my own 64bit builds of the
FEC libraries. 
Here are the steps used. It appears to work but it is
possible I made some mistake.
(previously it would complain about missing native FEC
libraries on startup)


Note: Requires C compiler, make and a Sun? Java JDK
#Get and unpack code
$ wget
http://onionnetworks.com/downloads/fec-1.0.3.zip
$ unzip fec-1.0.3.zip

#build library
$ cd fec-1.0.3/src/csrc
$ vi Makefile

#Edit to include -fPIC
CFLAGS=$(COPT) -Wall -fPIC # -DTEST

#add line (change setting to match your JDK install
path)
JAVA_HOME=/opt/java

$ make

#setup native.properties file as below
$ cd ../../lib/fec-linux-x86/lib
$ vi native.properties

com.onionnetworks.native.keys=fec8-linux-x86-64,fec16-linux-x86-64

com.onionnetworks.native.fec8-linux-x86.name=fec8
com.onionnetworks.native.fec8-linux-x86.osarch=linux-x86-64
com.onionnetworks.native.fec8-linux-x86.path=lib/linux/x86/libfec8.so

com.onionnetworks.native.fec16-linux-x86.name=fec16
com.onionnetworks.native.fec16-linux-x86.osarch=linux-x86-64
com.onionnetworks.native.fec16-linux-x86.path=lib/linux/x86/libfec16.so

#create test jar
cd ..
jar test.jar lib

#setup freenet
$ mv test.jar <freenet install path>

$ cd <freenet install path>
$ vi freenet
change line
opt/java/bin/java -client -Xdebug -cp
test.jar:freenet-ext.jar:freenet-cvs-snapshot.jar
freenet.node.Node <port> <ip> <bandwidth>

Note: Your test jar should be first in classpath

#start node
$ ./freenet

Thanks


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to