Compare commits

...
4 Commits
Author SHA1 Message Date
SunnyQjm 2f3f9b3a65 updagte 2021-09-26 09:15:28 +00:00
SunnyQjm 6c4b3abfbf add: ndn-tools 2021-09-26 09:14:53 +00:00
SunnyQjm a987255321 delete 2021-09-22 10:47:16 +00:00
SunnyQjm 6eae0dbfcb update 2021-09-22 10:46:48 +00:00
10 changed files with 11 additions and 184 deletions

No files matched your search

+3 -3
View File
@@ -3,10 +3,10 @@
DEFAULT_DIR=~/Documents/nfd
# ndn-cxx
NDN_CXX_VERSION=0.7.0
NDN_CXX_VERSION=0.7.1
# nfd
NDN_NFD_VERSION=0.7.0
NDN_NFD_VERSION=0.7.1
WEB_SOCKET_PP_VERSION=0.8.1-hotfix
# NLSR
@@ -18,7 +18,7 @@ NLSR_VERSION=0.5.1
NDN_CPP_VERSION=v0.17
# ndn-tools
NDN_TOOLS_VERSION=0.7
NDN_TOOLS_VERSION=0.7.1
function ensureDir() {
dir=$1
-14
View File
@@ -1,14 +0,0 @@
#!/bin/bash
####################################################
######## 本脚本用于安装运行NFD需要的环境
###################################################$
FORCE_UPDATE=$1
./install_ndn-cxx.sh
./install_nfd.sh
./install_Psync.sh
./install_ChronoSync.sh
./install_nlsr.sh
./install_ndn-tools.sh
./install_ndn-cpp.sh
-14
View File
@@ -1,14 +0,0 @@
#!/bin/bash
# 通用的函数定义和变量定义
source ./common.sh
# install ChronoSync
cloneOrUpdate ChronoSync https://github.com/named-data/ChronoSync/archive/${CHRONO_SYNC_VERSION}.tar.gz ${CHRONO_SYNC_VERSION}
./waf configure
./waf
sudo ./waf install
afterInstall ChronoSync https://github.com/named-data/ChronoSync/archive/${CHRONO_SYNC_VERSION}.tar.gz ${CHRONO_SYNC_VERSION}
sudo ldconfig
-14
View File
@@ -1,14 +0,0 @@
#!/bin/bash
# 通用的函数定义和变量定义
source ./common.sh
# install PSync
cloneOrUpdate PSync https://github.com/named-data/PSync/archive/${PSYNC_VERSION}.tar.gz ${PSYNC_VERSION}
./waf configure
./waf
sudo ./waf install
afterInstall PSync https://github.com/named-data/PSync/archive/${PSYNC_VERSION}.tar.gz ${PSYNC_VERSION}
sudo ldconfig
-16
View File
@@ -1,16 +0,0 @@
#!/bin/bash
# 通用的函数定义和变量定义
source ./common.sh
# install ndn-cpp
sudo apt install build-essential libssl-dev libsqlite3-dev libprotobuf-dev protobuf-compiler \
liblog4cxx-dev doxygen -y
cloneOrUpdate ndn-cpp https://github.com/named-data/ndn-cpp/archive/${NDN_CPP_VERSION}.tar.gz
./configure
make
sudo make install
sudo ldconfig
+3 -2
View File
@@ -5,12 +5,13 @@
source ./common.sh
# install ndn-cxx prerequesites
sudo apt install build-essential libsqlite3-dev libssl-dev curl tar -y
sudo apt install g++ pkg-config python3-minimal libboost-all-dev libssl-dev libsqlite3-dev -y
sudo apt install doxygen graphviz python3-pip -y
sudo pip3 install sphinx sphinxcontrib-doxylink
# install ndn-cxx
cloneOrUpdate ndn-cxx https://github.com/named-data/ndn-cxx/archive/ndn-cxx-${NDN_CXX_VERSION}.tar.gz ${NDN_CXX_VERSION}
cloneOrUpdate ndn-cxx https://gitea.qjm253.cn/SunnyQjm/ndn-release/raw/branch/main/ndn-cxx-ndn-cxx-${NDN_CXX_VERSION}.tar.gz ${NDN_CXX_VERSION}
#cloneOrUpdate ndn-cxx https://github.com/named-data/ndn-cxx/archive/ndn-cxx-${NDN_CXX_VERSION}.tar.gz ${NDN_CXX_VERSION}
./waf configure --enable-static --with-examples
./waf
sudo ./waf install
+1
View File
@@ -14,3 +14,4 @@ afterInstall ndn-tools https://github.com/named-data/ndn-tools/archive/ndn-tools
sudo ldconfig
-82
View File
@@ -1,82 +0,0 @@
#!/bin/bash
# 通用的函数定义和变量定义
source ./common.sh
NDN_CPP_VERSION=v0.16
NDNRTC_VERSION=v3.0.2
# install pre
echo 'install pre'
sudo apt-get install cmake wget autoconf automake libtool git protobuf-compiler libconfig++-dev libconfig++9v5
cd ${DEFAULT_DIR}
mkdir ndnrtc-env
cd ndnrtc-env
export NDNRTC_ENV=`pwd`
# depot_tools.git
cd $NDNRTC_ENV
echo 'begin install depot_tools to: '`pwd`
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=$PATH:`pwd`/depot_tools
echo 'install depot_tools finished'
# webrtc
cd $NDNRTC_ENV
echo 'begin install webrtc'
mkdir webrtc-checkout
cd webrtc-checkout/
echo 'begin fetch webrtc: '`pwd`
fetch --nohooks webrtc
cd src
git checkout -b branch-heads-59 refs/remotes/branch-heads/59
echo 'do gclient in: '`pwd`
gclient sync
./build/install-build-deps.sh
gn gen out/Default --args='is_debug=false'
ninja -C out/Default
# ndn-cpp
cd $NDNRTC_ENV
echo 'begin install ndn-cpp:'`pwd`
OLD_DEFAULT_DIR=${DEFAULT_DIR}
DEFAULT_DIR=${NDNRTC_ENV}
sudo apt install build-essential libssl-dev libsqlite3-dev libprotobuf-dev protobuf-compiler \
liblog4cxx-dev doxygen -y
cloneOrUpdate ndn-cpp https://github.com/named-data/ndn-cpp/archive/${NDN_CPP_VERSION}.tar.gz ndn-cpp
mkdir -p build/share
./configure --with-std-shared-ptr=no --with-std-function=no --prefix=$(pwd)/build
make
sudo make install
DEFAULT_DIR=${OLD_DEFAULT_DIR}
echo 'install ndn-cpp finished! => '`pwd`
# install OpenFEC
cd $NDNRTC_ENV
wget http://openfec.org/files/openfec_v1_4_2.tgz
tar -xvf openfec_v1_4_2.tgz && rm openfec_v1_4_2.tgz
mkdir -p openfec_v1.4.2/build && cd openfec_v1.4.2/
wget https://raw.githubusercontent.com/remap/ndnrtc/master/cpp/resources/ndnrtc-openfec.patch && patch src/CMakeLists.txt ndnrtc-openfec.patch
cd build/
cmake .. -DDEBUG:STRING=OFF
make
# install ndnrtc
DEFAULT_DIR=${NDNRTC_ENV}
cloneOrUpdate ndnrtc https://github.com/remap/ndnrtc/archive/${NDNRTC_VERSION}.tar.gz ndnrtc
cd cpp
mkdir -p build/share
echo 'CPPFLAGS="-g -O2 -DWEBRTC_POSIX" CXXFLAGS="-g -O2 -DWEBRTC_POSIX"' > build/share/config.site
echo NDNCPPDIR=`pwd`/../../ndn-cpp/build/include >> build/share/config.site
echo NDNCPPLIB=`pwd`/../../ndn-cpp/build/lib >> build/share/config.site
echo OPENFECDIR=`pwd`/../../openfec_v1.4.2 >> build/share/config.site
echo WEBRTCDIR=`pwd`/../../webrtc-checkout/src >> build/share/config.site
./configure --prefix=$(pwd)/build
make && make install
+4 -1
View File
@@ -13,8 +13,11 @@ sudo apt-get install doxygen graphviz python-sphinx -y
sudo apt-get install build-essential pkg-config valgrind libsystemd-dev \
libsqlite3-dev libssl-dev libpcap-dev -y
sudo apt-get install doxygen graphviz python-sphinx -y
cloneOrUpdate NFD https://github.com/named-data/NFD/archive/NFD-${NDN_NFD_VERSION}.tar.gz ${NDN_NFD_VERSION}
cloneOrUpdate NFD https://gitea.qjm253.cn/SunnyQjm/ndn-release/raw/branch/main/NFD-NFD-${NDN_NFD_VERSION}.tar.gz ${NDN_NFD_VERSION}
#cloneOrUpdate NFD https://github.com/named-data/NFD/archive/NFD-${NDN_NFD_VERSION}.tar.gz ${NDN_NFD_VERSION}
mkdir -p websocketpp
curl -L https://gitea.qjm253.cn/SunnyQjm/ndn-release/raw/branch/main/websocketpp-{WEB_SOCKET_PP_VERSION}.tar.gz > websocket.tar.gz
curl -L https://github.com/cawka/websocketpp/archive/${WEB_SOCKET_PP_VERSION}.tar.gz > websocket.tar.gz
# curl -L https://github.com/cawka/websocketpp/archive/0.8.1-hotfix.tar.gz > websocketpp.tar.gz
tar xf websocket.tar.gz -C websocketpp/ --strip 1
-38
View File
@@ -1,38 +0,0 @@
#!/bin/bash
# 通用的函数定义和变量定义
source ./common.sh
current_path=`pwd`
source ./install_Psync.sh
cd $current_path
source ./install_ChronoSync.sh
cd $current_path
# install NLSR
cloneOrUpdate NLSR https://github.com/named-data/NLSR/archive/NLSR-${NLSR_VERSION}.tar.gz ${NLSR_VERSION}
./waf configure
./waf
sudo ./waf install
afterInstall NLSR https://github.com/named-data/NLSR/archive/NLSR-${NLSR_VERSION}.tar.gz ${NLSR_VERSION}
#check nlsr.conf exists?
if [[ ! -f /usr/local/etc/ndn/nlsr.conf ]];then
cd /usr/local/etc/ndn
sudo cp nlsr.conf.sample nlsr.conf
fi
#check /var/lib/nlsr exists?
if [[ ! -d /var/lib/nlsr ]];then
sudo mkdir /var/lib/nlsr
fi
sudo ldconfig