0

我已经使用 dlt viewer gui 使用可以设置 ECU IP 和连接的窗口。现在,我已经转移到 Linux (ubuntu)。我不知道如何启动 dlt viewer gui。我跟着,

https://github.com/GENIVI/dlt-viewer

并引用了许多链接,我看不出我们如何将 GUI 用作窗口。任何人都可以建议我在哪里可以找到在 Linux 中使用 dlt 查看器的信息。

4

2 回答 2

0
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
于 2021-01-21T09:44:00.473 回答
0

昨天使用 Ubuntu 16.04 进行了尝试,按照“INSTALL.md”文件中列出的命令很容易,您需要安装 Qt。我将它们粘贴在这里以供您使用。

在 dlt-viewer 存储库的本地签出中打开一个控制台。

DLT Viewer 安装说明(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-viewer 即可将其打开。

于 2021-03-12T21:29:36.070 回答