MCC DAQ Linux Drivers...
On mccdaq.com, there is a link to download linux drivers for Measurement Computing's products; however, there is no technical support available from the company to help actually install the drivers.
I'm a linux noob, and I really need some help with this. Does anyone have any ideas? Much appreciated. |
I took a quick look, and it appears that the packages require you to build the drivers from the source code that makes up the driver package. You unpack the tarball, and run make. This will result in kernel drivers (xxxx.ko for 2.6 kernels), which you load at runtime with modprobe or insmod. There seems to be a udev configuration file, which should allow you to set up properly configured drivers at boot time.
There is paid support available from MCC, and the driver author's name and contact information is all over the source packages. In the package I downloaded, the included README file provides more detailed information about what I've written here. --- rod. |
When I run make, I get this error:
Quote:
|
By the way, thank you for your prompt response, Rod.
I was not aware of the paid support service; however, I don't think would use it unless exhausted all other options. :) |
Okay, so after installing the gcc, libhid, libusb, and libusb-dev packages and running make again, I get this error:
Quote:
|
The error message is saying than the linker (/usr/bin/ld) cannot find the sytandard C library, and the math library. Usually, a properly installed toolchain will know where to find those, since they are integral parts of the toolchain itself. Does your build host have a libm.so and libc.so somewhere? What is the output of
Code:
gcc -print-search-dirs --- rod. |
Quote:
Usually all dependencies get installed with g++ or gcc-c++ : Different package names for different OS's. Ubuntu : libc6-dev linux-libc-dev Fedora : glibc-devel kernel-headers |
Quote:
Code:
install: /usr/lib/gcc/i686-redhat-linux/4.6.1/ |
@knudfl
Code:
[root@fedora pps]# yum install glibc-devel |
Okay, so it looks like the glibc-devel package is installed, but what about glibc itself? I cannot imagine a working system that doesn't have glibc.so.something. The Makefile must be specifying some odd compiler switch '-L'.
I'm not sure what usually provides libm; perhaps you can use your package manager to look it up for your distro. As far as I know, it should have come with gcc as well. Put the follwing code in a C source file, lmath.c Code:
#include <stdio.h> Code:
make CFLAGS+=--verbose LDFLAGS+=-lm lmath --- rod. |
Quote:
After stumbling upon a similar problem that someone else had on another forum site, I found that running dmesg | tail displayed information that confirmed that the USB device was being read. Code:
[root@fedora input]# dmesg | tail |
That is simply telling you that the USB driver layer (upon which your driver depends) is finding the device. Your driver will use that to find and communicate with the data acquisition device. Your findings will be useful once you get the driver built and loaded. Right now, you need to focus on the driver build, or have you solved that?
--- rod. |
Yes, I ran the make install on the untar-red file and got it all to compile.
Edit: I would give more detail, but I did all of that yesterday, trying all kinds of different things to get it working, and to be honest I don't remember everything I updated. |
Quote:
Code:
[pps@fedora ~]$ make CFLAGS+=--verbose LDFLAGS+=-lm lmath |
I know I'm flooding you with posts now, but after compiling the lmath.c program, the output is: 0.000000
Pretty sure that's not right... ;) |
All times are GMT -5. The time now is 03:25 AM. |