Results 1 to 13 of 13

Thread: Serial Port communication

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2008
    Posts
    46
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Serial Port communication

    Ya i did compile . I tried it both on Qt and Qt with VS2005. I don know wats wrong i get a error when i try to compile qextserialport.pro
    This is the error i get.
    Qt Code:
    1. 1>------ Build started: Project: qextserialport, Configuration: Debug Win32 ------
    2. 1>MOC examples\qespta\QespTest.h
    3. 1>MOC examples\qespta\MessageWindow.h
    4. 1>MOC examples\qespta\MainWindow.h
    5. 1>Compiling...
    6. 1>moc_QespTest.cpp
    7. 1>moc_MessageWindow.cpp
    8. 1>moc_MainWindow.cpp
    9. 1>win_qextserialport.cpp
    10. 1>.\win_qextserialport.cpp(343) : warning C4100: 'c' : unreferenced formal parameter
    11. 1>qextserialport.cpp
    12. 1>qextserialbase.cpp
    13. 1>QespTest.cpp
    14. 1>posix_qextserialport.cpp
    15. 1>c:\Documents and Settings\Shyam\Desktop\Q Network\qextserialport\termios.h(9) : error C2143: syntax error : missing ';' before '<class-head>'
    16. 1>c:\Documents and Settings\Shyam\Desktop\Q Network\qextserialport\termios.h(9) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    17. 1>c:\Documents and Settings\Shyam\Desktop\Q Network\qextserialport\termios.h(129) : fatal error C1189: #error : "Struct termios undefined on your architecture"
    18. 1>MessageWindow.cpp
    19. 1>.\examples\qespta\MessageWindow.cpp(93) : error C2061: syntax error : identifier '{ctor}'
    20. 1>.\examples\qespta\MessageWindow.cpp(121) : error C2061: syntax error : identifier '{ctor}'
    21. 1>MainWindow.cpp
    22. 1>main.cpp
    23. 1>Generating Code...
    24. 1>Build log was saved at "file://c:\Documents and Settings\Shyam\Desktop\Q Network\qextserialport\debug\BuildLog.htm"
    25. 1>qextserialport - 5 error(s), 1 warning(s)
    26. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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: Serial Port communication

    So you didn't compile it. The build failed. It seems that you forgot to run qmake or something. Looks like the compiler tries to compile the unix version.

  3. #3
    Join Date
    Mar 2008
    Posts
    46
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Serial Port communication

    Hey i did run qmake. Hey this is what i did before i cud compile it in VS

    qmake -project
    qmake projectname.pro
    nmake projectname.pro
    qmake -tp vc projectname.pro

    But no luck i keep getting this error. I even tried the pre compile version of qextserialport lib.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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: Serial Port communication

    You shouldn't have issued "qmake -project". Go ahead and read the docs about what it does.

Similar Threads

  1. C++ Library for serial communication
    By dec0ding in forum General Programming
    Replies: 7
    Last Post: 8th July 2007, 18:18
  2. serial port and USB communication
    By shamik in forum Qt Programming
    Replies: 5
    Last Post: 4th December 2006, 10:40
  3. Serial Port access in Qt
    By Doug Broadwell in forum Newbie
    Replies: 2
    Last Post: 18th October 2006, 21:03
  4. Serial Port Communication
    By soldstatic in forum Qt Programming
    Replies: 6
    Last Post: 22nd June 2006, 16:05
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.