To build GAPID, Android SDK, Android NDK, and JDK 8 are needed. The do
script
will try to deduce their locations and populate the default paths via the
environment variable ANDROID_HOME
, ANDROID_NDK_ROOT
, and JAVA_HOME
,
respectively. If these environment variables are not defined, you will need to
manually specify the locations for the *DKs during the do config
step.
When manually specifying locations, please note that the do
script cannot
resolve paths containing environment variables currently.
Please see the following for detailed steps on each platform.
Install Go 1.8.3
- Install msys2.
- Open the
MSYS2 MinGW 64-bit
terminal. - Type:
pacman -Syu --noconfirm
and press enter. - Close and reopen the msys2 terminal.
- Note that pacman may need to update itself before updating other packages, so repeat the above two steps until pacman no longer updates anything.
- Type:
pacman -S mingw-w64-x86_64-gcc --noconfirm
and press enter. - Close the msys2 terminal
- Unzip the Android SDK to a directory of your choosing.
- Using the unzipped
tools\android.bat
download:- Android 5.0.1 (API 21)
- SDK Platform
- Android SDK Build-tools 21.1.2
- Android 5.0.1 (API 21)
- Unzip the Android NDK to a directory of your choosing.
Install CMake.
- Unzip the Ninja executable to a directory of your choosing.
Install Python 3.6
Install JDK 8
In a terminal type:
go get github.com/google/gapid
This may take a while. After it completes you'll get the message:
package github.com/google/gapid: no buildable Go source files in {path}.
This is normal.
In a terminal type:
cd %GOPATH%\src\github.com\google\gapid
do config
And follow the instructions to configure the build.
In a terminal type:
cd %GOPATH%\src\github.com\google\gapid
do build
The build output will be in the directory you specified with do config
.
Install Go 1.8.3
- Note that some older 1.8 versions have had problems if used with Xcode 8.3 (bug)
- Unzip the Android SDK to a directory of your choosing.
- Instead, if you have Homebrew, you can install via
brew install android-sdk
and the default installation location would be$HOMEBREW_PREFIX/opt/android-sdk
, where$HOMEBREW_PREFIX
can be found usingbrew config
.
- Instead, if you have Homebrew, you can install via
- Using
tools/android
download:- Android 5.0.1 (API 21)
- SDK Platform
- Android SDK Build-tools 21.1.2
- Android 5.0.1 (API 21)
- Unzip the Android NDK to a directory of your choosing.
- Instead, if you have Homebrew, you can install via
brew install android-ndk
and the default installation location would be$HOMEBREW_PREFIX/opt/android-ndk
, where$HOMEBREW_PREFIX
can be found usingbrew config
.
- Instead, if you have Homebrew, you can install via
Install CMake
- Instead, if you have Homebrew, you can install via
brew install cmake
.
- Unzip the Ninja executable to a directory of your choosing.
- Instead, if you have Homebrew, you can install via
brew install ninja
.
- Instead, if you have Homebrew, you can install via
Install Python 3.6
- Instead, if you have Homebrew, you can install via
brew install python3
.
Install JDK 8
- You can inspect JDK home locations via the
/usr/libexec/java_home
utility.- For JDK 8, the command is
/usr/libexec/java_home -v 1.8
.
- For JDK 8, the command is
In a terminal type:
go get github.com/google/gapid
This may take a while. After it completes you'll get the message:
package github.com/google/gapid: no buildable Go source files in {path}.
This is normal.
In a terminal type:
cd $GOPATH/src/github.com/google/gapid
./do config
And follow the instructions to configure the build.
In a terminal type:
cd $GOPATH/src/github.com/google/gapid
./do build
The build output will be in the directory you specified with do config
.
Install Go 1.8.3
- Unzip the Android SDK to a directory of your choosing.
- Using
tools/android
download:- Android 5.0.1 (API 21)
- SDK Platform
- Android SDK Build-tools 21.1.2
- Android 5.0.1 (API 21)
- Unzip the Android NDK to a directory of your choosing.
Install CMake.
- Unzip the Ninja executable to a directory of your choosing.
Install JDK 8
In a terminal type:
go get github.com/google/gapid
This may take a while. After it completes you'll get the message:
package github.com/google/gapid: no buildable Go source files in {path}.
This is normal.
In a terminal type:
cd $GOPATH/src/github.com/google/gapid
./do config
And follow the instructions to configure the build.
In a terminal type:
cd $GOPATH/src/github.com/google/gapid
./do build
The build output will be in the directory you specified with do config
.