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 generate config file
Forum Updated to NodeBB v4.3 + New Features

qmake generate config file

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 485 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.
  • S Offline
    S Offline
    Sebastian Mosiej
    wrote on last edited by
    #1

    Hi,
    During make install step binaries and libraries are copied. Those files aren't placed in standard or natural linux locations.
    To simplify start process I would like do generate shell script (or config file containing paths) which will run main app with supporting app and for both set proper LD_LIBRARY_PATH and PATH.
    In simplest form it would be something like

    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<install_dir_lib>
    PATH=$PATH:<install_dir_bins> 
    supporting app &
    main_app
    

    Let's treat this as a base.
    In CMake I can use CONFIGURE_FILE which will take template file and fill it with values gathered during configure phase.
    How to achieve something similar in qmake?

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

      Hi,

      Use QMAKE_SUBSTITUTES.

      There's a nice article here about that.

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

      S 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi,

        Use QMAKE_SUBSTITUTES.

        There's a nice article here about that.

        S Offline
        S Offline
        Sebastian Mosiej
        wrote on last edited by
        #3

        @SGaist
        Thank you, that's what I needed.

        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