This project contains source code for a Qt6 Serial Bus module plugin. The purpose is to allow the CLX000 CAN bus data logger & interface from CSS Electronics to stream data into applications utilizing the Qt6 Serial Bus framework (e.g. SavvyCAN).
First install Qt version 6.7.2 or higher. See HOWTO
Change to the directory where you extracted/cloned this code.
Create a new build
subdirectory to hold ephemeral build artifacts created by cmake
.
Use the cmake
compiler provided in the Qt installation, and reference its location with the CMAKE_PREFIX_PATH variable.
export PATH=~/Qt/Tools/CMake/bin:$PATH
mkdir build && cd build
cmake -DCMAKE_PREFIX_PATH=~/Qt/6.7.2/gcc_64/lib/cmake ..
After configuration, build the plugin with
cmake --build .
Cleaning is simply a matter of removing the build
directory.
rm -rf build
Copy the module to the system Qt6 installation into the plugins/canbus
directory. For example, cp clx000canbus.so Qt/6.7.2/gcc_64/plugins/canbus/
Copy the module to the application's designated plugin directory, with similar directory structure. For example, cp clx000canbus.dylib Applications/SavvyCAN.app/Contents/PlugIns/canbus/
.
The canbus
directory may first need to be created.
Note, The application must have been built with the local path for loading modules.
For details on using the CLX000 as a CAN bus data logger and CAN interface, see the products pages and documentation:
Feature suggestions, pull requests or questions are welcome!
You can contact us at CSS Electronics below: