Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Problem with qmake generated makefile name in subdirectories for Qt 5.6
Forum Updated to NodeBB v4.3 + New Features

Problem with qmake generated makefile name in subdirectories for Qt 5.6

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 404 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.
  • R Offline
    R Offline
    Ramakanth
    wrote on last edited by
    #1

    Using the below command in makefile to generate the makefile for top and sub directories with name Makefile_g.
    The top level directory generates the makefile with name "Makefile_g" but subdirectories makefiles are generated with "Makefile" in Qt5.6. Incase of Qt 4.8, both the top directory and subdirectories makefiles are generated with "Makefile_g" filename.

    Makefile_g: $(PRO_FILE_NAME)
    $(QMAKEPATH)qmake -o $@ $(QMAKESPEC_SWITCH) $(QMAKESPEC) $<

    Here $(PRO_FILE_NAME) is top level pro file.
    QMAKEPATH incase of ubuntu is /usr/local/Qt-5.6.3/bin and $(QMAKESPEC_SWITCH) $(QMAKESPEC) are empty incase of ubuntu.

    Donot see any qmake option difference between Qt 4.8 and Qt 5.6 https://doc.qt.io/qt-5/qmake-running.​html.

    qmake --version
    QMake version 3.0
    Using Qt version 5.6.3 in /usr/local/Qt-5.6.3/lib

    Is this a known issue in qmake generator make file code in Qt 5.6(qmake/generators/makefile.cpp)?
    Any suggestions are appreciated.

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

      Hi,

      Can you provide a minimal compilable example project that shows that issue ?

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

      R 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Can you provide a minimal compilable example project that shows that issue ?

        R Offline
        R Offline
        Ramakanth
        wrote on last edited by Ramakanth
        #3

        @SGaist
        Attached is the minimal compilable example project showing the issue.
        Incase unable to view the example, attached the same project in https://bugreports.qt.io/browse/QTBUG-87742

        Ensure Qt 5.6.3 is installed in the path /usr/local/Qt-5.6.3.
        The top level handwritten makefile uses TestQmake.pro to generate Makefile_g in the current directory but not in sub-directory unlike Qt 4.8.

        Makefile_g: $(PRO_FILE_NAME)
        $(QMAKEPATH)qmake -o $@ $(QMAKESPEC_SWITCH) $(QMAKESPEC) $<

        To build the example project:
        cd TestQmake
        make clean
        make all

        Expected: The makefile in subdirectory testwidget should be generated with filename "Makefile_g"
        Actual: The makefile in subdirectory testwidget is generated with filename "Makefile"

        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