XRT Build (in Docker container)¶
From time to time, it may be useful to build XRT (Xilinx Runtime) from source. As there are a lot of dependencies required for the build that are not useful in production, we have a containerised build process.
Prerequisites¶
- Docker installed
- You are in the docker user group
- If you need to use a web proxy, set http_proxy and/or https_proxy environment variables
cd tools/xrt_build_docker
mkdir build
Build Container Image¶
If direct web access available:
docker build . -t xrt_build
If HTTP proxy is required:
docker build . --build-arg https_proxy --build-arg http_proxy -t xrt_build
Compile XRT¶
If direct web access available:
docker run -it --rm --mount type=bind,source="$(pwd)"/build,target=/build xrt_build bash -c ./xrt_build.sh
If HTTP proxy is required:
docker run -it --rm --mount type=bind,source="$(pwd)"/build,target=/build -e https_proxy -e http_proxy xrt_build bash -c ./xrt_build.sh