This guide will help you with the setup of your host machine in order to properly build NvGamepad and run the sample.
Please ensure your system meets the NvGamepad Prerequisites before proceeding further.
This section will walk you through the setup of NvGamepad and the sample on a Windows development PC, for Android and Windows build targets.
NVGAMEPAD_ROOT
.{NVGAMEPAD_ROOT}/samples/build/vs201[0,2]win32/GamepadSample.sln
.{NVGAMEPAD_ROOT}/samples/bin/vs201[0,2]x86/
.On Windows 7, running some of the samples may show a dialog indicating that XINPUT1_4.DLL could not be found. This can generally be solved as follows:
xinput.lib
in the list.xinput.lib
with xinput9_1_0.lib
.NVGAMEPAD_ROOT
.{NVGAMEPAD_ROOT}/samples/build/vs2010android/GamepadSample.sln
(only VS2010 project files are included for Android, but they will open with warnings in VS2012).{NVGAMEPAD_ROOT}/samples/bin/Tegra-Android/
.BUILD FAILED
C:\NVPACK\android-sdk-windows\tools\ant\build.xml:542: Unable to resolve project target 'android-14'
Can be solved as follows:
{NVPACK}/android-sdk-windows/SDKManager.exe
.[dx] Could not create the Java virtual machine.
[dx] Error occurred during initialization of VM
[dx] Could not reserve enough space for object heap
Can be solved as follows:
{NVPACK}\android-sdk-windows\build-tools\{each version}\dx.bat
.set defaultMx=-Xmx1024M
set defaultMx=-Xmx512M
NVIDIA® GameWorks™ Documentation Rev. 1.0.220830 ©2014-2022. NVIDIA Corporation and affiliates. All Rights Reserved.