Using CANView on Ubuntu 22.04
CANView is a tool for viewing CAN bus data. It can view live data when connected to a suitable tool, or can view saved log files in a few formats.
It is a cross-platform tool, provided by Yacht Devices.
The latest version is 1.40, released on 5 August 2021.
On Ubuntu 22.04, it fails at startup, with the message
./CANView: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
Investigation shows that, indeed, libpng12 is not installed; libpng16 is installed; and libpng12 is not available for installation.
A version of libpng12 is available for Ubuntu 22.04 from Launchpad, created by Linux Uprising.
I could not install this using dpkg, as it complained about a conflict. However, a .deb file is really just an archive file of some sort, and can be opened using an archive viewer. I used file-roller to extract libpng12.so.0.54.0 and a symlink libpng12.so.0
-
Download CANView
-
Unzip
CANVIEW.zipsomewhere -
Change the executable flag on
CANVIEW/Linux/CANView -
Download libpng12
-
Extract
libpng12.so.0.54.0and the symlinklibpng12.s0.0into the same directory as the Linux executable -
Run CANView, pointing the library loader to the directory that has
libpng12. Assuming thatlibpng12andCANVieware in the current directoryLD_LIBRARY_PATH=. ./CANView
Supported log file formats
- .CAN,