[Android] zogthegreat:
Grrr!!! So I was able to install the dependencies and retry compiling. 3 mins into the build, it failed again:

[ 0% 174/77640] host C++: protoc-gen-javastream <= frameworks/base/tools/streaming_proto/Errors.cpp

FAILED: /home/zog/work/los/out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates/Errors.o

/bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I device/samsung/klte-common/include -I frameworks/base/tools/streaming_proto -I /home/zog/work/los/out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates -I /home/zog/work/los/out/host/linux-x86/gen/EXECUTABLES/protoc-gen-javastream_intermediates -I libnativehelper/include_deprecated \$(cat /home/zog/work/los/out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -c -fno-exceptions -Wno-multichar -Wa,--noexecstack -fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -O2 -g -fno-strict-aliasing --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -fstack-protector-strong -m64 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -target x86_64-linux-gnu -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8 -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/backward -isystem prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/x86_64-linux -std=gnu++14 -fPIE -D_USING_LIBCXX -DANDROID_STRICT -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF /home/zog/work/los/out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates/Errors.d -o /home/zog/work/los/out/host/linux-x86/obj/EXECUTABLES/protoc-gen-javastream_intermediates/Errors.o frameworks/base/tools/streaming_proto/Errors.cpp"

prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++.real: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

[ 0% 177/77640] Merge android manifest files: /home/zog/work/los/out/target/common/...works/base/core/res/AndroidManifest.xml frameworks/base/core/res/LineageManifest.xml

ninja: build stopped: subcommand failed.

19:00:39 ninja failed with: exit status 1

#### failed to build some targets (03:33 (mm:ss)) ####

I've been Googling the line 2 second line where it says "FAILED", but I haven't found anything that seems relevant. I also Googled the end part where it says "Merge android manifest files", but I can't tell if I have a problem there or not. Here is a copy of my LineageManifest.xml:

<?xml version="1.0" encoding="utf-8"?>

<!--

/*

* Copyright (c) 2017 The LineageOS Project

*

* Licensed under the Apache License, Version 2.0 (the "License");

* you may not use this file except in compliance with the License.

* You may obtain a copy of the License at

*

* http://www.apache.org/licenses/LICENSE-2.0

*

* Unless required by applicable law or agreed to in writing, software

* distributed under the License is distributed on an "AS IS" BASIS,

* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

* See the License for the specific language governing permissions and

* limitations under the License.

*/

-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

package="android">

<!-- Allows an application to override the power key action

[MENTION=278736]hide[/MENTION] <p>Not for use by third-party applications.

-->

<permission android:name="android.permission.PREVENT_POWER_KEY"

android:protectionLevel="signature|privileged" />

<!-- Used to launch a common app (FlipFlap) for devices with flip cover. -->

<protected-broadcast android:name="lineageos.intent.action.LID_STATE_CHANGED" />

<!-- Used for long press power torch feature - automatic turn off on timeout -->

<protected-broadcast

android:name="com.android.server.policy.PhoneWindowManager.ACTION_TORCH_OFF" />

<!-- Used to notify when SU is used. -->

<protected-broadcast android:name="android.intent.action.SU_SESSION_CHANGED" />

</manifest>