U12, linux | LabJack
 
LabJack is closed November 26 and 27 for the Thanksgiving holiday.

U12, linux

8 posts / 0 new
Last post
hnasr2001
hnasr2001's picture
U12, linux

Have anyone used U12 under Linux - more specific Centos 6.x 32bit OS?

What drivers do I need to install?

LabJack Support
LabJack Support's picture
We haven't tested the U12 on

We haven't tested the U12 on CentOS specifically, but we do have a general Linux U12 library which should work on it:

https://labjack.com/support/software/installers/u12/u12-mac-and-linux-lj...

hnasr2001
hnasr2001's picture
I followed the link, download

I followed the link, download the Exodriver and ljacklm.zip

during the "libljacklm Library Installation" using make command I am getting hundreds of errors;

[[email protected] libljacklm]# make
cc -fPIC -g -Wall  -c ljacklm.c
ljacklm.c:27:24: error: labjackusb.h: No such file or directory
ljacklm.c:135: error: expected specifier-qualifier-list before 'HANDLE'
ljacklm.c:281: error: expected ')' before 'hDevice'
ljacklm.c: In function 'initializer':
ljacklm.c:306: error: 'LABJACK_INFO' has no member named 'hDevice'
ljacklm.c:307: error: 'LABJACK_INFO' has no member named 'serialNumber'
ljacklm.c:308: error: 'LABJACK_INFO' has no member named 'errorDetected'
ljacklm.c: In function 'finalizer':
ljacklm.c:323: error: 'LABJACK_INFO' has no member named 'hDevice'
ljacklm.c:325: warning: implicit declaration of function 'LJUSB_CloseDevice'
ljacklm.c:325: error: 'LABJACK_INFO' has no member named 'hDevice'
ljacklm.c: In function 'ListAll':
ljacklm.c:6231: error: 'HANDLE' undeclared (first use in this function)
ljacklm.c:6231: error: (Each undeclared identifier is reported only once
ljacklm.c:6231: error: for each function it appears in.)
ljacklm.c:6231: error: expected ';' before 'hDevice'
ljacklm.c:6302: warning: implicit declaration of function 'LJUSB_GetDevCount'
ljacklm.c:6302: error: 'U12_PRODUCT_ID' undeclared (first use in this function)
ljacklm.c:6308: error: 'hDevice' undeclared (first use in this function)
ljacklm.c:6308: warning: implicit declaration of function 'LJUSB_OpenDevice'
ljacklm.c:6313: warning: implicit declaration of function 'GetU12Information'
ljacklm.c: In function 'CloseLabJack':
ljacklm.c:6356: error: 'LABJACK_INFO' has no member named 'hDevice'
ljacklm.c:6382: error: 'LABJACK_INFO' has no member named 'errorDetected'
ljacklm.c: In function 'OpenLabJack':
ljacklm.c:6402: error: 'HANDLE' undeclared (first use in this function)
ljacklm.c:6402: error: expected ';' before 'hDevice'
ljacklm.c:6418: error: 'LABJACK_INFO' has no member named 'hDevice'
ljacklm.c:6427: error: 'LABJACK_INFO' has no member named 'serialNumber'
ljacklm.c:6443: error: 'LABJACK_INFO' has no member named 'hDevice'
ljacklm.c:6447: error: 'LABJACK_INFO' has no member named 'errorDetected'
ljacklm.c:6474: error: 'LABJACK_INFO' has no member named 'hDevice'
ljacklm.c:6475: error: 'LABJACK_INFO' has no member named 'hDevice'
ljacklm.c:6487: error: 'LABJACK_INFO' has no member named 'hDevice'
ljacklm.c:6488: error: 'LABJACK_INFO' has no member named 'hDevice'
ljacklm.c:6492: error: 'LABJACK_INFO' has no member named 'hDevice'
ljacklm.c:6492: error: 'LABJACK_INFO' has no member named 'hDevice'
ljacklm.c:6493: error: 'LABJACK_INFO' has no member named 'hDevice'
ljacklm.c:6496: error: 'LABJACK_INFO' has no member named 'serialNumber'

hnasr2001
hnasr2001's picture
I am getting numbers of error

I am getting numbers of error when I am trying to install the Exodriver;

Some of them are paste here;

