我已经使用dlt查看器gui使用窗口,我可以设置ECU IP和连接。现在,我被迁移到Linux (ubuntu)。我不知道如何启动dlt查看器gui。我一直在跟踪
并且参考了许多链接,我看不出我们如何使用GUI作为窗口。有人能建议我在哪里可以找到在Linux中使用dlt查看器的信息吗?
发布于 2021-03-12 21:29:36
昨天在Ubuntu16.04中试过了,很容易按照'INSTALL.md‘文件中列出的命令执行,您需要安装Qt。我把它们贴在这里是为了你的功用。
在dlt查看器存储库的本地签出中打开控制台。
安装DLT查看器(Linux命令行)的说明
sudo apt install build-essential
sudo apt install qtcreator
sudo apt install qt5-default
sudo apt install libqt5serialport5-dev
mkdir build
cd build
qmake ../BuildDltViewer.pro
make
sudo make install
sudo ldconfig
Optional: set the library path: LD_LIBRARY_PATH = .
一旦安装完毕,就从控制台调用dlt-查看器来打开它。
发布于 2021-01-21 09:44:00
I am attaching a script which I use to download and install dlt-viewer on ubuntu.
#! /usr/bin/env bash
DLT_DIRECTORY=$(pwd)
DLT_FOLDER="dlt-viewer"
echo "pwd = $(pwd)"
if [ "$#" -ne 1 ]; then
echo "Path to dlt-viewer is not provided, using the current location for installation";
else
DLT_DIRECTORY=$1
fi
function CheckIfDltExists()
{
cd $DLT_DIRECTORY;
if [ ! -d "$DLT_FOLDER" ]; then
echo "$DLT_DIRECTORY/$DLT_FOLDER does not exist..."
echo "Clonig from github..."
git clone https://github.com/GENIVI/dlt-viewer.git
fi
}
function SetUpEnvForDlt()
{
echo "found dlt-viewer in $pwd folder"
echo "Setting up environment"
cd $DLT_DIRECTORY; sudo apt-get update;
sudo apt install build-essential ; sudo apt install qtcreator ; sudo apt install qt5-default; sudo apt install libqt5serialport5-dev; mkdir build; cd build; qmake ../BuildDltViewer.pro; make; sudo make install; sudo ldconfig
echo "dlt-viewer installation complete"
}
CheckIfDltExists
SetUpEnvForDlt
https://stackoverflow.com/questions/65414254
复制相似问题