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. Run multiple commands on qmake or how to set PATH environment variable.
Forum Updated to NodeBB v4.3 + New Features

Run multiple commands on qmake or how to set PATH environment variable.

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 1 Posters 1.2k 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.
  • B Offline
    B Offline
    bnogal
    wrote on last edited by bnogal
    #1

    I am trying to run qmlplugindump by QMAKE_POST_LINK
    the problem is my lib root.libA.libB depends on root.libA and qmlplugindump is unable to find it.

    from cmd it works perfectly if i add to PATH the root

    i run qmlplugindump root.libA.libB 1.0 C:/projects/
    inside projects i have folder root, root/libA , root/libA/libB

    i tried with &&, with $$escape_expand(\n\t) to concatenate commands and add the paths to the PATH, but it just dont work, it is like they run on separate cmds

    For this and other things i would like to modify PATH environment from .pro file, is it possible?

    Any idea?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bnogal
      wrote on last edited by
      #2

      i answer myself.

      it get included in the makefile as a line to run.
      as i try to modify the PATH and later (&&) run qmlplugindump, it doesnt work.

      The reason is that i use windows.

      I may need EnableDelayedExpansion be runned previously if i want that my modification of %PATH% affects qmlplugindump

      So... i will use a separate script, .bat and another .sh

      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