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: how to write more complex project?
Forum Updated to NodeBB v4.3 + New Features

QMAKE: how to write more complex project?

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 4.1k 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.
  • P Offline
    P Offline
    Peppy
    wrote on last edited by
    #1

    Is there any good tutorial how to write a QMAKE for more complex projects? Because it drives me angry...I want structure like has QtCreator repository...

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      Have you read QMake tutorial?
      http://doc.qt.nokia.com/4.7/qmake-manual.html

      Cheers!

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

        Just take a look into the Qt Creator repository for inspiration if that does something similar to what you want...

        Qmake is sadly underdocumented:-( Looking at examples is the best way to learn it in my opinion.

        1 Reply Last reply
        0
        • Z Offline
          Z Offline
          ZapB
          wrote on last edited by
          #4

          Yeah I agree with Tobias. It took me ages to figure out how to get qmake to do shadow builds (from within the .pro files) for both debug and release properly. The key to it was using the build_pass{} scope - qmake actually parses the .pro files up to 3 times!

          Do you have any specific project layout examples that you want to achieve? You mention like qt-creator but which aspect of it?

          Nokia Certified Qt Specialist
          Interested in hearing about Qt related work

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Peppy
            wrote on last edited by
            #5

            Yes, I have downloaded repo of sources, but this QMAKE (.pro/.pri) files are including so weird...

            I want to have sources at one place, resources at one place and builds at one place
            @
            Project/
            |- src/
            |- app/
            |- libs/
            |- // and so on...
            |- bin/
            |- debug/
            |- release/
            |- res/
            |- // any resources...
            |- doc/
            @
            As it has QtCreator (or similar)...

            At Tobias: Does anybody work on this documentation? Does anybody upgrade that documentation? Or it's just flow from version to version?

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

              I am not aware of anybody working on qmake documentation.

              As I said before:That organization of files you have to follow for your school does not really make sense for qmake without an installation step. Qmake assumes -- as any sensible build system would -- that it can put build artifacts wherever it wants to. If you need your files in specific places, then you need to install them.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Peppy
                wrote on last edited by
                #7

                Okay. But QtCreator uses that oraganization not only me. And I will be using shadow builds for this project...

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  Peppy
                  wrote on last edited by
                  #8

                  So, I think, It takes me a weeks to prepare it :D

                  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