Forums - [Vulkan][Sample] Build error on imageeffects

4 posts / 0 new
Last post
[Vulkan][Sample] Build error on imageeffects
vu.trong
Join Date: 15 Mar 16
Posts: 1
Posted: Wed, 2016-03-16 04:51

Received following error when trying to build imageeffects sample with latest glslangValidator (built from https://github.com/KhronosGroup/glslang) <br>==== <br>SPIR-V Generation: glslangValidator -s -V D:\Vulkan\AdrenoSDKforVulkan\samples\imageeffects\app\src\main\jni\shaders\imageeffects.vert -o D:\Vulkan\AdrenoSDKforVulkan\samples\imageeffects\app\src\main\assets/imageeffects_vert.spv imageeffects.vert compilation failed, return code: -1073741515 <br>==== <br>Env: Android Studio 1.5.1 NDK: r10e <br>Any suggestion to solve this error? Thanks,

  • Up0
  • Down0
lostart
Join Date: 16 May 12
Posts: 4
Posted: Wed, 2016-03-16 10:21

Hi Vu,

Have you tried replacing backslashes with forward slashes in command line to see if that helps?

  • Up0
  • Down0
mhfeldma Moderator
Join Date: 29 Nov 12
Posts: 310
Posted: Mon, 2016-03-21 14:38

Not able to duplicate this using an glslangValidator built from today's source (3/21/16).

Is the issue just with the imageffects sample?  Are any of the other shaders in the sample being built?

 

  • Up0
  • Down0
Rex
Join Date: 8 Aug 15
Posts: 45
Posted: Mon, 2016-04-18 23:11

You can hard-code the path glslangValidator in app/build.gradle

class generateSPIRVCompiledShaders extends DefaultTask {

    def validator = "/usr/local/bin/glslangValidator"

or for Windows

def validator = "C:\<your_path>\glslangValidator"

 

You must have glslangValidator built and installed from https://github.com/KhronosGroup/glslang

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.