- Can I install “DAQmx Base” in a 64bit GNU/Linux OS?
Yes; despite National Instruments’ lack of interest.
- Can it be installed in Ubuntu / Debian?
As far as I reached, only NI-DAK (the kernel driver), but not “DAQmx Base”. So, in short: you can’t.
- Can I use it to compile my own C applications?
Yes, but only as 32bit programs. Even in a 64bit OS.
- Why can’t I build 64bit programs? Shouldn’t it be easy to provide 64bit libraries?
Don’t know; ask NI.
1. Install NI KAL:
1.1. Prepare to build the kernel sources:
- You need a few packages to compile NI’s kernel driver module. Open a console, and execute:
sudo zypper in kernel-devel kernel-source kernel-syms
- Find out which kernel module you are running:
- Change the directory to the /usr/src/linux-[VERSION] directory, where [VERSION] corresponds to the currently running kernel version.
- Run the following, replacing [VERSION] as corresponds to your system:
zcat /boot/symvers-[VERSION].gz > Module.symvers
make cloneconfig # Configure sources for kernel
make modules_prepare # Prepare the headers for compilation
1.2. Install NI KAL
NI KAL is National Instruments’ Kernel Abstraction Layer (KAL). It is required before installing NI DAQmx Base or any other NI stuff.
- Get the latest version, NIKAL 2.4 as of October 2013:
- Extract the .iso file, for example, right-clicking on it and selecting “Extract”.
- Say you have now NIKAL contents in ~/Downloads/NIKAL24. Open a console and run:
sudo ./INSTALL --nodeps
Accept the license and confirm the target directory to finish the installation:
- Recompile the module kernel, with:
- Reboot, as you are prompted to.
- After rebooting, open a new console and check if the nikal module is correctly installed with:
If you can see something like:
sudo modprobe nikal
sudo lsmod | grep nikal
then it is correctly setup and loaded. Great! Now for the next steps.
2. Install DAQmx Base
Installing DAQmx Base in a 64bit OS is not officially supported by NI, so a few extra steps are required. Here is the recipe: