Difference between revisions of "PHCC Serial"
From PHCC
(New page: When you write software for PHCC which talks to the hardware directly via serial port, please use this library. Its written in C++, and released under the LGPL (Library/Lesser GNU Public ...) |
|||
Line 22: | Line 22: | ||
Here are two files, a ZIP file for windows users, and a tar.gz for Linux/Unix users. Apart from the file format, the only difference is that the Makefile in the .zip defaults to building for windows. | Here are two files, a ZIP file for windows users, and a tar.gz for Linux/Unix users. Apart from the file format, the only difference is that the Makefile in the .zip defaults to building for windows. | ||
− | {{ | + | {{DownloadGuess|file=PHCC_Serial_20050308.zip|fileext=zip|desc=C++ classes for PHCC_Serial, Windows Platforms}}<br> |
− | {{ | + | {{DownloadGuess|file=PHCC_Serial_20050308.tar.gz|fileext=tar.gz|desc=C++ classes for PHCC_Serial, Unix/Linux/Mac Platforms}} |
Revision as of 23:45, 12 January 2009
When you write software for PHCC which talks to the hardware directly via serial port, please use this library.
Its written in C++, and released under the LGPL (Library/Lesser GNU Public License).
There is a tiny test program in the archive that shows basic usage. The testprogram itself is licensed under the GPL.
This library can be compiled under Windows and under Linux (and probably several other unices). I tested it by cross-compiling it for windows under linux.
To compile it under Windows, the free Mingw compiler (http://www.mingw.org/) is sufficient. The supplied Makefile should work out of the box under Mingw and under Linux.
There is one variable at the beginning of the Makefile: WIN32 if you set WIN32=1 it will build for windows.
If you use another compiler or want to build manually, then you have to define "__WIN32__" to build the windows version. For some compilers, you'd supply this as a commandline switch:"-D__WIN32__".
If you find bugs,... please report them in the "Bugs" section of the forum.
Here are two files, a ZIP file for windows users, and a tar.gz for Linux/Unix users. Apart from the file format, the only difference is that the Makefile in the .zip defaults to building for windows.
Download | Description | ||
---|---|---|---|
[[Media:{{{filename}}}.zip]] | C++ classes for PHCC_Serial, Windows Platforms | ||
Type | ZIP Compressed Archive | ||
Size | "{{{filename}}}.zip" is not a valid title |
Download | Description | ||
---|---|---|---|
[[Media:{{{filename}}}.tar.gz]] | C++ classes for PHCC_Serial, Unix/Linux/Mac Platforms | ||
Type | GZIP Compressed Tar Archive | ||
Size | "{{{filename}}}.tar.gz" is not a valid title |