DLT-Message-Analyzer

"Extended search" plugin for the DLT-viewer

View on GitHub

Go to the previous page


Table of contents


Installation guide

Clone repositories

git clone git@github.com:GENIVI/dlt-viewer.git


Note!

Currently plugin can be built against the v2.25.0 release.

The build under the earlier versions, down to the the v2.19.0 is also supported. But you will need to use the compatibility mode. Such an option is described below later on down this page. Search for the “PLUGIN_INTERFACE_VERSION” keyword.

Make sure, that you’ve checked out the compatible base-line and used required build options.


cd ./dlt-viewer/plugin
git clone git@github.com:svlad-90/DLT-Message-Analyzer.git

Screenshot of DLT Message Analyzer plugin location inside the dlt-viewer project


add_subdirectory(DLT-Message-Analyzer/dltmessageanalyzerplugin/src)

Screenshot of plugin.pro cmakelists.txt modification


Linux console build


Qt Creator build


Qt Creator IDE set up

Screenshot of "Specify CMake location" menu in QT Creator

Afterward, open the dlt-viewer’s CMake project, which is located in the root of the dlt-viewer repo:

Screenshot of "Open project" context menu in the Qt Creator

Screenshot of project file selection in the Qt Creator


Important note for Linux compilation!

On Linux the compilation might fail, if you do not have installed uuid-dev package. That one is used by antlr, which is used by the DLT-Message-Analyzer.

Thus, please, install it before making attempt to build the project: sudo DEBIAN_FRONTEND=noninteractive apt-get -yq install uuid-dev


Important note!

Compilation might fail, if you do not have installed libqt5svg5-dev ( for Qt5 ) or libqt6svg6-dev ( for Qt6 ). Those are used by the QCustomPlot dependency, which is used by the DLT-Message-Analyzer.

Thus, please, install it before making attempt to build the project: sudo DEBIAN_FRONTEND=noninteractive apt-get -yq install libqt5svg5-dev ( or libqt6svg6-dev )


qmake *.pro based build

Such a build option was dropped. DLT-Message-Analyzer has started to use antlr generator, which has only CMake support. Thus the decision was finally made to support ONLY CMake builds for all supported platforms. As of now, they are Linux and Windows.


Linux and Windows QT creator build

Screenshot of a selection of the build type in the Qt Creator

Screenshot of "Clear CMake configuration" option in the Qt Creator

Screenshot of "Run CMake" option in the Qt Creator

Screenshot of build button in QT Creator


Run dlt-viewer and enable the plugin

Screenshot of enabling the plugin


Build dependencies and settings

Build dependencies

Note!

For Linux build you will need to install the uuid-dev package. It is required to build the antlr4 runtime library. To do that you can use the following commands:

sudo apt update
sudo apt-get install uuid-dev

Note!

If you want to have a compatible build with PLUGIN_INTERFACE_VERSION “1.0.0”, enable the following define in the ./dlt-viewer/plugin/ DLT-Message-Analyzer/ dltmessageanalyzerplugin/ src/ CMakeLists.txt:

Screenshot enable 1.0.0 compatibility define in CMakeLists.txt


Note!

To run dlt-viewer and DLT_Message-Analyzer, which are built with msvc, you will need to install the corresponding version of the Visual C++ Redistributable package.

Here is a link, by which you can find such packages for 2015, 2017, 2019 versions of the msvc - https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

In case if the link will become irrelevant, just google for the “Visual C++ Redistributable package” keyword in your browser.


Build settings

Note!

If build fails due to missing qt5serialport5 package, perform the following commands:

sudo apt-get install libqt5serialport5
sudo apt-get install libqt5serialport5-dev

For Qt6 qtserialport module needs to be installed.


dlt-viewer-docker

sevketcaba has developed a useful tool, which allows to build and run dlt-viewer + DMA inside the Docker container. The approach is based on *.sh scripts, so it can be used only for Linux.

The usage is quite simple:


Troubleshooting

CMake 3.28.1

It was identified that with version 3.28.1 of the CMake tool, you will get the following error during the DLT Message Analyzer build:

make[2]: ** No rule to make target ‘plugin/DLT-Message-Analyzer/dltmessageanalyzerplugin/src/antlr4_runtime/src/antlr4_runtime/runtime/Cpp/dist/libantlr4-runtime.a’, needed by ‘plugin/DLT-Message-Analyzer/dltmessageanalyzerplugin/src/CMakeFiles/antlr4_PCRE_static_autogen_timestamp_deps’. Stop. make[1]: ** [CMakeFiles/Makefile2:1716: plugin/DLT-Message-Analyzer/dltmessageanalyzerplugin/src/CMakeFiles/antlr4_PCRE_static_autogen_timestamp_deps.dir/all] Error 2 make: *** [Makefile:156: all] Error 2

It is likely caused by the bug in that specific version of CMake, combined with the old-style CMake scripting used by the Antlr4 C++ runtime.

As a reliable solution, please switch to the other CMake version. E.g., 3.22.1 and 3.29.6 worked just fine.

You can find more details regarding this issue here.


Go to the previous page