Results 1 to 12 of 12

Thread: gui application for serial port communication

  1. #1
    Join Date
    Mar 2011
    Posts
    35
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default gui application for serial port communication

    i have to develop an GUI application based on serial port communication, I have downloaded QT SDK 2010.05 and installed it and again I downloaded qextserialport-1.2win-alpha Now i have extracted it in my c:\qextserial(folder), i can't find the file "qextserialport.dll" and "libqextserialport.a" . what should i do?

  2. #2
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: gui application for serial port communication

    this is not a Qt problem and please stop opening so many similar topics:
    http://www.qtcentre.org/threads/3943...ht=#post181069

    please note that the qextserialport project is now hosted on google code as was explained in your other post.
    You have to build the library yourself.

  3. #3
    Join Date
    Mar 2011
    Posts
    35
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: gui application for serial port communication

    what isn't this forum for helping qt user

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: gui application for serial port communication

    Quote Originally Posted by jerkymotion View Post
    what isn't this forum for helping qt user
    Yes of course, but only if both sides are willing. Helping does not mean to do the work for you and present you the result. If we should help, then we expect that you also are willing to do your part. And as I can see, your problem is not about serial port, it is about basic understanding using a library. Have you read the documentation about how to use dynamic libraries? (See the qmake documentation and LIBS as a starting point.)

  5. The following user says thank you to Lykurg for this useful post:

    jerkymotion (9th March 2011)

  6. #5
    Join Date
    Mar 2011
    Posts
    35
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: gui application for serial port communication

    .....ya but it says .....cannot find -lqextserialport......I am using windows 7...what should i do???

  7. #6
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: gui application for serial port communication

    please try to build the enumerator example that comes with qextserialport and try running it. Then study the enumerator project - that is how you use the qextserialport library.

  8. #7
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: gui application for serial port communication

    Quote Originally Posted by jerkymotion View Post
    .....ya but it says .....cannot find -lqextserialport......I am using windows 7...what should i do???
    Well, does the name of the DLL match? Is it in the linker search path? If you downloaded the source code of the library, did it build successfully?

  9. The following user says thank you to squidge for this useful post:

    jerkymotion (9th March 2011)

  10. #8
    Join Date
    Mar 2011
    Posts
    35
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: gui application for serial port communication

    I downloaded and extracted it... c:\qextserial(folder) and opened the .pro file using qt...
    After that I tried to run it but a dialoag window appeared asking for a executable path ...and I had no Idea what to do....but after a while it did created the dll and libqextserialport.a but....when I tried to run other pro filess...an error message appears cannot find -lqextserialport and collect2:ld returnd 1 exit status

  11. #9
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: gui application for serial port communication

    Quote Originally Posted by jerkymotion View Post
    I downloaded and extracted it... c:\qextserial(folder) and opened the .pro file using qt...
    After that I tried to run it but a dialoag window appeared asking for a executable path ...and I had no Idea what to do....but after a while it did created the dll and libqextserialport.a but....when I tried to run other pro filess...an error message appears cannot find -lqextserialport and collect2:ld returnd 1 exit status
    make sure you have the latest version from google code project page.
    You can't run the library, but you can run the examples.

    step 1: download (latest) qextserialport code
    step 2: open qextserialport.pro and build
    step 3: check that the examples where built under the 'examples' directory, if not just open the corresponding .pro file from one of the examples and build it (successful step 2 is required for this)
    step 4: run one of the examples
    step 5: study one of the examples to learn how to 'use' the qextserialport library

  12. The following user says thank you to schnitzel for this useful post:

    jerkymotion (9th March 2011)

  13. #10
    Join Date
    Mar 2011
    Posts
    35
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: gui application for serial port communication

    here is the screen shot of what I get when I try to run my .pro file of qextserialport...after building the .pro file..
    now i have no idea which path to provide to run
    Attached Images Attached Images

  14. #11
    Join Date
    Oct 2009
    Posts
    364
    Thanks
    10
    Thanked 37 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: gui application for serial port communication

    Quote Originally Posted by jerkymotion View Post
    here is the screen shot of what I get when I try to run my .pro file of qextserialport...after building the .pro file..
    now i have no idea which path to provide to run
    you CAN'T run a library. The main project file is not intended to be run as an application.

    try running the examples instead and study the .pro file for the enumerator example.

  15. The following user says thank you to schnitzel for this useful post:

    jerkymotion (9th March 2011)

  16. #12
    Join Date
    Mar 2011
    Posts
    35
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: gui application for serial port communication

    THANKS schnitzel ....now I have successfully build the libraries and run the application as well
    CHEERS

Similar Threads

  1. Replies: 13
    Last Post: 8th August 2012, 08:26
  2. Serial Port communication
    By mgurbuz in forum Qt Programming
    Replies: 12
    Last Post: 22nd January 2011, 02:38
  3. Replies: 1
    Last Post: 1st July 2009, 00:37
  4. serial port and USB communication
    By shamik in forum Qt Programming
    Replies: 5
    Last Post: 4th December 2006, 10:40
  5. Serial Port Communication
    By soldstatic in forum Qt Programming
    Replies: 6
    Last Post: 22nd June 2006, 16:05

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.