[Interest] Where to does Qt expect to find ".qt-license" file when running on a Jenkins slave machine?

Koehne Kai Kai.Koehne at theqtcompany.com
Thu Jul 2 16:25:47 CEST 2015

> -----Original Message-----
> From: Edward Sutton [mailto:edward.sutton at subsite.com]
> Sent: Thursday, July 02, 2015 3:50 PM
> To: Koehne Kai
> Cc: Interests Qt
> Subject: Re: [Interest] Where to does Qt expect to find ".qt-license" file
> when running on a Jenkins slave machine?
> Kai,
> Thank you for your help.
> On a Windows 7 VM machine it installs to:
>  C:\Users\edward3\.qt-license
> When logged on as edward3 all is good.
> This same machine operates as a Jenkins slave.
> Dumping the environment from the Jenkins job:
>  USERPROFILE=C:\Windows\system32\config\systemprofile
> I tried copying C:\Users\edward3\.qt-license to the following without
> success:
>   C:\Windows\System32\config\systemprofile\AppData\Roaming\Qt\.qt-
> license

Actually it searches for a 'qtlicenses.ini' file here, that is usually created & updated by the Qt Installers...

>   C:\Windows\System32\config\systemprofile\.qt-license

This location should work. Please double check that the file is there (without any hidden .txt suffixes or so), and that your Jenkins job has read access to it.

>   C:\jenkins\.qt-license
> I had the slave building before using Qt Enterprise. What could have changed
> I do not know?

One difference is that the license is now checked for the licenses also when running qmake, see also the ChangeLog. In earlier versions it was only run at configure time.

May I suggest to open a ticket via the Qt Support?



More information about the Interest mailing list