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. Is there any way to recognize qmake as a symbolic link?
Qt 6.11 is out! See what's new in the release blog

Is there any way to recognize qmake as a symbolic link?

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 907 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.
  • K Offline
    K Offline
    keyboard_hellchang
    wrote on last edited by keyboard_hellchang
    #1

    Hi!
    My OS is centOS7
    My Qt version 5.14.2, 4.8.7

    When I try to create a makefile by trying a qmake command, the include path is created as a real directory path, not a symbolic link name.

    example)
    Directory name : system_1.0.1
    Symbolic link name : system -> system_1.0.1

    in Makefile)
    moc_*.cpp: system_1.0.1/~~~~~~

    I want: moc_*.cpp: system/~~~~~~

    I'd appreciate it if you could help me.

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

      Hi,

      How exactly are you calling qmake ?
      From where ?
      Which version of qmake ?

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

      K 1 Reply Last reply
      0
      • JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        https://stackoverflow.com/questions/38283010/qmake-installs-variable-create-symbolic-link-to-directory

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          How exactly are you calling qmake ?
          From where ?
          Which version of qmake ?

          K Offline
          K Offline
          keyboard_hellchang
          wrote on last edited by
          #4

          @SGaist
          I call qmake once in my project directory to create Makefile.
          The qmake version
          qt 4.8.7: qmake version 2.1a
          qt 5.14.2: qmake version 3.1

          jsulmJ 1 Reply Last reply
          0
          • K keyboard_hellchang

            @SGaist
            I call qmake once in my project directory to create Makefile.
            The qmake version
            qt 4.8.7: qmake version 2.1a
            qt 5.14.2: qmake version 3.1

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @keyboard_hellchang Which Qt version do you want to use? You should call qmake using absolute path to make sure you call qmake from Qt which you want to use.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            K 1 Reply Last reply
            0
            • jsulmJ jsulm

              @keyboard_hellchang Which Qt version do you want to use? You should call qmake using absolute path to make sure you call qmake from Qt which you want to use.

              K Offline
              K Offline
              keyboard_hellchang
              wrote on last edited by
              #6

              @jsulm
              I'm using qmake to fit the qt version.
              qt4 -> qmake-qt4.
              qt5 -> qmake-qt5.

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

                We are asking you the exact Qt version you are using.

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

                K 1 Reply Last reply
                0
                • SGaistS SGaist

                  We are asking you the exact Qt version you are using.

                  K Offline
                  K Offline
                  keyboard_hellchang
                  wrote on last edited by keyboard_hellchang
                  #8

                  @SGaist
                  I use qt4.8.7.
                  qmake version is 2.1a

                  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