summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuan Song <huans@google.com>2021-05-03 18:56:54 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-05-03 18:56:54 +0000
commitf29f50d616d4b0d0154efe3103952b2c6e70157b (patch)
treea9940acb78c9ff6e6ad3ff251cca2eb98e3ec6ea
parent85e096ce4a6c3cab9935e6a0e5e6753dc55b6cff (diff)
parent95404f050a0dd21f2d230f921f576991f0443203 (diff)
downloadvulkan-cereal-f29f50d616d4b0d0154efe3103952b2c6e70157b.tar.gz
Update build instruction, fix build on Linux am: 07af0f20b2 am: 894b48220d am: b80951b7a4 am: 95404f050a
Original change: https://android-review.googlesource.com/c/device/generic/vulkan-cereal/+/1692658 Change-Id: I8eb1201e50a1d6d2a2d551ceaaa0e546eb7b1926
-rw-r--r--README.md4
-rw-r--r--base/MruCache.h1
-rw-r--r--stream-servers/glestranslator/EGL/ShaderCache.cpp1
3 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index ef1f4451..d00d326b 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,9 @@ and forward graphics API calls from one place to another:
# Build: Linux
Make sure the latest CMake is installed.
-Make sure you are using Clang as your `CC` and `CXX`. Then
+Make sure the opengl lib is installed. Otherwise, sudo apt-get install
+libglu1-mesa-dev freeglut3-dev mesa-common-dev
+Make sure you are using Clang as your `CC` and clang++ as your`CXX`. Then
mkdir build
cd build
diff --git a/base/MruCache.h b/base/MruCache.h
index 36a09ad3..0649e8e5 100644
--- a/base/MruCache.h
+++ b/base/MruCache.h
@@ -17,6 +17,7 @@
#ifndef ANDROID_BASE_MRUCACHE_
#define ANDROID_BASE_MRUCACHE_
+#include <algorithm>
#include <list>
#include <map>
diff --git a/stream-servers/glestranslator/EGL/ShaderCache.cpp b/stream-servers/glestranslator/EGL/ShaderCache.cpp
index 0a2b031f..ae70137c 100644
--- a/stream-servers/glestranslator/EGL/ShaderCache.cpp
+++ b/stream-servers/glestranslator/EGL/ShaderCache.cpp
@@ -15,6 +15,7 @@
#include "ShaderCache.h"
#include "base/MruCache.h"
+#include <string.h>
#include <cstdio>
#include <map>