Skip to content

Commit

Permalink
add comment for tutorial 03 on windows build: need copy source out fr…
Browse files Browse the repository at this point in the history
…om ndk dir in order to build
  • Loading branch information
ggfan committed Apr 24, 2016
1 parent b90af7b commit 9d61d75
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Tutorial Samples
================
A set of samples to illustrate Vulkan API on Android with Android Studio
To build on windows for tutorial02, copy/install ndk-r12 ( or better ) to a directory close to root dir ( c: ) to workaround command path 260 character limit issue;see totorial02's build.gradle for details
To build on windows for tutorial02/03, copy/install ndk-r12 ( or better ) to a directory close to root dir ( c: ) to workaround command path 260 character limit issue;see totorial02/03's build.gradle for details

Other Resources:
Additional Android Studio/NDK samples:
Expand Down
7 changes: 6 additions & 1 deletion tutorial03_traceable_layers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@ Add gradle build for validation layers as app's jniLib dependencies
so inaries are packed into APK automatically and traceale at run-time
(layers could be stepped into when debugging application)
Enable all validation layers/extensions found on the system
Using vulkan wrappers in common/vulkan_wrapper directory
Using vulkan wrappers in common/vulkan_wrapper directory
**Windows build extra steps**
if you see errors while building validation layers, try the following workaround:
- copy your ndk to be directly under c:\
- configure your ndk.dir inside local.properties to your new ndk location
this is due to the fact that commend path is above 260 when source is inside ndk

4 changes: 4 additions & 0 deletions tutorial03_traceable_layers/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ model {
srcDir '../../common/vulkan_wrapper'
}
}
// To build on windows, must shorten the source directly path
// one way is to copy your ndk to c:\ directory [c:\ndk-r12], and confogure new location to ndk.dir in local.properties
// the other way is to just copy layers source out from ndk\sources\third_party\vulkan to c:\vulkan.
// Linux / Mac build should work as without any changes
jniLibs {
dependencies {
project ":threading"
Expand Down

0 comments on commit 9d61d75

Please sign in to comment.