LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with DAQ driver for Linux

Hello:

I need some help. I have a PC with Linux and Windows and I want to use
an AT-MIO-16-DE DAQ board with LabVIEW for Linux, Debian-2.2.
I downloaded de the edaq-0.9.2 of the web site but when I compile the
driver I get a lot of warning and errors after the make command, a part
of the list of errors is the following:

lab-remoto1:/edaq-0.9.2# make
for i in driver lib tests; do cd "$i"; make; cd ..; done
make[1]: Entering directory `/edaq-0.9.2/driver'
gcc -Wall -Wstrict-prototypes -pipe -O -fomit-frame-pointer
-fvolatile-global -DMODULE -D__KERNEL__ -DDAQ_DEBUG -c daq_driver.c
In file included from daq_driver.c:3:
/usr/include/asm/signal.h:173: parse error before `size_t'
/usr/include/asm/signal.h:173: warning: no semicolon at end of struct or
union
/usr/include/asm/signal.h:174: warning: data definition has no type or
storage class
In file included from /usr/include/linux/fs.h:262,
from /usr/include/linux/capability.h:13,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:8,
from daq_driver.c:4:
/usr/include/linux/hpfs_fs_i.h:5: parse error before `ino_t'
/usr/include/linux/hpfs_fs_i.h:5: warning: no semicolon at end of struct
or union
/usr/include/linux/hpfs_fs_i.h:12: parse error before `:'
In file included from /usr/include/linux/fs.h:264,
from /usr/include/linux/capability.h:13,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:8,
from daq_driver.c:4:
/usr/include/linux/msdos_fs_i.h:36: parse error before `off_t'
/usr/include/linux/msdos_fs_i.h:36: warning: no semicolon at end of
struct or union
In file included from /usr/include/linux/fs.h:265,
from /usr/include/linux/capability.h:13,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:8,
from daq_driver.c:4:
/


CAN SOMEONE HELP ME WITH THE INSTALLATION?
0 Kudos
Message 1 of 2
(2,932 Views)
Are you using LOADLIN from Windows?

It seems that your compiler and linux installation wrong for this
driver.
I have an experience of compiling this driver for kernel 2.2.x. In most
cases it's compiled OK.
Most your errors coming from gcc compiler and kernel source files and it
seems that you should try to use normal linux and gcc installation.
Read instructions and try to check your gcc version "gcc -v" and compare
it with recommended in doc's.

Note that this is beta driver and doesn't support DMA and some features
in this version.

LabVIEW trials was failed for me, so if it's comercial installation, I'd
recommend to wait before NIDAQ for linux will be released.

--
Sergey Krasnishov
____________________________________
Automated Control Systems
National Instruments Alliance Member
Moscow, Russia
sergey_acs@levsha.ru
http://acs.levsha.ru

Ricardo Leal wrote:
>
> Hello:
>
> I need some help. I have a PC with Linux and Windows and I want to use
> an AT-MIO-16-DE DAQ board with LabVIEW for Linux, Debian-2.2.
> I downloaded de the edaq-0.9.2 of the web site but when I compile the
> driver I get a lot of warning and errors after the make command, a part
> of the list of errors is the following:
>
> lab-remoto1:/edaq-0.9.2# make
> for i in driver lib tests; do cd "$i"; make; cd ..; done
> make[1]: Entering directory `/edaq-0.9.2/driver'
> gcc -Wall -Wstrict-prototypes -pipe -O -fomit-frame-pointer
> -fvolatile-global -DMODULE -D__KERNEL__ -DDAQ_DEBUG -c daq_driver.c
> In file included from daq_driver.c:3:
> /usr/include/asm/signal.h:173: parse error before `size_t'
> /usr/include/asm/signal.h:173: warning: no semicolon at end of struct or
> union
> /usr/include/asm/signal.h:174: warning: data definition has no type or
> storage class
> In file included from /usr/include/linux/fs.h:262,
> from /usr/include/linux/capability.h:13,
> from /usr/include/linux/binfmts.h:5,
> from /usr/include/linux/sched.h:8,
> from daq_driver.c:4:
> /usr/include/linux/hpfs_fs_i.h:5: parse error before `ino_t'
> /usr/include/linux/hpfs_fs_i.h:5: warning: no semicolon at end of struct
> or union
> /usr/include/linux/hpfs_fs_i.h:12: parse error before `:'
> In file included from /usr/include/linux/fs.h:264,
> from /usr/include/linux/capability.h:13,
> from /usr/include/linux/binfmts.h:5,
> from /usr/include/linux/sched.h:8,
> from daq_driver.c:4:
> /usr/include/linux/msdos_fs_i.h:36: parse error before `off_t'
> /usr/include/linux/msdos_fs_i.h:36: warning: no semicolon at end of
> struct or union
> In file included from /usr/include/linux/fs.h:265,
> from /usr/include/linux/capability.h:13,
> from /usr/include/linux/binfmts.h:5,
> from /usr/include/linux/sched.h:8,
> from daq_driver.c:4:
> /
>
> CAN SOMEONE HELP ME WITH THE INSTALLATION?
0 Kudos
Message 2 of 2
(2,932 Views)