Results 1 to 12 of 12

Thread: gui application for serial port communication

Hybrid View

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

    Default Re: gui application for serial port communication

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

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

    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.

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

    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?

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

    jerkymotion (9th March 2011)

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

    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

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

    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

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

    jerkymotion (9th March 2011)

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

    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

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

    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.

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

    jerkymotion (9th March 2011)

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

    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
  •  
Qt is a trademark of The Qt Company.