The Intel Trust Authority Client build process uses Docker and produces libraries in the /bin directory.
- Docker v20+
- make
-
The table below lists the Linux distributions that the build process currently supports.
Distribution Build Target Name Ubuntu 20.04 ubuntu_20 RHEL 8.x NA
#Below command will produce static libraries in release mode inside bin\ubuntu_20
make ubuntu_20
#Below command will produce static libraries in debug mode inside bin\ubuntu_20
make DEBUG=1 ubuntu_20
#Install sgx repo list
echo 'deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main' > /etc/apt/sources.list.d/intel-sgx.list
wget -qO - https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | apt-key add -
#create the workdir
mkdir /opt/intel
#Install sgx sdk using
wget -q https://download.01.org/intel-sgx/sgx-linux/2.22/distro/ubuntu20.04-server/sgx_linux_x64_sdk_2.22.100.3.bin; \
chmod +x sgx_linux_x64_sdk_2.22.100.3.bin; \
echo 'yes' | ./sgx_linux_x64_sdk_2.22.100.3.bin
#Install other dependencies like sgx dcap and others
apt-get update && apt-get install -y --no-install-recommends \
libsgx-urts=2.22.100.3-focal \
libsgx-qe3-logic=1.19.100.3-focal1 \
libsgx-pce-logic=1.19.100.3-focal1 \
libsgx-dcap-default-qpl=1.19.100.3-focal1 \
libsgx-dcap-ql=1.19.100.3-focal1 \
libsgx-dcap-ql-dev=1.19.100.3-focal1 \
libtdx-attest-dev=1.19.100.3-focal1 \
libtdx-attest=1.19.100.3-focal1 \
cmake \
libcurl4-openssl-dev \
libjansson-dev=2.12-1build1 \
pkg-config \
libtool \
automake \
autoconf \
gnupg \
libssl-dev \
git \
build-essential
#Install libjwt
apt-get install -y gnupg wget autoconf automake libtool=2.4.6-14 pkg-config
git clone https://github.com/benmcollins/libjwt.git && cd libjwt && git checkout c276dc7 && autoreconf -i
cd libjwt && ./configure && make all && make install
#Example Build : src/connector library
mkdir build && cd build
#For building Static libraries use
cmake --build .
#For building Shared libraries use
cmake .. -DBUILD_SHARED_LIBS=true