Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. preprocessor
    Log in to post

    • SOLVED Error 3668 when building QT Application against QT 5.11 with Visual Studio 2015
      General and Desktop • visual studio preprocessor • • vaultnerd  

      4
      0
      Votes
      4
      Posts
      183
      Views

      @vaultnerd Then please mark this topic as solved, thx.
    • UNSOLVED Recommended way(s) to pre-process certain files before building/running
      General and Desktop • opengl glsl preprocessor • • Ailurus  

      4
      0
      Votes
      4
      Posts
      1139
      Views

      Sorry for the slow reply. Thanks both for your responses! I've had a quick look at GLSL #include before — I'm not exactly sure how to use it (this is a start though) — but apart from that, I'd prefer a way to do this in Qt, possibly more customizable and also driver-independent (e.g. I'm not sure if all graphics drivers support this GLSL extension). In addition to that, it would be a good feature to share with my students who might use Qt also for later/future projects. I'm developing the software in an academic setting — when the (to be included) GLSL files have changed, things need to be (pre)processed again. Basically I wondered whether it's possible to automatically check .glsl files with a preprocessor for some tag (#pragma seems a good choice) and act on it, in this case use some sed/regex line to replace the mentioned file by the contents of that file. This could happen before every Build, or even before every Run (depending on how straightforward it is to save the copy-pasted version after Building and re-use it when Running, or just do this before every Run).
    • UNSOLVED Can't use C++ property in QML if using preprocessor condition
      QML and Qt Quick • qml c++ qtquick ios preprocessor • • shav  

      2
      0
      Votes
      2
      Posts
      802
      Views

      Hi, I might be wrong but I wonder if you're not entering a corner case here. I'd recommend posting this to the interest mailing list. You'l find there Qt's developers/maintainers (this forum is more user oriented)
    • Determine which modules were loaded in the .pro file, using preprocessor #ifdef
      General and Desktop • module macro preprocessor ifdef • • DerManu  

      2
      0
      Votes
      2
      Posts
      1049
      Views

      Hi, QT_NO_PRINTER is (or not) defined when compiling Qt, not when loading or not a module. One thing you could is the qtHaveModule() function in your pro file and create the defines you need there. Hope it helps