Results 1 to 3 of 3

Thread: Qextserialport on windows

  1. #1
    Join Date
    Sep 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question Qextserialport on windows

    hii

    i am trying to use qextserialport in Qt. i have downloaded the library from sourceforge.net ("http://sourceforge.net/projects/qextserialport/")
    then i open the qextserialport.pro in qt creator and after running it ,qt creator give some error as follows

    1.qextserialenumerator.obj:-1: error: LNK2019: unresolved external symbol __imp__RegQueryValueExW@24 referenced in function "private: static class QString __cdecl QextSerialEnumerator::getRegKeyValue(struct HKEY__ *,unsigned short const *)" (?getRegKeyValue@QextSerialEnumerator@@CA?AVQStrin g@@PAUHKEY__@@PBG@Z)

    2.qextserialenumerator.obj:-1: error: LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function "private: static void __cdecl QextSerialEnumerator::setupAPIScan(class QList<struct QextPortInfo> &)" (?setupAPIScan@QextSerialEnumerator@@CAXAAV?$QList @UQextPortInfo@@@@@Z)

    3.build\qextserialportd.dll:-1: error: LNK1120: 2 unresolved externals


    i am using Qt4.8.2 on windows 7

    please guide me how to use qextserialport lib

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: Qextserialport on windows

    It looks like your windows includes are not kicking in, probably due to a missing define.
    Have a look a QextSerialPort documentation, and header files, see which defines need to be defined for a windows build.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 284 Times in 279 Posts

    Default Re: Qextserialport on windows

    Quote Originally Posted by sumitmak86 View Post
    hii

    i am trying to use qextserialport in Qt. i have downloaded the library from sourceforge.net ("http://sourceforge.net/projects/qextserialport/")
    then i open the qextserialport.pro in qt creator and after running it ,qt creator give some error as follows
    This page is inactive. Go to new qextserialport

Similar Threads

  1. qextserialport cant open ports in windows 7
    By manaila in forum Newbie
    Replies: 4
    Last Post: 16th April 2012, 16:40
  2. Installing QextSerialPort on windows
    By gawauter in forum Installation and Deployment
    Replies: 4
    Last Post: 25th December 2011, 06:22
  3. Linking QextSerialPort on Windows
    By msr in forum Qt Programming
    Replies: 0
    Last Post: 1st October 2011, 22:56
  4. Serial comms on Windows Pc (Qextserialport)
    By SteveH in forum Qt Programming
    Replies: 19
    Last Post: 11th June 2010, 00:05
  5. Problem with qextserialport for Qt 4.5.2 for windows
    By viniciuscst in forum Qt Programming
    Replies: 1
    Last Post: 9th November 2009, 22:01

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.