Hi All,
During coding a Simulation project (see the attachment plz) I noticed
that Qt Creator not able to generate ui_*.h files, *is a bug or
something else?*
*How I can fix this issue?*
Qt Creator gave me the following error log:
------------------------------------------------------------------------
Running build steps for project FactorySimulator...
Starting: c:/qt/2010.02.1/qt/bin/qmake.exe
Q:/Academic/SVU/courses/SM-Rand
Elkouatly/F09/project1/FactorySimulator/FactorySimulator.pro -spec
win32-g++ -r CONFIG+=release
WARNING: Failure to find: FORMS
WARNING: Failure to find: +=
WARNING: Failure to find: FORMS
WARNING: Failure to find: +=
Exited with code 0.
Starting: C:/Qt/2010.02.1/mingw/bin/mingw32-make.exe -w
mingw32-make: Entering directory `Q:/Academic/SVU/courses/SM-Rand
Elkouatly/F09/project1/FactorySimulator'
C:/Qt/2010.02.1/mingw/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory `Q:/Academic/SVU/courses/SM-Rand
Elkouatly/F09/project1/FactorySimulator'
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE
-DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_SVG_LIB
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
-I"c:\Qt\2010.02.1\qt\include\QtCore"
-I"c:\Qt\2010.02.1\qt\include\QtGui"
-I"c:\Qt\2010.02.1\qt\include\QtSvg" -I"c:\Qt\2010.02.1\qt\include"
-I"c:\Qt\2010.02.1\qt\include\ActiveQt" -I"moc"
-I"c:\Qt\2010.02.1\qt\mkspecs\win32-g++" -o obj\mainwindow.o
mainwindow.cpp
mainwindow.cpp:2:27: error: ui_mainwindow.h: No such file or directory
mainwindow.cpp: In constructor 'MainWindow::MainWindow(QWidget*)':
mainwindow.cpp:6: error: invalid use of incomplete type 'struct
Ui::MainWindow'
mainwindow.h:14: error: forward declaration of 'struct Ui::MainWindow'
mainwindow.cpp:9: error: invalid use of incomplete type 'struct
Ui::MainWindow'
mainwindow.h:14: error: forward declaration of 'struct Ui::MainWindow'
mainwindow.cpp:10: error: invalid use of incomplete type 'struct
Ui::MainWindow'
mainwindow.h:14: error: forward declaration of 'struct Ui::MainWindow'
mainwindow.cpp:11: error: invalid use of incomplete type 'struct
Ui::MainWindow'
mainwindow.h:14: error: forward declaration of 'struct Ui::MainWindow'
mainwindow.cpp:12: error: invalid use of incomplete type 'struct
Ui::MainWindow'
mainwindow.h:14: error: forward declaration of 'struct Ui::MainWindow'
mainwindow.cpp:16: error: invalid use of incomplete type 'struct
Ui::MainWindow'
mainwindow.h:14: error: forward declaration of 'struct Ui::MainWindow'
mainwindow.cpp:17: error: invalid use of incomplete type 'struct
Ui::MainWindow'
mainwindow.h:14: error: forward declaration of 'struct Ui::MainWindow'
mainwindow.cpp:62: error: invalid use of incomplete type 'struct
Ui::MainWindow'
mainwindow.h:14: error: forward declaration of 'struct Ui::MainWindow'
mainwindow.cpp: In destructor 'virtual MainWindow::~MainWindow()':
mainwindow.cpp:67: warning: possible problem detected in invocation
of delete operator:
mainwindow.cpp:67: warning: invalid use of incomplete type 'struct
Ui::MainWindow'
mainwindow.h:14: warning: forward declaration of 'struct Ui::MainWindow'
mainwindow.cpp:67: note: neither the destructor nor the
class-specific operator delete will be called, even if they are
declared when the class is defined.
mainwindow.cpp: In member function 'virtual void
MainWindow::changeEvent(QEvent*)':
mainwindow.cpp:73: error: invalid use of incomplete type 'struct QEvent'
c:\Qt\2010.02.1\qt\include/QtCore/../../src/corelib/kernel/qobject.h:62:
error: forward declaration of 'struct QEvent'
mainwindow.cpp:74: error: incomplete type 'QEvent' used in nested
name specifier
mainwindow.cpp:75: error: invalid use of incomplete type 'struct
Ui::MainWindow'
mainwindow.h:14: error: forward declaration of 'struct Ui::MainWindow'
mainwindow.cpp: In member function 'void
MainWindow::on_action_zoomIn_triggered()':
mainwindow.cpp:95: error: invalid use of incomplete type 'struct
Ui::MainWindow'
mainwindow.h:14: error: forward declaration of 'struct Ui::MainWindow'
mainwindow.cpp: In member function 'void
MainWindow::on_action_zoomOut_triggered()':
mainwindow.cpp:100: error: invalid use of incomplete type 'struct
Ui::MainWindow'
mainwindow.h:14: error: forward declaration of 'struct Ui::MainWindow'
mainwindow.cpp: In member function 'void
MainWindow::on_action_zoomFit_triggered()':
mainwindow.cpp:105: error: invalid use of incomplete type 'struct
Ui::MainWindow'
mainwindow.h:14: error: forward declaration of 'struct Ui::MainWindow'
mingw32-make[1]: Leaving directory `Q:/Academic/SVU/courses/SM-Rand
Elkouatly/F09/project1/FactorySimulator'
mingw32-make: Leaving directory `Q:/Academic/SVU/courses/SM-Rand
Elkouatly/F09/project1/FactorySimulator'
mingw32-make[1]: *** [obj/mainwindow.o] Error 1
mingw32-make: *** [release] Error 2
Exited with code 2.
Error while building project FactorySimulator
When executing build step 'Make'
------------------------------------------------------------------------
--
Best Regards
Muhammad Bashir Al-Noimi
My Blog:http://mbnoimi.net
<FactorySimulator.zip>_______________________________________________
Qt-creator mailing list
Qt-creator@trolltech.com <mailto:Qt-creator@trolltech.com>
http://lists.trolltech.com/mailman/listinfo/qt-creator