This guide will help you with the setup of your host machine in order to properly build and run the the NVIDIA GameWorks OpenGL sample applications.
Please ensure your system meets the OpenGL Samples Prerequisites before proceeding further.
This section will walk you through the setup of the OpenGL samples on a Windows development PC, for Android and Windows build targets.
SAMPLES_ROOT
.{SAMPLES_ROOT}/samples/build/vs201[0,2]win32/AllSamples.sln
.{SAMPLES_ROOT}/samples/bin/vs201[0,2]x86/
.SAMPLES_ROOT
.{SAMPLES_ROOT}/samples/build/vs2010android/AllSamples.sln
(only VS2010 project files are included for Android, but they will open with warnings in VS2012).{SAMPLES_ROOT}/samples/bin/Tegra-Android/
.An error similar to:
Can be solved as follows:
{NVPACK}/android-sdk-windows/SDKManager.exe
The error:
Can be fixed as follows:
{NVPACK}\android-sdk-windows\build-tools\{each version}\dx.bat
set defaultMx=-Xmx1024M
set defaultMx=-Xmx512M
This section will walk you through the setup of the OpenGL samples on a Linux development PC for Linux and Android build targets.
sudo apt-get install g++ binutils-gold xorg-dev libglu1-mesa-dev
SAMPLES_ROOT
.{SAMPLES_ROOT}/samples/build/linux[32,64]
, depending on the host PC.make
.{SAMPLES_ROOT}/samples/bin/linux[32,64]/
. Note that as per the Prerequisites guide, the system must have working OpenGL drivers for the samples to run.An error similar to:
Can be caused by the use of the BFD linker instead of GOLD. Can be solved as follows:
It is possible to build for Tegra Linux target (e.g. Jetson TK1) either cross-compiled from a Linux x86 host or directly compiled on the Linux for Tegra device itself.
SAMPLES_ROOT
.sudo apt-get install g++-arm-linux-gnueabihf
{SAMPLES_ROOT}/samples/build/linux-arm32
, depending on the host PC.make
.{SAMPLES_ROOT}/samples/bin/linux-arm32/
.SAMPLES_ROOT
.sudo apt-get update
(this is critical, or else the next line will do nothing)sudo apt-get install g++
{SAMPLES_ROOT}/samples/build/linux-arm32
, depending on the host PC.make
.{SAMPLES_ROOT}/samples/bin/linux-arm32/
.SAMPLES_ROOT
.NVPACK_ROOT
for all terminals to the root of the TADP install (i.e. the full path to NVPACK
).ANDROID_HOME
for all terminals to the root android SDK (likely the full path to NVPACK/android-sdk-linux
).android-ndk-r9b
), set the environment variable NVPACK_NDK_VERSION
for all terminals to the NDK version, e.g. android-ndk-r9d
. Note that the makefiles require the NDK to be inside of the NVPACK_ROOT
, since they were designed to support the Tegra Android Development Pack for consistency.sudo apt-get install openjdk-6-jdk dos2unix
sudo apt-get install ia32-libs
{SAMPLES_ROOT}/samples/build/makeandroid
.make
.{SAMPLES_ROOT}/samples/{sample name}/bin/
.The environment must define NVPACK_ROOT
This error indicates that the current shell's environment does not declare the required NVPACK_ROOT
. Please check that it is properly exported.
sdk.dir is missing. Make sure to generate local.properties using 'android update project' or inject it through the ANDROID_HOME environment variable.
This error indicates that the current shell's environment does not declare the required ANDROID_HOME
. Please ensure that it is properly exported in your shell.
make: NVPACK/android-ndk-r9b/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++: Command not found
This error indicates that the NDK version in NVPACK
is not the one used by default with the release makefile (currently NDK r9d). This can be fixed by setting the environment variable NVPACK_NDK_VERSION
to the NDK version, e.g. android-ndk-r9d
. Please ensure that it is properly exported in your shell. Note that the makefiles require the NDK to be inside of NVPACK
, since they were designed to support the Tegra Android Development Pack for consistency.
NVIDIA® GameWorks™ Documentation Rev. 1.0.220830 ©2014-2022. NVIDIA Corporation and affiliates. All Rights Reserved.