GithubHelp home page GithubHelp logo

Comments (7)

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

Sure? Try running cmake again to reconfigure, it works for me. I fixed it after the PR was merged.

from fossilize.

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

After installing, I get

{
    "file_format_version" : "1.0.0",
    "layer" : {
        "name": "VK_LAYER_fossilize",
        "type": "GLOBAL",
        "library_path": "libVkLayer_fossilize.so",
        "api_version": "1.1.98",
        "implementation_version": "1",
        "description": "Fossilize capture layer"
    }
}

the JSON file in the build directory however has:

{
    "file_format_version" : "1.0.0",
    "layer" : {
        "name": "VK_LAYER_fossilize",
        "type": "GLOBAL",
        "library_path": "./libVkLayer_fossilize.so",
        "api_version": "1.1.98",
        "implementation_version": "1",
        "description": "Fossilize capture layer"
    }
}

from fossilize.

cwabbott0 avatar cwabbott0 commented on June 24, 2024

Yes, I have the latest commit from master, and I just installed it. I got the exact same thing as you, and it doesn't work. From reading https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/blob/master/loader/LoaderAndLayerInterface.md#layer-manifest-file-format more closely, it seems that when "library_path" doesn't start with . or / it tries to find it on the library search path (i.e. LD_LIBRARY_PATH). I hadn't added /usr/local/lib to my LD_LIBRARY_PATH (and at least on Fedora it isn't on the library search path by default), which is probably why it happens to work for you and not me. The path in the json file should be absolute, so that once the json file is found you know that it's going to correctly find the library. This is what every other Vulkan json file that I know of does.

from fossilize.

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

Hm, the validation layers do not do this on Arch at least, but I guess I can force absolute paths.

from fossilize.

cwabbott0 avatar cwabbott0 commented on June 24, 2024

At least renderdoc and steam also use an absolute path. The validation layers are installed by the OS and are part of the base Vulkan system, so it's probably ok to assume that the library file is in the system path, but that's not a good assumption to make by any third-party thing. What if someone has a non-standard install prefix?

from fossilize.

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

Pushed a PR which uses absolute paths, please try it.

from fossilize.

cwabbott0 avatar cwabbott0 commented on June 24, 2024

Works for me, thanks!

from fossilize.

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.