Results 1 to 2 of 2

Thread: Build issues when qextsrialport.h is included in Linux prog

  1. #1
    Join Date
    Mar 2011
    Posts
    15
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Build issues when qextsrialport.h is included in Linux prog

    Hiiii,

    for serial communication program in QT qextsrialport classes are downloaded from net. It successfully compile and .so files are also obtained. It is said that its cross platform can work on both windows and Linux.

    Now am developing my application in QT Linux platform and included qextserial.h header. when its compiled its giving error in file qextserial.h as

    windows.h file not there.... etc

    why the hell its referring windows.h?? do I need to make any changes like removing Win_qextserialport.cpp and Win_qextserialport.h files from qextsrialport folder?

    pls tell me what I have missed out

  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: Build issues when qextsrialport.h is included in Linux prog

    I don't know which version of QextSerialPort you have.
    But the issue you have has to do with defines, which are wrong, or not defined.
    There are defines that will cause the correct code to be built under Windows or Linux.
    Either refer to the QextSerailPort documentation, or look at the header files, and see under which #ifdef section the windows code is referred to.
    ==========================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.

Similar Threads

  1. Replies: 7
    Last Post: 31st January 2011, 15:46
  2. exe Build Issues
    By hojoff79 in forum Newbie
    Replies: 1
    Last Post: 19th January 2011, 05:16
  3. Mac OSX Build Issues
    By ETweedale in forum Qt Programming
    Replies: 2
    Last Post: 23rd July 2010, 15:41
  4. Replies: 2
    Last Post: 11th March 2010, 09:46
  5. linux to windows porting issues
    By qtprogrammer12345 in forum Qt Programming
    Replies: 1
    Last Post: 23rd May 2008, 06:45

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.