Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to run qsb from Visual Studio custom build step
Forum Updated to NodeBB v4.3 + New Features

How to run qsb from Visual Studio custom build step

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 299 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Johan_R
    wrote on last edited by
    #1

    I'm developing a Qt application. I am using Qt 6.4.2, Visual Studio 2019 and the Qt Visual Studio Tools. I'm not using QMake or CMake. I tried to create a custom build step for baking shaders. Here is what I came up with:

    Image.png

    The file BakeShaders.bat just contains the command

    %QT_DIR%\bin\qsb  --glsl 100es,120,150  --hlsl 50  --msl 12  -o Shaders\SvgButton.frag.qsb  Shaders\SvgButton.frag
    

    This sometimes works. But often the build fails with the error message

    Qt::BuildLock[{CC143C7A-D81C-4243-A5FE-2B5CFBA01776}]: Timeout; wait aborted
    

    How do I set up a custom build step that works?

    Thank you
    Johan Råde

    1 Reply Last reply
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved