Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Using Gradle to build Qt C++ app
Forum Updated to NodeBB v4.3 + New Features

Using Gradle to build Qt C++ app

Scheduled Pinned Locked Moved 3rd Party Software
2 Posts 2 Posters 4.1k Views 2 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
    KiNgFrUiT
    wrote on 14 Jul 2015, 17:52 last edited by KiNgFrUiT
    #1

    I am interest in using Gradle to replace qmake for building a Qt C++ application, continuous integration. Gradle's support for "regular" C++ apps looks good. I believe Gradle is already used for building part of the Android Qt applications.

    I have searched online and cannot find any information regarding this topic, does anyone know if this is possible or may be possible in the "near" future?

    Im on Windows 7 x64 with Qt5.5 mingw mainly but also use Arch Linux x64.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lilian.moraru
      wrote on 6 Aug 2015, 15:11 last edited by
      #2

      I have the same issue.
      Gradle 2.5 supports continuous building and I decided to switch the build from qmake to Gradle(Qbs doesn't support continuous builds).
      There doesn't seem to be any plugin.
      I see only 2 solutions:

      • Have a gradle task that runs qmake on project files and mention the moc files in there as sources but you will not have the advantage of proper caching and dependency management, probably error prone in some edge cases.
      • Implement a gradle plugin that simulates the tasks qmake does - especially for a person that doesn't develop qmake, this would be very cumbersome to do right. Some colleagues of mine did this for a Windows build system, if I remember correctly it took them ~1-2 months...
        They were not familiar with Qt and qmake when they started but at the same time, they are paid to do this all day.
      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved