33## Overview
44
55This component requires a prebuilt
6- [ localproxy binary] ( https://github.com/aws-samples/aws-iot-securetunneling-localproxy/tree/main )
6+ [ localproxy binary version >=v3.2.0 ] ( https://github.com/aws-samples/aws-iot-securetunneling-localproxy/tree/main )
77from AWS IoT Secure Tunneling.
88
9- Tested with
10- [ commit feb59e2] ( https://github.com/aws-samples/aws-iot-securetunneling-localproxy/commit/feb59e268c8f4f1c7450f3a510963e84cc397ac7 ) .
11-
129If you want arm64, arm7l or x86 linux build these are available as pre-built
1310binaries with the repo's
1411[ latest release] ( https://github.com/aws-samples/aws-iot-securetunneling-localproxy/releases/ ) .
@@ -22,24 +19,31 @@ target device. For cross-compilation, see the
2219### Install Dependencies
2320
2421``` sh
25- sudo apt update
26-
27- # Install boost 1.87
28- wget https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.gz -O /tmp/boost_1_87_0.tar.gz
29- tar xzvf /tmp/boost_1_87_0.tar.gz
30- cd boost_1_87_0
31- ./bootstrap.sh
32- sudo ./b2 install link=static
33-
34- # Install other dependencies
35- sudo apt install zlib1g protobuf-compiler libprotobuf-dev libssl-dev
22+ sudo apt-get update && sudo apt-get install -y build-essential cmake wget git libssl-dev zlib1g-dev
23+
24+ # Install Boost 1.87.0
25+ wget -q https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.gz -O boost.tar.gz
26+ tar xzf boost.tar.gz && cd boost_1_87_0
27+ ./bootstrap.sh --prefix=/usr/local
28+ sudo ./b2 install link=static -j$( nproc)
29+ cd ..
30+
31+ # Install Protobuf 3.17.3
32+ wget -q https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz -O protobuf.tar.gz
33+ tar xzf protobuf.tar.gz && cd protobuf-3.17.3
34+ mkdir -p build && cd build
35+ cmake ../cmake -DCMAKE_INSTALL_PREFIX=/usr/local -Dprotobuf_BUILD_TESTS=OFF
36+ make -j$( nproc) && sudo make install
37+ cd ../..
3638```
3739
3840### Build
3941
4042``` sh
41- cmake -B build -DCMAKE_BUILD_TYPE=Release -DLINK_STATIC_OPENSSL=OFF -DBUILD_TESTS=OFF
42- make -C build/
43+ mkdir -p build && cd build
44+ cmake .. -DBUILD_TESTS=OFF -DLINK_STATIC_OPENSSL=OFF
45+ make -j$( nproc)
46+ strip bin/localproxy
4347```
4448
4549The resulting binary should be approximately 4MB.
0 commit comments