ahmhdy
15th June 2009, 22:27
Hi,
I'm trying to compile a project created on Qt 4.3.2 in a new Qt 4.5.1 without changing anything,
I use qmake or compile commands, and I get this error:
Running build steps for project RemoteController...
Configuration unchanged, skipping QMake step.
Starting: C:/Qt/2009.02/mingw/bin/mingw32-make.exe -w
C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Entering directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
c:\Qt\2009.02\qt\bin\qmake.exe -spec c:\Qt\2009.02\qt\mkspecs\win32-g++ -win32 CONFIG+=release -o Makefile RemoteController.pro
C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Leaving directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
mingw32-make.exe: Entering directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
C:/Qt/2009.02/mingw/bin/mingw32-make.exe -f Makefile.Release
mingw32-make.exe[1]: Entering directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Qt\2009.02\qt\include\QtCore" -I"c:\Qt\2009.02\qt\include\QtGui" -I"c:\Qt\2009.02\qt\include" -I"." -I"c:\Qt\2009.02\qt\include\ActiveQt" -I"release" -I"." -I"c:\Qt\2009.02\qt\mkspecs\win32-g++" -o release\ConnectionDialog.o ConnectionDialog.cpp
In file included from ConnectionDialog.cpp:4:
ConnectionDialog.h:4:24: QHostAddress: No such file or directory
In file included from ConnectionDialog.cpp:4:
ConnectionDialog.h:32: error: `QHostAddress' does not name a type
ConnectionDialog.cpp: In member function `bool ConnectionDialog::validateIPAddressFormat()':
ConnectionDialog.cpp:71: error: `IPAddress' undeclared (first use this function)
ConnectionDialog.cpp:71: error: (Each undeclared identifier is reported only once for each function it appears in.)
mingw32-make.exe[1]: Leaving directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
mingw32-make.exe: Leaving directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
mingw32-make.exe[1]: *** [release/ConnectionDialog.o] Error 1
mingw32-make.exe: *** [release] Error 2
Exited with code 2.
Error while building project RemoteController
When executing build step 'Make'
** In file included from ConnectionDialog.cpp:4: (points to: #include "ConnectionDialog.h")
** QHostAddress: No such file or directory (points to: #include <QHostAddress>)
** In file included from ConnectionDialog.cpp:4: (points to: #include "ConnectionDialog.h")
** 'QHostAddress' does not name a type (points to: QHostAddress IPAddress;)
** 'IPAddress' undeclared (first use this function)(points to: correct = IPAddress.setAddress(robotAddress);)
** (Each undeclared identifier is reported only once for each function it appears in.) (points to: correct = IPAddress.setAddress(robotAddress);)
This is unlogical because I'm sure that all erros are exsiting in the project.
Hopefully note that I'm compiling over Windows 7 RC. This application is originally is directed to Linux machine. When I try to compile it on Linux, Qt gives me error: make not found.
Please help!
Regards,
Ahmed
I'm trying to compile a project created on Qt 4.3.2 in a new Qt 4.5.1 without changing anything,
I use qmake or compile commands, and I get this error:
Running build steps for project RemoteController...
Configuration unchanged, skipping QMake step.
Starting: C:/Qt/2009.02/mingw/bin/mingw32-make.exe -w
C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Entering directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
c:\Qt\2009.02\qt\bin\qmake.exe -spec c:\Qt\2009.02\qt\mkspecs\win32-g++ -win32 CONFIG+=release -o Makefile RemoteController.pro
C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Leaving directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
mingw32-make.exe: Entering directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
C:/Qt/2009.02/mingw/bin/mingw32-make.exe -f Makefile.Release
mingw32-make.exe[1]: Entering directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Qt\2009.02\qt\include\QtCore" -I"c:\Qt\2009.02\qt\include\QtGui" -I"c:\Qt\2009.02\qt\include" -I"." -I"c:\Qt\2009.02\qt\include\ActiveQt" -I"release" -I"." -I"c:\Qt\2009.02\qt\mkspecs\win32-g++" -o release\ConnectionDialog.o ConnectionDialog.cpp
In file included from ConnectionDialog.cpp:4:
ConnectionDialog.h:4:24: QHostAddress: No such file or directory
In file included from ConnectionDialog.cpp:4:
ConnectionDialog.h:32: error: `QHostAddress' does not name a type
ConnectionDialog.cpp: In member function `bool ConnectionDialog::validateIPAddressFormat()':
ConnectionDialog.cpp:71: error: `IPAddress' undeclared (first use this function)
ConnectionDialog.cpp:71: error: (Each undeclared identifier is reported only once for each function it appears in.)
mingw32-make.exe[1]: Leaving directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
mingw32-make.exe: Leaving directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
mingw32-make.exe[1]: *** [release/ConnectionDialog.o] Error 1
mingw32-make.exe: *** [release] Error 2
Exited with code 2.
Error while building project RemoteController
When executing build step 'Make'
** In file included from ConnectionDialog.cpp:4: (points to: #include "ConnectionDialog.h")
** QHostAddress: No such file or directory (points to: #include <QHostAddress>)
** In file included from ConnectionDialog.cpp:4: (points to: #include "ConnectionDialog.h")
** 'QHostAddress' does not name a type (points to: QHostAddress IPAddress;)
** 'IPAddress' undeclared (first use this function)(points to: correct = IPAddress.setAddress(robotAddress);)
** (Each undeclared identifier is reported only once for each function it appears in.) (points to: correct = IPAddress.setAddress(robotAddress);)
This is unlogical because I'm sure that all erros are exsiting in the project.
Hopefully note that I'm compiling over Windows 7 RC. This application is originally is directed to Linux machine. When I try to compile it on Linux, Qt gives me error: make not found.
Please help!
Regards,
Ahmed