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. [SOLVED] Building Qt Creator Statically
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Building Qt Creator Statically

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 2 Posters 1.9k 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.
  • J Offline
    J Offline
    john_d
    wrote on last edited by
    #1

    hi,

    Is building Qt Creator statically possible ?

    Thanks

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      No. But I am curious: Why would you want to do that?

      1 Reply Last reply
      0
      • J Offline
        J Offline
        john_d
        wrote on last edited by
        #3

        Hi !

        Thanks, I would like to do so because I have an (old) red hat version installed with KDE and linked to a Qt version.

        So I would like to install a recent Qt Creator as a "self contained" package, so that it does not interfere with whats already installed (and so that the "new" Qt/Qt creator does not mask anything)

        Is this possible ?

        Thanks

        ps : sorry for my broken english

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          That is possible, our Qt Creator binaries shipped with the Qt packages do exactly that. Unfortunately they will most likely not work with old redhat installations due to issues with glibc.

          So why don't you do what we do? We ship a dynamic Qt and a Qt Creator linked against that version. You can either set rpath so that creator will use your Qt or set LD_LIBRARY_PATH accordingly (e.g. in qtcreator.sh).

          1 Reply Last reply
          0
          • J Offline
            J Offline
            john_d
            wrote on last edited by
            #5

            hello

            Thanks for this, I will definitly try it.

            If i understand correctly, i need to compile Qt normally (as dynamic libraries), and then compile Qt-Creator and set its rpath to point to the Qt libraries I installed, right ?

            If that is correct, I see there is an "rpath" option in the configure script of Qt. What is this for ?

            Thanks

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tobias.hunger
              wrote on last edited by
              #6

              You would need to set the rpath on the Qt Creator binary, not on Qt. Basically it is a path built into the binary where the linker will check for libraries. I think you will need to pass some linker flags to the Qt Creator build to make this work.

              Setting LD_LIBRARY_PATH is definitely the simpler approach.

              1 Reply Last reply
              0
              • J Offline
                J Offline
                john_d
                wrote on last edited by
                #7

                Thanks ! I actually tried with rpath and it works :-)

                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