Results 1 to 8 of 8

Thread: Non logical Errors - qmake

  1. #1
    Join Date
    Jun 2009
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question Non logical Errors - qmake

    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:

    Qt Code:
    1. Running build steps for project RemoteController...
    2. Configuration unchanged, skipping QMake step.
    3. Starting: C:/Qt/2009.02/mingw/bin/mingw32-make.exe -w
    4. C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Entering directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
    5. c:\Qt\2009.02\qt\bin\qmake.exe -spec c:\Qt\2009.02\qt\mkspecs\win32-g++ -win32 CONFIG+=release -o Makefile RemoteController.pro
    6. C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Leaving directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
    7. mingw32-make.exe: Entering directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
    8. C:/Qt/2009.02/mingw/bin/mingw32-make.exe -f Makefile.Release
    9. mingw32-make.exe[1]: Entering directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
    10. 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
    11. In file included from ConnectionDialog.cpp:4:
    12. ConnectionDialog.h:4:24: QHostAddress: No such file or directory
    13. In file included from ConnectionDialog.cpp:4:
    14. ConnectionDialog.h:32: error: `QHostAddress' does not name a type
    15. ConnectionDialog.cpp: In member function `bool ConnectionDialog::validateIPAddressFormat()':
    16. ConnectionDialog.cpp:71: error: `IPAddress' undeclared (first use this function)
    17. ConnectionDialog.cpp:71: error: (Each undeclared identifier is reported only once for each function it appears in.)
    18. mingw32-make.exe[1]: Leaving directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
    19. mingw32-make.exe: Leaving directory `C:/Users/Ahmed Mahdy/Desktop/Project Code/Linux PC/Under Test/RemoteController/RemoteController'
    20. mingw32-make.exe[1]: *** [release/ConnectionDialog.o] Error 1
    21. mingw32-make.exe: *** [release] Error 2
    22. Exited with code 2.
    23. Error while building project RemoteController
    24. When executing build step 'Make'
    To copy to clipboard, switch view to plain text mode 

    ** 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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Non logical Errors - qmake

    Add QT+=network to your qmake project file.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jun 2009
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Non logical Errors - qmake

    That worked well, Now I got another sequence of errors related to the Qwt Widgets library.

    I'm not sure how can I include Qwt files into the Qt source so that I can call it like any library. I've compiled it and put it into C:\Qwt

    Can you please help in that?

    Thanks,
    Ahmed

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Non logical Errors - qmake

    Add
    qmake Code:
    1. LIBS += -LC:/Qwt -lqwt
    To copy to clipboard, switch view to plain text mode 
    to the project file.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Jun 2009
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Non logical Errors - qmake

    That code didn't work! Still same errors

    Qt Code:
    1. Running build steps for project RemoteController...
    2. Starting: C:/Qt/2009.02/qt/bin/qmake.exe C:/Qt/Projects/RemoteController/RemoteController.pro -spec win32-g++ -r CONFIG+=release
    3. Exited with code 0.
    4. Starting: C:/Qt/2009.02/mingw/bin/mingw32-make.exe -w
    5. C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Entering directory `C:/Qt/Projects/RemoteController'
    6. C:/Qt/2009.02/mingw/bin/mingw32-make.exe -f Makefile.Release
    7. mingw32-make.exe[1]: Entering directory `C:/Qt/Projects/RemoteController'
    8. 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"..\..\2009.02\qt\include\QtCore" -I"..\..\2009.02\qt\include\QtGui" -I"..\..\2009.02\qt\include" -I"." -I"..\..\2009.02\qt\include\ActiveQt" -I"release" -I"." -I"..\..\2009.02\qt\mkspecs\win32-g++" -o release\gpsview.o gpsview.cpp
    9. In file included from ImageView.h:10,
    10. from ui_MainWindow.h:27,
    11. from MainWindow.h:5,
    12. from gpsview.cpp:5:
    13. VideoFrameThread.h:4:21: QtNetwork: No such file or directory
    14. In file included from ui_MainWindow.h:29,
    15. from MainWindow.h:5,
    16. from gpsview.cpp:5:
    17. plotview.h:8:27: qwt_scale_map.h: No such file or directory
    18. plotview.h:9:28: qwt_plot_curve.h: No such file or directory
    19. plotview.h:10:24: qwt_symbol.h: No such file or directory
    20. In file included from ui_MainWindow.h:29,
    21. from MainWindow.h:5,
    22. from gpsview.cpp:5:
    23. plotview.h:35: error: `QwtPlotCurve' does not name a type
    24. plotview.h:44: error: `QwtScaleMap' does not name a type
    25. plotview.h:45: error: `QwtScaleMap' does not name a type
    26. In file included from ui_MainWindow.h:30,
    27. from MainWindow.h:5,
    28. from gpsview.cpp:5:
    29. sensorsview.h:42: error: `QwtPlotCurve' does not name a type
    30. sensorsview.h:51: error: `QwtScaleMap' does not name a type
    31. sensorsview.h:52: error: `QwtScaleMap' does not name a type
    32. In file included from MainWindow.h:7,
    33. from gpsview.cpp:5:
    34. ConnectionDialog.h:4:24: QHostAddress: No such file or directory
    35. In file included from MainWindow.h:7,
    36. from gpsview.cpp:5:
    37. ConnectionDialog.h:32: error: `QHostAddress' does not name a type
    38. In file included from MainWindow.h:8,
    39. from gpsview.cpp:5:
    40. EyeCreateRobot.h:31: error: `QTcpSocket' does not name a type
    41. In file included from gpsview.cpp:5:
    42. MainWindow.h:10:25: qwt_compass.h: No such file or directory
    43. MainWindow.h:11:30: qwt_compass_rose.h: No such file or directory
    44. MainWindow.h:12:29: qwt_dial_needle.h: No such file or directory
    45. In file included from gpsview.cpp:5:
    46. MainWindow.h:16: error: expected class-name before '{' token
    47. MainWindow.h: In constructor `QwtCompassNoMouse::QwtCompassNoMouse(QWidget*)':
    48. MainWindow.h:19: error: class `QwtCompassNoMouse' does not have any field named `QwtCompass'
    49. gpsview.h: In constructor `GPSView::GPSView(QWidget*)':
    50. gpsview.h:72: warning: `GPSView::m_parent' will be initialized after
    51. gpsview.h:69: warning: `GPSDataThread GPSView::m_thread'
    52. gpsview.cpp:10: warning: when initialized here
    53. gpsview.cpp: In member function `void GPSView::populateScene()':
    54. gpsview.cpp:216: warning: converting to `int' from `float'
    55. gpsview.cpp:217: warning: converting to `int' from `float'
    56. gpsview.cpp: In member function `bool GPS_Path::getNextPoint(GPS_Point&)':
    57. gpsview.cpp:277: warning: comparison between signed and unsigned integer expressions
    58. mingw32-make.exe[1]: *** [release/gpsview.o] Error 1
    59. mingw32-make.exe[1]: Leaving directory `C:/Qt/Projects/RemoteController'
    60. C:\Qt\2009.02\mingw\bin\mingw32-make.exe: Leaving directory `C:/Qt/Projects/RemoteController'
    61. C:\Qt\2009.02\mingw\bin\mingw32-make.exe: *** [release] Error 2
    62. Exited with code 2.
    63. Error while building project RemoteController
    64. When executing build step 'Make'
    To copy to clipboard, switch view to plain text mode 

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Non logical Errors - qmake

    Did you add Qwt to your project at all as stated in its docs?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Jun 2009
    Posts
    5
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Non logical Errors - qmake

    I don't know. Can you guide me?

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Non logical Errors - qmake

    Include qwtconfig.pri in your project.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. qmake sux a lot
    By singermornings in forum Qt Programming
    Replies: 6
    Last Post: 29th January 2009, 08:33
  2. Qt 4.3.1 & MinGW 5.1.3 & MSYS 1.0 qmake problem
    By mdecandia in forum Installation and Deployment
    Replies: 2
    Last Post: 2nd October 2008, 16:52
  3. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  5. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 8th March 2006, 23:11

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.