From c2bffd59edeb3718cc2175dbc646b4bbfdbb0290 Mon Sep 17 00:00:00 2001 From: Haoyi HAN <54799247+Haoyi-Han@users.noreply.github.com> Date: Wed, 20 Jul 2022 19:11:00 +0800 Subject: [PATCH] Add Install Instructions --- pre-install.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pre-install.sh diff --git a/pre-install.sh b/pre-install.sh new file mode 100644 index 0000000..e0a5e62 --- /dev/null +++ b/pre-install.sh @@ -0,0 +1,21 @@ +# It is not recommended to run directly this script, which is divided into several independent blocks. +# You should follow the steps and download necessary package sources before installation. + +# Install Boost and ZeroMQ +sudo apt-get install libboost-all-dev +sudo apt-get install libzmq3-dev + +# Install BehaviorTreeV3, cppzmq, xtl, xtensor +# You should download install packages from Internet, decompress them and access the folder, then run following scripts: +mkdir build && cd build +CC=gcc-11 CXX=g++-11 cmake .. && make +sudo make install + +# Install GTest +sudo apt-get install libgtest-dev +cd /usr/src/gtest +sudo mkdir build && cd build +sudo CC=gcc-11 CXX=g++-11 cmake .. && make +cd lib +sudo cp libgtest.a /usr/local/lib +sudo cp libgtest_main.a /usr/local/lib \ No newline at end of file