Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt windows relative path install
Forum Updated to NodeBB v4.3 + New Features

Qt windows relative path install

Scheduled Pinned Locked Moved Installation and Deployment
8 Posts 4 Posters 3.4k 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.
  • A Offline
    A Offline
    aobo
    wrote on last edited by
    #1

    Hello all

    What I am trying to do is compile qt on windows on my machine and then distribute the compiled statically linked qt around the office (so only one person is responsible for updating qt)

    Whenever someone tries to use the qmake, they get errors because the paths in the make file all direct to my machine directories instead of relative path that I hoped for.

    Is there a solution to this? Thanks!

    1 Reply Last reply
    0
    • P Offline
      P Offline
      p-himik
      wrote on last edited by
      #2

      I don't know where Qt stores information about this paths but you can do text search in Qt's files using path to Qt as an argument.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        The qmake paths are hard coded. There is some tool that can patch the binaries and libs to replace the build paths with the actual install path, it is used by the windows installers. But I don't know its name, though.

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • P Offline
          P Offline
          p-himik
          wrote on last edited by
          #4

          Volker, what advantage give hard coded paths?

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            shrug ... dunno, you'll have to ask the Trolls...

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • A Offline
              A Offline
              aobo
              wrote on last edited by
              #6

              How about linux, can we do relative path install on linux?

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #7

                No, it suffers from the same restrictions.

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  miroslav
                  wrote on last edited by
                  #8

                  An approach to make the compiled in paths work for multiple users is to standardize on a drive that is mounted the same way for all users. For example, using L, put Qt in L:\Qt\4.8.0 so that this path is the same for everybody. Make sure to also build Qt in this location, so that qmake points there.

                  Mirko Boehm | mirko@kde.org | KDE e.V.
                  FSFE Fellow
                  Qt Certified Specialist

                  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