/bitrise/src/app/src/main/jni/radvision/include/rvadthread_t.h:24:10: fatal error: ‘linux/user.h’ file not found #include <linux/user.h>
1 warning and 1 error generated.
make: Leaving directory `/bitrise/src/app/src/main/jni’
Environment:
Where did the issue happen?
On Bitrise
Which stack?
Android & Docker, on Ubuntu 14.04 - LTS Stack
Which build Step causes the issue and which version of the step?
NDK Build 1.1.5
Reproducibility
Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO
open the Workflow editor
Add a script step as the first step in the workflow and add the script from the discuss link to the input of the script step.
Replace r15b with r10e in the script)
#!/usr/bin/env bash
set -ex
# set env vars
export ANDROID_NDK_VERSION='r15b'
export ANDROID_NDK_HOME='/opt/android-ndk'
# expose for subsequent steps
envman add --key ANDROID_NDK_HOME --value "$ANDROID_NDK_HOME"
# ------------------------------------------------------
# --- Android NDK
# clean up if a previous version is already installed
rm -rf "$ANDROID_NDK_HOME"
# download
mkdir /opt/android-ndk-tmp
cd /opt/android-ndk-tmp
wget -q https://dl.google.com/android/repository/android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.zip
# uncompress
unzip -q android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.zip
# move to its final location
mv ./android-ndk-${ANDROID_NDK_VERSION} ${ANDROID_NDK_HOME}