Giter Site home page Giter Site logo

Comments (4)

Kangz avatar Kangz commented on August 24, 2024

You need to have glslangValidator, spirv-as and spirv-val in your PATH, maybe it is another one that's missing? Adding them all to the PATH worked for me. Also you need to make sure glslang is the at the commit listed in the .travis.yaml if you want things to pass CI.

from spirv-cross.

billhollings avatar billhollings commented on August 24, 2024

@Kangz Thanks for your suggestion.

I added the SPIRV-Tools/build/tools directory to my $PATH, and I can now launch both spirv-as and spirv-val from command line in the SPIRV-Cross directory.

Sadly it doesn't help. Python is still not finding glslangValidator...even though it too is accessible from the command line in the SPIRV-Cross directory.

I'm using Python 3.5.2...if that could conceivably matter.

from spirv-cross.

HansKristian-Work avatar HansKristian-Work commented on August 24, 2024

This is really weird, yes. I tried this on a 10.10 box after building glslang/spirv-tools fresh, and it worked fine.

PATH=$PATH:../glslang/build/Standalone/:../spirv-tools/build/tools ./test_shaders.py shaders-msl --metal

If I copy all the binaries to /usr/local/bin then it worked fine without PATH.
Is your python3 binary linking to someplace weird? I have mine in /usr/local/bin at least.

If you try this in python3 interpreter, does it pick up PATH properly?

import os
print(os.environ['PATH'])

from spirv-cross.

billhollings avatar billhollings commented on August 24, 2024

Arrrgghh!!!

Okay...I've figured this out finally.

In my terminal shell PATH env var, I was using ~/... instead of the absolute path through /Users/bill/....

This works fine when running glslValidator from the command line...but not from within test_shaders.py .

I was delayed in figuring this out because...arbitrarily...and frustratingly...using ~/... in the PATH-setting pre-command you use above...DOES work! It gets resolved to /Users/bill/... before it is appended to the PATH and passed to python3...whereas the original shell PATH appears in python3 with the ~/... values still intact.

from spirv-cross.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.