Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 488.2 Build Error

Solved!
Go to solution

We've recently moved over to AlmaLinux 8.9 and are trying to recompile our software which use the NI 488.2 libraries.

 

Unfortunately, during the build process, I get the following error message appear:

 

gcc -D=LINUX -D=SIMULAT -L/usr/X11R6/lib -o probersim probersim.o sim_thread.o sim_serial.o sim_socket.o sim_gpib.o sim_select.o sim_rxtx.o sim_buttons.o sim_prompt.o sim_scr_mgnt.o sim_appbar.o sim_iplogo.o ../a_gpib/linux_port.o ../a_gpib/platform_linux.o ../a_gpib/a_gp_gpio.o ../a_gpib/a_gp_utilities.o ../a_gpib/vicpclientlib.o -L/usr/X11R6/lib -lXm -lXft -lX11 -lz -lfontconfig -lXrender -lXext -lX11 -lXpm -lXmu -lXext -lXt -lSM -lICE -lX11 -ltermcap -lz -lbz2 -lpthread -lm -lni4882
/usr/bin/ld: cannot find -lni4882
collect2: error: ld returned 1 exit status
make: *** [makefile:41: probersim] Error 1

 

I can confirm on my system that I have the following packages installed, which I believe are needed:

 

libni4882.x86_64
libni4882-devel.x86_64

 

Would anyone else have advice on what might be the issue here ?

0 Kudos
Message 1 of 3
(288 Views)

I bet there is a document somewhere that lists the Operating Systems that your specific version of the 488.2 driver includes support for.   You should read that document.   

 

The file is probably named "ReadMe.txt" for some obscure reason that nobody could understand.😉


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 3
(242 Views)
Solution
Accepted by ipMO

Hello and thanks for getting back to me.

 

Eventually, I did find out after hunting through the NI Website that I needed to install the following package on my AlmaLinux machine via:

 

$ sudo yum install libni4882-devel 

 

I found the information I needed in the following page:

https://www.ni.com/pdf/manuals/ni-488.2-linux-2022-q4.html

 

I also then had to update my makefile as it seems like the location of the ni4882 library has changed since CentOS 7, and it now resides in the following location:

 

/usr/lib/x86_64-linux-gnu/
Message 3 of 3
(200 Views)