Qt-interest Archive, August 2005
[Qt4.0.1] error: QtValidLicenseForGuiModule' does not name a type
Message 1 in thread
Hi all,
I just installed Qt4.0.1 open-source on Windows. As I tried to compile a
project the compiler produces a lot of error messages like:
C:/Qt/4.0.1/include/QtGui/../../src/gui/painting/qcolor.h:31: error:
`QtValidLicenseForGuiModule' does not name a type
I had no problems compiling the same project with Qt4.0.0
Has anyone suggestions about what I'm doing wrong here?
Cheers,
Lothar
Message 2 in thread
I got the same problem. Do you have any idea what is wrong?
--Victor
Lothar Schlesier wrote:
> Hi all,
>
> I just installed Qt4.0.1 open-source on Windows. As I tried to compile
> a project the compiler produces a lot of error messages like:
>
> C:/Qt/4.0.1/include/QtGui/../../src/gui/painting/qcolor.h:31: error:
> `QtValidLicenseForGuiModule' does not name a type
>
>
> I had no problems compiling the same project with Qt4.0.0
>
> Has anyone suggestions about what I'm doing wrong here?
>
> Cheers,
> Lothar
>
>
Message 3 in thread
Victor Broto wrote:
> I got the same problem. Do you have any idea what is wrong?
>
> --Victor
>
> Lothar Schlesier wrote:
>
>> Hi all,
>>
>> I just installed Qt4.0.1 open-source on Windows. As I tried to
>> compile a project the compiler produces a lot of error messages like:
>>
>> C:/Qt/4.0.1/include/QtGui/../../src/gui/painting/qcolor.h:31: error:
>> `QtValidLicenseForGuiModule' does not name a type
>>
>>
>> I had no problems compiling the same project with Qt4.0.0
>>
>> Has anyone suggestions about what I'm doing wrong here?
>>
>> Cheers,
>> Lothar
>>
>>
>
>
In the file C:\Qt\4.0.1\src\corelib\global\qconfig.h change the line 13
# define QT_EDITION QT_EDITION_
to
# define QT_EDITION QT_EDITION_DESKTOP
This works for me.
Message 4 in thread
Gennadi Wart wrote:
> Victor Broto wrote:
>
>> I got the same problem. Do you have any idea what is wrong?
>>
>> --Victor
>>
>> Lothar Schlesier wrote:
>>
>>> Hi all,
>>>
>>> I just installed Qt4.0.1 open-source on Windows. As I tried to
>>> compile a project the compiler produces a lot of error messages like:
>>>
>>> C:/Qt/4.0.1/include/QtGui/../../src/gui/painting/qcolor.h:31: error:
>>> `QtValidLicenseForGuiModule' does not name a type
>>>
>>>
>>> I had no problems compiling the same project with Qt4.0.0
>>>
>>> Has anyone suggestions about what I'm doing wrong here?
>>>
>>> Cheers,
>>> Lothar
>>>
>>>
>>
>>
> In the file C:\Qt\4.0.1\src\corelib\global\qconfig.h change the line 13
>
> # define QT_EDITION QT_EDITION_
>
> to
>
> # define QT_EDITION QT_EDITION_DESKTOP
>
> This works for me.
thanks a lot! that helped :)
Message 5 in thread
I cannot even compile now with the 4.0.0 It's showing the same error.
:-S Any hint?!
Lothar Schlesier wrote:
> Hi all,
>
> I just installed Qt4.0.1 open-source on Windows. As I tried to compile
> a project the compiler produces a lot of error messages like:
>
> C:/Qt/4.0.1/include/QtGui/../../src/gui/painting/qcolor.h:31: error:
> `QtValidLicenseForGuiModule' does not name a type
>
>
> I had no problems compiling the same project with Qt4.0.0
>
> Has anyone suggestions about what I'm doing wrong here?
>
> Cheers,
> Lothar
>
>
Message 6 in thread
Ok, I don't know what happen, but now it works.
I uninstalled the 4.0.1 version. Then it compiled with the old 4.0.0. I
installed again 4.0.1, and without even rebooting, now it worked. The
only difference was that the second time I didn't have any other program
running.
Best,
Victor
Lothar Schlesier wrote:
> Hi all,
>
> I just installed Qt4.0.1 open-source on Windows. As I tried to compile
> a project the compiler produces a lot of error messages like:
>
> C:/Qt/4.0.1/include/QtGui/../../src/gui/painting/qcolor.h:31: error:
> `QtValidLicenseForGuiModule' does not name a type
>
>
> I had no problems compiling the same project with Qt4.0.0
>
> Has anyone suggestions about what I'm doing wrong here?
>
> Cheers,
> Lothar
>
>
Message 7 in thread
My bad... After executing a "qmake", again it shows the same error. It
woks with 4.0.0 after uninstalling 4.0.1. I don't understand what I miss?
Anybody has the same problem in windows?
Lothar Schlesier wrote:
> Hi all,
>
> I just installed Qt4.0.1 open-source on Windows. As I tried to compile
> a project the compiler produces a lot of error messages like:
>
> C:/Qt/4.0.1/include/QtGui/../../src/gui/painting/qcolor.h:31: error:
> `QtValidLicenseForGuiModule' does not name a type
>
>
> I had no problems compiling the same project with Qt4.0.0
>
> Has anyone suggestions about what I'm doing wrong here?
>
> Cheers,
> Lothar
>
>
Message 8 in thread
On Friday 19 August 2005 6:30 pm, Victor Broto wrote:
> My bad... After executing a "qmake", again it shows the same error. It
> woks with 4.0.0 after uninstalling 4.0.1. I don't understand what I miss?
>
> Anybody has the same problem in windows?
Yes. I can repeat the problem with XP and ME. The problem appears to be
directly related to the way qmake builds makefiles.
There are a couple of workarounds, including the one that you have posted.
However, it appears that the 'correct' solution is to run the 'configure'
step in the installation instructions.
viz. $QTDIR/doc/html/install-win.html
After running 'configure' and accepting the license statement, the problem
goes away. The configure script rebuilds several of the core 'generators'
with the license macro properly defined. That said, the configure script
gave me some minor headaches on Windows ME.
--
[ signature omitted ]
Message 9 in thread
Gabriel M. Beddingfield wrote:
> On Friday 19 August 2005 6:30 pm, Victor Broto wrote:
>
>
>> My bad... After executing a "qmake", again it shows the same error. It
>> woks with 4.0.0 after uninstalling 4.0.1. I don't understand what I
>> miss?
>>
>> Anybody has the same problem in windows?
>>
>
>
> Yes. I can repeat the problem with XP and ME. The problem appears to
> be directly related to the way qmake builds makefiles.
>
> There are a couple of workarounds, including the one that you have
> posted. However, it appears that the 'correct' solution is to run the
> 'configure' step in the installation instructions.
>
> viz. $QTDIR/doc/html/install-win.html
>
> After running 'configure' and accepting the license statement, the
> problem goes away. The configure script rebuilds several of the core
> 'generators' with the license macro properly defined. That said, the
> configure script gave me some minor headaches on Windows ME.
>
>
>
I also had this error using the precompiled version of Qt 4.0.1 with
minGW. Modifying the qconfig.h file worked for me as well.
Yann
Message 10 in thread
Yann Normand wrote:
> Gabriel M. Beddingfield wrote:
>
>> On Friday 19 August 2005 6:30 pm, Victor Broto wrote:
>>
>>
>>> My bad... After executing a "qmake", again it shows the same error. It
>>> woks with 4.0.0 after uninstalling 4.0.1. I don't understand what I
>>> miss?
>>>
>>> Anybody has the same problem in windows?
>>>
>>
>>
>>
>> Yes. I can repeat the problem with XP and ME. The problem appears
>> to be directly related to the way qmake builds makefiles.
>>
>> There are a couple of workarounds, including the one that you have
>> posted. However, it appears that the 'correct' solution is to run
>> the 'configure' step in the installation instructions.
>>
>> viz. $QTDIR/doc/html/install-win.html
>>
>> After running 'configure' and accepting the license statement, the
>> problem goes away. The configure script rebuilds several of the core
>> 'generators' with the license macro properly defined. That said, the
>> configure script gave me some minor headaches on Windows ME.
>>
>>
>>
> I also had this error using the precompiled version of Qt 4.0.1 with
> minGW. Modifying the qconfig.h file worked for me as well.
>
> Yann
>
>
I wrote this message too fast.
I thought that the minGW open source edition of Qt 4.0.1 was ready to
use. But I figure out I was wrong. I find the installation process
confusing.
Yann