|
Re: Serial port DLM for UNIX ? [message #69725 is a reply to message #69719] |
Tue, 09 February 2010 15:25  |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Feb 9, 7:59 pm, nata <bernat.puigdomen...@gmail.com> wrote:
> It seems that the DLM only works under Windows and I'm wondering WHY ?
Because the API to access the serial port is very different between
Windows and Linux.
> It seems that there are some ways to recompile the source code
> depending on the IDL version but always under Windows.
> Taking in a count that this a simple C code I suppose that there is a
> way to use the DLM under LINUX. But how ?
The C program does not have to be complicated to be incompatible. It
was written to use the API provided by Windows, which is why you
cannot even get it to compile under Linux.
You will need to find something else that has similar functionality,
but was written for Linux. Even if yo find it, due the the large
variation between Linux distributions, it may not be simple to get to
work on yours.
|
|
|
Re: Serial port DLM for UNIX ? [message #69726 is a reply to message #69725] |
Tue, 09 February 2010 14:22  |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
OK, I found the MAKE_DLL procedure and I tried that:
cd, '.', dir
make_dll, 'serial', 'serial', ['COMM_OPEN','COMM_CLOSE'],
input_dir=dir
It doesn't work but maybe this is the correct way. I have a lot of C
compilation problems....
nata
|
|
|