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. Distributing and building a source code with Qt.
Forum Updated to NodeBB v4.3 + New Features

Distributing and building a source code with Qt.

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 2.0k 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.
  • B Offline
    B Offline
    belimawr
    wrote on last edited by
    #1

    I am developing a Free Software program and I want to know if is there any way to configure Qt library paths to build the program without using QtCreator.

    I believe that opens QtCreator and configure the "Target Setup" is not a good way to compile a Free Software. So what I want to do is distribute a software that to be compiled only needs some commands like ./configure && make. If there is a "Qt in Path" the Makefile generated by QtCreator probably will work. However if the Qt was installed using the binaries, I do not have any idea about what to do to set the Qt libraries path.

    Is there any easy/automated way to do that?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      twsimpson
      wrote on last edited by
      #2

      Qt projects generally use qmake, Qt Creator also uses qmake. So use qmake :)
      Another option, though a little more complicated, is to use cmake. Both qmake and cmake are equivalent to the classic "./configure" in autotools.

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

        We try hard to make sure that everything you do inside creator is also possible on the command line.

        The complete building creator does is based on external tools (qmake, cmake, make, etc.). Check the build steps in Projects mode, they say exactly what commands they trigger. Just run the same commands on the command line and you will get the same results. This is assuming your command line environment is set up correctly, check the Build Environment for what Creator uses. Note that even if we claim to be using the system environment we do set certain environment variables, depending on which compiler is used, etc.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          belimawr
          wrote on last edited by
          #4

          Thank you!

          I will try to use qmake and after I will post the results here.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            belimawr
            wrote on last edited by
            #5

            It worked perfectly!!!!!!

            Thank you very much!!!

            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