Results 1 to 6 of 6

Thread: Problem in QExtserialport program.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Problem in QExtserialport program.

    Add __declspec(dllexport) after word "class" and before the actual class name in QExtSerialPort and QExtSerialBase classes and rebuild the library.

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

    Default Re: Problem in QExtserialport program.

    Hi Wysota i did what you told but i get a new error
    ------ Build started: Project: RS232_Receive, Configuration: Debug Win32 ------
    Uic'ing c:\qextserialport-1.2win-alpha\qextserialport-1.2win-alpha\examples\RS232_Receive\RS232_Receive\rs232_r eceive.ui...
    Moc'ing rs232_receive.h...
    Compiling...
    moc_rs232_receive.cpp
    rs232_receive.cpp
    main.cpp
    Generating Code...
    Linking...
    LINK : fatal error LNK1181: cannot open input file 'Files\Microsoft.obj'
    Also i had another doubt Wysota
    I am actually trying to retrive data from serial port and dump it into the Sqlite db. Can you pls tell me how i need to dump the retrived data into the db. I have attached the project file pls check for where i am going wrong.


    Thank You
    Attached Files Attached Files

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

    Default Re: Problem in QExtserialport program.

    Looks like you have a white space in your path and some tools don't like it. Search the forum for similar issues.

  4. #4
    Join Date
    Aug 2006
    Posts
    250
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    19
    Thanked 49 Times in 36 Posts

    Default Re: Problem in QExtserialport program.

    Yes, make sure that none of your linker paths (like LIBS += -L"some path") have spaces in them. It won't work. That Files\Microsoft.obj is from a path in Program Files. Move the lib somewhere else without spaces.

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

    Default Re: Problem in QExtserialport program.

    Hi wysota and pherthyl thanks for the reply. I managed to remove the errors . I created a pro file and added the configuration settings. And all the errors vanished.



    Thank You

Similar Threads

  1. Replies: 6
    Last Post: 22nd November 2016, 13:57
  2. QProcess problem (Main program hangs)
    By sincnarf in forum Qt Programming
    Replies: 5
    Last Post: 11th October 2007, 09:26
  3. problem in doing database program
    By wei243 in forum Qt Programming
    Replies: 0
    Last Post: 4th April 2007, 12:01
  4. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19
  5. Console Program Problem
    By ball in forum Qt Programming
    Replies: 9
    Last Post: 28th May 2006, 09: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.