Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMAKE_POST_LINK from Qt Creator, but with ShadowBuild, is it possible
Forum Updated to NodeBB v4.3 + New Features

QMAKE_POST_LINK from Qt Creator, but with ShadowBuild, is it possible

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.3k Views 1 Watching
  • 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.
  • M Offline
    M Offline
    Milutin Mrkonjic
    wrote on last edited by Milutin Mrkonjic
    #1

    This work for me to add manifest to app exe.
    And this work from script build.

    QMAKE_POST_LINK = "$$OUT_PWD....\ManifestTool\mt.exe -manifest Resources\MyApp.manifest -outputresource: $$OUT_PWD\MyApp.exe;1"

    But from Qt Creator that is not working.
    If I turn off Shadow Build, then works fine.

    Is anyone know why?

    edit: (errors)
    jom: ....\Output\Debug\Makefile.MyApp.Debug [.\MyApp.exe] Error 31
    jom: ....\Output\Debug\Makefile.MyApp[debug] Error 2
    jom: ....\Output\Debug\Makefile [sub-MyApp-pro-make_first-ordered] Error 2
    15:03:25: The process "C:\Qt\qtcreator-3.5.1\bin\jom.exe" exited with code 2.
    Error while building/deploying project MyApp (kit: x86)
    When executing step "Make"

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Where is mt. exe located on your hard drive ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Milutin Mrkonjic
        wrote on last edited by Milutin Mrkonjic
        #3

        Hi

        It is located in folder within project folder. That is ok.

        I found what is error :|

        MyApp.exe.manifest is located on Source\Resources\ path. That path from some reason is not accessible with /Resource/MyApp.exe.manifest when I start build from creator.

        I was move MyApp.manifest.exe to project root folder (same place where is .pro file).
        And with setup environment script copy that into output_folder (for example /Debug).
        Build from creator can find manifest in output folder (without any path, just manifest file name).
        Script always copy manifest file to proper output folder (depend on build configuration) and that script must be ran before you can start to dev, so evreything is fine now.

        Thanks for help.

        I hope that this will help someone, one day :)

        1 Reply Last reply
        0

        • Login

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