Results 1 to 12 of 12

Thread: Serial communication program in QT

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Serial communication program in QT

    Do you have QtCreator on your system ?
    If so, create a simple 'hello world' application and try to run and compile that. If this is OK, then your Qt installation is (probably) OK.
    Then, open the qextserialport.pro file using Qt Creator and do a 'build all'

    By the way, you didn't put the qextserialport source under the src directory of Qt itself did you ? You should put things like this in your own personal folder where you keep your Qt projects.

    Regards,
    Marc

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

    Default Re: Serial communication program in QT

    g++ -c -pipe -Wall -W -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_REENTRANT -fPIC -D_TTY_POSIX_ -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/lib/qt-3.3/include -Ibuild/moc/ -o build/obj/qextserialbase.o
    qextserialbase.cpp
    In file included from qextserialbase.cpp:2:


    qextserialbase.h:5:21: error: QIODevice: No such file or directory
    You don't have Qt4 installed.
    You need Qt4.
    Install Qt4 first.
    Or get a previous version of QextSerialPort which is based on Qt3.
    ==========================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 2011
    Posts
    15
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Serial communication program in QT

    Quote Originally Posted by marcvanriet View Post
    Do you have QtCreator on your system ?
    If so, create a simple 'hello world' application and try to run and compile that. If this is OK, then your Qt installation is (probably) OK.
    Then, open the qextserialport.pro file using Qt Creator and do a 'build all'

    By the way, you didn't put the qextserialport source under the src directory of Qt itself did you ? You should put things like this in your own personal folder where you keep your Qt projects.

    Regards,
    Marc



    Hi Marc,

    great!!! I cud get .so files
    Now i will copy those files to usr/lib folder to access qextserial port as global class.

    anything else i need to be consider before doing so?? I mean to tell setting path or changing .pro file?

Similar Threads

  1. serial communication
    By klitsuk in forum Qt Programming
    Replies: 10
    Last Post: 24th September 2009, 01:21
  2. serial communication
    By klitsuk in forum Qt Programming
    Replies: 1
    Last Post: 10th March 2009, 15:22
  3. serial communication
    By semden in forum Qt Programming
    Replies: 2
    Last Post: 13th February 2009, 09:57
  4. serial communication programming
    By jagadish in forum Qt Programming
    Replies: 1
    Last Post: 30th August 2007, 07:47
  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.