Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 6

Qt-interest Archive, July 2007
QextSerialPort: windows.h missing


Message 1 in thread

Hello.

Not sure if discussions about unofficial classes are undesired here.

http://qextserialport.sourceforge.net/
The current version 1.1 comes with an example code. After fixing an case 
sensitive issue there it is compiling and working. Seems to be a "Windows 
example":

/* qesptest.cpp
 **************************************/
-#include "QespTest.h"
+#include "qesptest.h"

Now taking the example and using
#include <qextserialport.h>
in my project it compilation fails with

	/usr/local/include/win_qextserialport.h:11:21: error: windows.h: 
	No such file or directory

It's Linux.

Regards,
Massimo

--
 [ signature omitted ] 

Message 2 in thread

Quoting Massimo Burcheri <burcheri@xxxxxxx>:

windows.h is only available on Windows. You might be able to build the  
code using wine but I wouldn't expect it to work.

> Hello.
>
> Not sure if discussions about unofficial classes are undesired here.
>
> http://qextserialport.sourceforge.net/
> The current version 1.1 comes with an example code. After fixing an case
> sensitive issue there it is compiling and working. Seems to be a "Windows
> example":
>
> /* qesptest.cpp
>  **************************************/
> -#include "QespTest.h"
> +#include "qesptest.h"
>
> Now taking the example and using
> #include <qextserialport.h>
> in my project it compilation fails with
>
> 	/usr/local/include/win_qextserialport.h:11:21: error: windows.h:
> 	No such file or directory
>
> It's Linux.
>
> Regards,
> Massimo
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx   
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>



-- 
 [ signature omitted ] 

Message 3 in thread

On Friday 27 July 2007 09:11, Pau Garcia i Quiles wrote:
> windows.h is only available on Windows. You might be able to build the  
> code using wine but I wouldn't expect it to work.

The question is how to use QextSerialPort.
I don't see why it looks for windows.h since the qespta example code is 
working. Is there some modification about the Makefile needed?

My used flags are:
	-lqextserialport

Regards,
Massimo

--
 [ signature omitted ] 

Message 4 in thread

Does your .pro looks like the QESPTA.pro file, eg. does it have the
following lines:

LIBS          += -lqextserialport

unix:DEFINES   = _TTY_POSIX_
win32:DEFINES  = _TTY_WIN_ QWT_DLL QT_DLL

P-E

On 7/27/07, Massimo Burcheri <burcheri@xxxxxxx> wrote:
>
> On Friday 27 July 2007 09:11, Pau Garcia i Quiles wrote:
> > windows.h is only available on Windows. You might be able to build the
> > code using wine but I wouldn't expect it to work.
>
> The question is how to use QextSerialPort.
> I don't see why it looks for windows.h since the qespta example code is
> working. Is there some modification about the Makefile needed?
>
> My used flags are:
>         -lqextserialport
>
> Regards,
> Massimo
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>


-- 
 [ signature omitted ] 

Message 5 in thread

On Friday 27 July 2007 16:10, Pierre-Étienne Messier wrote:

> LIBS          += -lqextserialport
>
> unix:DEFINES   = _TTY_POSIX_
> win32:DEFINES  = _TTY_WIN_ QWT_DLL QT_DLL

Thank you very much. Looking at the example Makefile I noticed

	DEFINES       = -D_TTY_POSIX_

On kdevelop that is being set by subproject configuration,
	
	Defines: _TTY_POSIX_


Regards,
  Massimo

--
 [ signature omitted ]