RC02 Setting up the SocketCAN native extension
The article will help you to configure and set-up the SocketCAN adapter native extension.
The SocketCAN adapter uses a native extension, meaning that it instantiates a native executables to
open and read data from the devices. Find more about native extensions in the manual.
This native extension comes with pre-compiled Linux native executables.
Re-compiling the native extension
You just need to re-compile the native extension if the original native executables do not fit to your system (e.g. library incompatibilities with Linux).
Go to Preferences->impulse->Native Extensions->SocketCAN Native.
- Please check if your system has the required GNU compatible toolchain installed (g++,make)
- Press Make
mkdir -p linux-x86_64 gcc -m64 main.c ../flux.c ../lz4.c ../fastlz.c -I .. -I . -D FLX_CONTROL -D FLX_COMPRESS -D FLX_STDIO -Ilinux -lm -lpthread -o linux-x86_64/socketcan chmod 777 linux-x86_64/socketcan
Editing the native extension
If you press Edit Extension, impulse opens an editor with the extension sources.
This enables experienced users to enhance the readers native extension or to explore the CAN content in a different manner. We are looking forward to get your feedback!