[[email protected] labjack-exodriver-815464f]# ./install.sh
Making..
rm -f liblabjackusb.so.2.5.3 *.o *~
cc -fPIC -g -Wall  -c labjackusb.c
labjackusb.c:25:31: error: libusb-1.0/libusb.h: No such file or directory
labjackusb.c: In function 'LJUSB_libusbError':
labjackusb.c:222: error: 'LIBUSB_SUCCESS' undeclared (first use in this function)
labjackusb.c:222: error: (Each undeclared identifier is reported only once
labjackusb.c:222: error: for each function it appears in.)
labjackusb.c:226: error: 'LIBUSB_ERROR_IO' undeclared (first use in this function)
labjackusb.c:232: error: 'LIBUSB_ERROR_INVALID_PARAM' undeclared (first use in this function)
labjackusb.c:238: error: 'LIBUSB_ERROR_ACCESS' undeclared (first use in this function)
labjackusb.c:244: error: 'LIBUSB_ERROR_NO_DEVICE' undeclared (first use in this function)
labjackusb.c:250: error: 'LIBUSB_ERROR_NOT_FOUND' undeclared (first use in this function)
labjackusb.c:256: error: 'LIBUSB_ERROR_BUSY' undeclared (first use in this function)
labjackusb.c:262: error: 'LIBUSB_ERROR_TIMEOUT' undeclared (first use in this function)
labjackusb.c:268: error: 'LIBUSB_ERROR_OVERFLOW' undeclared (first use in this function)
labjackusb.c:274: error: 'LIBUSB_ERROR_PIPE' undeclared (first use in this function)
labjackusb.c:280: error: 'LIBUSB_ERROR_INTERRUPTED' undeclared (first use in this function)
labjackusb.c:286: error: 'LIBUSB_ERROR_NO_MEM' undeclared (first use in this function)
labjackusb.c:292: error: 'LIBUSB_ERROR_NOT_SUPPORTED' undeclared (first use in this function)
labjackusb.c:298: error: 'LIBUSB_ERROR_OTHER' undeclared (first use in this function)
labjackusb.c: In function 'LJUSB_libusb_exit':
labjackusb.c:470: warning: implicit declaration of function 'libusb_exit'
labjackusb.c: In function 'LJUSB_OpenDevice':
labjackusb.c:486: error: 'libusb_device' undeclared (first use in this function)
labjackusb.c:486: error: 'devs' undeclared (first use in this function)
labjackusb.c:486: error: 'dev' undeclared (first use in this function)
labjackusb.c:486: warning: left-hand operand of comma expression has no effect
labjackusb.c:488: error: storage size of 'desc' isn't known
labjackusb.c:496: warning: implicit declaration of function 'libusb_init'
labjackusb.c:505: warning: implicit declaration of function 'libusb_get_device_list'
labjackusb.c:517: warning: implicit declaration of function 'libusb_get_device_descriptor'
labjackusb.c:529: warning: implicit declaration of function 'libusb_open'
labjackusb.c:536: warning: implicit declaration of function 'libusb_kernel_driver_active'
labjackusb.c:542: warning: implicit declaration of function 'libusb_detach_kernel_driver'
labjackusb.c:551: warning: implicit declaration of function 'libusb_claim_interface'
labjackusb.c:554: warning: implicit declaration of function 'libusb_close'
labjackusb.c:565: warning: implicit declaration of function 'libusb_free_device_list'
labjackusb.c:488: warning: unused variable 'desc'
labjackusb.c: In function 'LJUSB_OpenAllDevices':
labjackusb.c:584: error: 'libusb_device' undeclared (first use in this function)
labjackusb.c:584: error: 'devs' undeclared (first use in this function)
labjackusb.c:584: error: 'dev' undeclared (first use in this function)
labjackusb.c:584: warning: left-hand operand of comma expression has no effect
labjackusb.c:586: error: storage size of 'desc' isn't known
labjackusb.c:586: warning: unused variable 'desc'
labjackusb.c: In function 'LJUSB_ResetConnection':
labjackusb.c:694: warning: implicit declaration of function 'libusb_reset_device'
labjackusb.c: In function 'LJUSB_DoTransfer':
labjackusb.c:726: warning: implicit declaration of function 'libusb_bulk_transfer'
labjackusb.c:731: warning: implicit declaration of function 'libusb_control_transfer'
labjackusb.c:744: warning: implicit declaration of function 'libusb_interrupt_transfer'
labjackusb.c:748: error: 'LIBUSB_ERROR_TIMEOUT' undeclared (first use in this function)
labjackusb.c: In function 'LJUSB_SetupTransfer':
labjackusb.c:773: error: 'libusb_device' undeclared (first use in this function)
labjackusb.c:773: error: 'dev' undeclared (first use in this function)
labjackusb.c:774: error: storage size of 'desc' isn't known

LabJack Support
LabJack Support's picture
First, the Exodriver requires

First, the Exodriver requires the libusb-1.0 header files on your system. Try the following yum command and see if it installs it (I don't have CentOS on hand to test):

sudo yum install libusb1-devel

That will help with the Exodriver errors.

Second, the U12 driver (ljacklm) requires the Exodriver, so installing that first will resolve the ljacklm build errors you are getting.

hnasr2001
hnasr2001's picture
I tried both yum install

I tried both yum install libusb1-devel, and yum install libudev.

when I ran ./configure in the error that i am getting is;

checking for libudev.h... no
configure: error: "udev support requested but libudev not installed"
[[email protected] libusb-1.0.20]#

LabJack Support
LabJack Support's picture
libusb-1.0 should already be

libusb-1.0 should already be installed on your system. So the ./configure step to build libusb-1.0 from source is not needed and not recommended if it is already on your system. You only need to run "yum install libusb1-devel" to install its header files so that Exodriver can build with it.

hnasr2001
hnasr2001's picture
It did work without

It did work without rebuilding the libusb. Thanks for the support