PDA

View Full Version : MFC to Qt Migration install error



marianj
15th October 2009, 09:14
I have Qt 4.4.3, qtwinmigratrion 2.8 opensource, MS Visual Studio 6.0 Standard (also another PC with MS VS 2008 Professional Trial ver. - with same error)
I have already unpacked zip of qtwinmigratrion 2.8 opensource
I have tried both configuration (configure.bat and configure.bat -library).
I want to build component and examples
According INSTALL.TXT:
After qmake and nmake I have error:
qmfcapp.h:77: error: base `QApplication' with only non-default constructor



D:\MFCzdrojaky\qtwinmigrate-2.8-opensource\buildlib>nmake

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

NMAKE -f Makefile.Debug all

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_S
UPPORT -D_AFXDLL -DQT_QTWINMIGRATE_EXPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -D
QT_THREAD_SUPPORT -I"c:\Qt\4.4.3\include\QtCore" -I"c:\Qt\4.4.3\include\QtCore"
-I"c:\Qt\4.4.3\include\QtGui" -I"c:\Qt\4.4.3\include\QtGui" -I"c:\Qt\4.4.3\inclu
de" -I"..\src" -I"c:\Qt\4.4.3\include\ActiveQt" -I"debug" -I"." -I"c:\qt\4.4.3\m
kspecs\win32-g++" -o debug\qwinwidget.o ..\src\qwinwidget.cpp
In file included from ..\src\qwinwidget.cpp:57:
..\src\qmfcapp.h:77: error: base `QApplication' with only non-default constructo
r in class without a constructor
NMAKE : fatal error U1077: 'g++' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\VStudio\Common\Bin\NMAKE.EXE"' : r
eturn code '0x2'
Stop.


Thanks

axeljaeger
15th October 2009, 11:42
You are compiling using GCC. Are you sure that this MFC-framework works together with GCC?