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 SOURCES vs @SOURCES
Forum Updated to NodeBB v4.3 + New Features

Qmake SOURCES vs @SOURCES

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 575 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.
  • O Offline
    O Offline
    orio
    wrote on last edited by orio
    #1

    hi,

    i am working for 3 years now with qt versions . after changing my project to work with soft links in windows

    sources cannot be found , i have found old qt forum answer suggesting to change

    SOURCES which always worked for me to @SOURCES += filename @

    now it works, what is the purpose of this @ thing , what did i changed and why it is working now?

    anything to do with the soft links? problem disappear when NOT using shadow build, what is going here?

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

      Hi,

      The @ dates back to an old version of the forum where it was the marker for code blocks (now the forum runs on NodeBB and it's now backticks).

      As for your issues with soft link on Windows, you need to give more details with regard to your project, how you use them, which version of Qt and Windows.

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

      O 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        The @ dates back to an old version of the forum where it was the marker for code blocks (now the forum runs on NodeBB and it's now backticks).

        As for your issues with soft link on Windows, you need to give more details with regard to your project, how you use them, which version of Qt and Windows.

        O Offline
        O Offline
        orio
        wrote on last edited by
        #3

        @SGaist

        How do you explain that adding @ to the pro file actually solves the problem?

        What does it mean in qmake?

        I have read somewhere that shadow build dir has problems if sources location are all over the dir tree.

        O 1 Reply Last reply
        0
        • O orio

          @SGaist

          How do you explain that adding @ to the pro file actually solves the problem?

          What does it mean in qmake?

          I have read somewhere that shadow build dir has problems if sources location are all over the dir tree.

          O Offline
          O Offline
          orio
          wrote on last edited by
          #4

          @SGaist

          adding @ before the SOURCES part make qmake to ignore them , that is why it works.
          i will edit my question.

          still having the problem wih shadow builds where some of the sources of sub projects are one level above main pro file

          1 Reply Last reply
          0
          • C Offline
            C Offline
            ChrisW67
            wrote on last edited by
            #5

            @orio said in Qmake SOURCES vs @SOURCES:

            What does it [@] mean in qmake?

            Nothing I am aware of. It does mean something inside a Makefile and also to the Windows CMD shell. So, if it is passed through verbatim it may have an effect at build time.

            How do you explain that adding @ to the pro file actually solves the problem?

            Since you changed the PRO file you had to either manually rerun qmake, or an existing Makefile did for you. The resulting new Makefile did not have paths that triggered the issue.

            It could have something to do with soft links: qmake may have expanded them to the actual location in the new Makefile. Hard links are generally preferred because they are totally transparent to the user.

            1 Reply Last reply
            0
            • O Offline
              O Offline
              orio
              wrote on last edited by orio
              #6

              maybe i will open a new post with my current question
              its is not anymore about the @ symbol

              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