summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuan Song <huans@google.com>2021-05-03 18:34:36 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-05-03 18:34:36 +0000
commit95404f050a0dd21f2d230f921f576991f0443203 (patch)
treea9940acb78c9ff6e6ad3ff251cca2eb98e3ec6ea
parent39f0353fc042c3e2bf7d0a17f207b2be56ac86fd (diff)
parentb80951b7a4eee0dfeaded9119dcec2957a4318d7 (diff)
downloadvulkan-cereal-95404f050a0dd21f2d230f921f576991f0443203.tar.gz
Update build instruction, fix build on Linux am: 07af0f20b2 am: 894b48220d am: b80951b7a4
Original change: https://android-review.googlesource.com/c/device/generic/vulkan-cereal/+/1692658 Change-Id: I8f488e265b42e727bb0fac8d5de40b539b088da2
-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>