You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
575 B
20 lines
575 B
#!/bin/bash -e
|
|
|
|
apt-get install -y autoconf curl libtool
|
|
curl -O https://capnproto.org/capnproto-c++-0.6.1.tar.gz
|
|
tar xvf capnproto-c++-0.6.1.tar.gz
|
|
cd capnproto-c++-0.6.1
|
|
./configure --prefix=/usr/local CPPFLAGS=-DPIC CFLAGS=-fPIC CXXFLAGS=-fPIC LDFLAGS=-fPIC --disable-shared --enable-static
|
|
make -j4
|
|
make install
|
|
|
|
cd ..
|
|
git clone https://github.com/commaai/c-capnproto.git
|
|
cd c-capnproto
|
|
git checkout 2e625acacf58a5f5c8828d8453d1f8dacc700a96
|
|
git submodule update --init --recursive
|
|
autoreconf -f -i -s
|
|
CFLAGS="-fPIC" ./configure --prefix=/usr/local
|
|
make -j4
|
|
make install
|
|
|
|
|