Add check for JDK to be actually installed. macOS has dummy /usr/bin/java.
This commit is contained in:
parent
7d1d5e636c
commit
b52e3e0e12
@ -1,7 +1,7 @@
|
|||||||
# TDLib Android example
|
# TDLib Android example
|
||||||
|
|
||||||
This is an example of building `TDLib` for Android.
|
This is an example of building `TDLib` for Android.
|
||||||
You need a Bash shell on Linux, macOS, or Windows with some common tools, a C++ compiler, cmake, JDK, PHP, and gperf pre-installed.
|
You need a Bash shell on Linux, macOS, or Windows with some common tools, a C++ compiler, JDK, PHP, perl, and gperf pre-installed.
|
||||||
|
|
||||||
## Building TDLib for Android
|
## Building TDLib for Android
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for TOOL_NAME in gperf jar javadoc make perl php sed tar yes unzip ; do
|
for TOOL_NAME in gperf jar java javadoc make perl php sed tar yes unzip ; do
|
||||||
if ! which "$TOOL_NAME" >/dev/null 2>&1 ; then
|
if ! which "$TOOL_NAME" >/dev/null 2>&1 ; then
|
||||||
echo "Error: this script requires $TOOL_NAME tool installed."
|
echo "Error: this script requires $TOOL_NAME tool installed."
|
||||||
exit 1
|
exit 1
|
||||||
@ -43,3 +43,8 @@ if ! perl -MExtUtils::MakeMaker -MLocale::Maketext::Simple -MPod::Usage -e '' >/
|
|||||||
fi
|
fi
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! java --help >/dev/null 2>&1 ; then
|
||||||
|
echo "Error: Java installation is broken. Install JDK from https://www.oracle.com/java/technologies/downloads/."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user