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. Possible Bug in Qmake?

Possible Bug in Qmake?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 497 Views
  • 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.
  • D Offline
    D Offline
    DannyK
    wrote on last edited by
    #1

    I am trying to build qt statically on windows using vcpkg. I get fairly good results but qt5 declarative is failing.

    I believe I have tracked down the problem to the lack of definitions for LIBAPP and LIBFLAGS that get generated in the Makefiles by qmake.

    Particularly the Makefiles generated in qt5 declarative tools folder all have a build line that starts with:
    $(LIBAPP) $(LIBFLAGS) ...
    but neither of these variables is defined in the Makefile.
    I searched all of the qt5 source and could only find 2 instances of LIBAPP in the files winmakefile.cpp and msvc_nmake.cpp within (qtbase/qmake/generators/win32)

    Should there be a definition in one of the '.conf' files?

    With LIBFLAGS not being defined, I searched for it. It exists in qtwebengine/src/3rdParty/chromium in a number of places but the only other places were here:
    ./qtbase/qmake/generators/win32/msvc_nmake.cpp
    ./qtbase/qmake/generators/win32/winmakefile.cpp
    ./qtbase/qmake/generators/win32/msvc_vcproj.cpp
    ./qtbase/dist/changes-5.4.0
    ./qtbase/mkspecs/features/default_post.prf
    ./qtbase/mkspecs/features/no_debug_info.prf

    And there appears to be no explicit definition for QMAKE_LIBFLAGS.
    What am I missing?

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Not sure about this. But we built Qt 5.11.x statically with MSVC 2015 using configure command. We built declarative also. It was all fine. If you want we can provide you the steps.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      D 1 Reply Last reply
      0
      • dheerendraD dheerendra

        Not sure about this. But we built Qt 5.11.x statically with MSVC 2015 using configure command. We built declarative also. It was all fine. If you want we can provide you the steps.

        D Offline
        D Offline
        DannyK
        wrote on last edited by
        #3

        @dheerendra I would gladly take the steps. thanks.

        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