Skip to content

Build Linux

Huts, Roman edited this page Apr 1, 2022 · 1 revision

Build Instructions

  • Makefiles are used to build the projects and samples on Linux.

Prerequisites

  • Some samples such as PlaybackHW require the Vulkan SDK.
  • Set the required path environment variable accordingly:
export VK_SDK_PATH=<download_location>/VulkanSDK/1.3.204.1

Building

# (1) switch to the appropriate directory

#   1.1 for building an individual sample
cd amf/public/samples/CPPSamples/CapabilityManager

#   1.2 for building all the samples
cd amf/public/samples

# (2) build (see the options section for more details)
make all <options>

# (3) output can be found inside amf/bin/<build_type>/
ls amf/bin/<build_type>

Makefile options

# build release version
make all BUILD_TYPE=rel

# build debug version
make all BUILD_TYPE=dbg