Can I use qmake to build Non Qt programs with a closed source or MIT licence?

The c++ code that I'm building does not include any Qt headers or link to any Qt libraries.

The only mention of Qt in any of the projects source files is the following line in the projects .pro file:

QT -= core gui widgets

I assume using qmake in this way would be just the same as using cmake or gnu make and so would not violate the GPL.

  • Are you distributing qmake with the closed source program that you give to your customers? – Brandin Apr 10 '18 at 8:41
  • Normally you would not distribute qmake (it is only a tool for building), but even if you do, qmake is actually LGPL, which gives you permission even to distribute it together with your closed source products. Basically if you do this you just need to keep the LGPL part separate from your closed source part and allow a user to replace the verison of LGPL software with her own version if she wants. Unless you go out of your way to make this impossible, this is already the case for a build tool like qmake. – Brandin Apr 10 '18 at 8:44
  • 2
  • I'm not distributing qmake, just using it as a tool for building libraries that will be MIT licensed. The libraries will be used in both open and closed source programs. I just wanted to make sure that I would not be polluting the libraries with LGPL restrictions by using qmake. – Tom Paynter Apr 10 '18 at 12:56
  • Thanks Brandin, you are right it is a duplicate of that. – Tom Paynter Apr 10 '18 at 12:58

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.