Российский производитель и разработчик сертифицированного измерительного оборудования с 1987 года

Установка компонентов L-Card в Ubuntu 18.04.1

Вы не вошли.

 Поиск | Регистрация | Вход 

15.08.2018 17:58:27
#1

Участник
Здесь с 15.08.2018
Сообщений: 3

Установка компонентов L-Card в Ubuntu 18.04.1

Доброго времени суток. Установил на ПК систему Ubuntu 18.04.1 и QtCreator. Следуя инструкциям описанным в lcard_linux_distributions.pdf пытаюсь установить необходимые библиотеки для работы с крейтами LTR. Заканчивается всё сообщением
W: Ошибка GPG: http://download.opensuse.org/repositori … untu_18.04 ./ Release: Следующие подписи неверные: AABEABDF42B4B8AFE6CC459141DCEA7E7F96C9E2
E: Репозиторий «http://download.opensuse.org/repositories/home:/l-card/xUbuntu_18.04 ./ Release» не подписан.
N: Обновление из этого репозитория нельзя выполнить безопасным способом, и поэтому по умолчанию он отключён.
Что посоветуете сделать дальше?

16.08.2018 12:26:53
#2

Участник
Здесь с 15.08.2018
Сообщений: 3

Re: Установка компонентов L-Card в Ubuntu 18.04.1

Попробовал второй способ описанный в lcard_bitbucket_repos.pdf
Запуск скрипта закончился следующим выводом

laborant@421-2:~/projects/l-card/ltr_cross_sdk/build-scripts/linux$ ./build.sh
-- The C compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of int64_t
-- Check size of int64_t - done
-- Check size of uint64_t
-- Check size of uint64_t - done
-- Check size of socklen_t
-- Check size of socklen_t - done
-- Looking for MSG_NOSIGNAL
-- Looking for MSG_NOSIGNAL - found
-- Looking for strnlen
-- Looking for strnlen - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for usleep
-- Looking for usleep - found
-- Looking for strlen
-- Looking for strlen - found
-- Looking for include file sys/timers.h
-- Looking for include file sys/timers.h - not found
-- Looking for CLOCK_MONOTONIC
-- Looking for CLOCK_MONOTONIC - found
-- configure module project ltrapi, module name = 
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- configure module project ltrlogapi, module name = 
-- configure module project ltr010api, module name = LTR010
-- configure module project ltr030api, module name = LTR030
-- configure module project ltr032api, module name = LTR032
-- configure module project ltr021api, module name = LTR021
-- configure module project ltrbootapi, module name = 
-- configure module project ltravrapi, module name = 
-- configure module project ltr114api, module name = LTR114
-- configure module project ltr212api, module name = LTR212
-- configure module project ltr11api, module name = LTR11
-- configure module project ltr22api, module name = LTR22
-- configure module project ltr24api, module name = LTR24
-- configure module project ltr25api, module name = LTR25
-- configure module project ltr27api, module name = LTR27
-- configure module project ltr34api, module name = LTR34
-- configure module project ltr35api, module name = LTR35
-- configure module project ltr41api, module name = LTR41
-- configure module project ltr42api, module name = LTR42
-- configure module project ltr43api, module name = LTR43
-- configure module project ltr51api, module name = LTR51
-- configure module project ltr210api, module name = LTR210
-- configure module project ltr216api, module name = LTR216
-- The CXX compiler identification is GNU 7.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- getopt.h - found : /usr/include/getopt.h
-- getopt.h - found : /usr/include/getopt.h
-- getopt.h - found : /usr/include/getopt.h
-- getopt.h - found : /usr/include/getopt.h
-- getopt.h - found : /usr/include/getopt.h
-- getopt.h - found : /usr/include/getopt.h
-- getopt.h - found : /usr/include/getopt.h
-- getopt.h - found : /usr/include/getopt.h
-- getopt.h - found : /usr/include/getopt.h
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Check size of struct sockaddr_in6
-- Check size of struct sockaddr_in6 - done
-- Looking for initgroups
-- Looking for initgroups - found
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR) 
-- Looking for include file ifaddrs.h
-- Looking for include file ifaddrs.h - found
-- libusb-1.0 not found.
-- Looking for libusb_error_name
-- Looking for libusb_error_name - not found
CMake Warning at ltrmanager/CMakeLists.txt:201 (find_package):
  By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt5Widgets", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Widgets" with
  any of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake

  Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
  "Qt5Widgets_DIR" to a directory containing one of the above files.  If
  "Qt5Widgets" provides a separate development package or SDK, be sure it has
  been installed.


CMake Warning at ltrmanager/CMakeLists.txt:202 (find_package):
  By not providing "FindQt5Network.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt5Network", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Network" with
  any of the following names:

    Qt5NetworkConfig.cmake
    qt5network-config.cmake

  Add the installation prefix of "Qt5Network" to CMAKE_PREFIX_PATH or set
  "Qt5Network_DIR" to a directory containing one of the above files.  If
  "Qt5Network" provides a separate development package or SDK, be sure it has
  been installed.


CMake Warning at ltrmanager/CMakeLists.txt:203 (find_package):
  By not providing "FindQt5LinguistTools.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "Qt5LinguistTools", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5LinguistTools"
  with any of the following names:

    Qt5LinguistToolsConfig.cmake
    qt5linguisttools-config.cmake

  Add the installation prefix of "Qt5LinguistTools" to CMAKE_PREFIX_PATH or
  set "Qt5LinguistTools_DIR" to a directory containing one of the above
  files.  If "Qt5LinguistTools" provides a separate development package or
  SDK, be sure it has been installed.


CMake Error at ltrmanager/CMakeLists.txt:205 (qt5_wrap_cpp):
  Unknown CMake command "qt5_wrap_cpp".


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBUSB_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd
   used as include directory in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd
   used as include directory in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd
   used as include directory in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd
   used as include directory in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd
   used as include directory in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd
   used as include directory in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd
   used as include directory in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd
   used as include directory in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd
   used as include directory in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd
   used as include directory in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd
   used as include directory in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd
   used as include directory in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd
   used as include directory in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd
   used as include directory in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd
   used as include directory in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd
LIBUSB_LIBRARIES (ADVANCED)
    linked by target "ltrd" in directory /home/laborant/projects/l-card/ltr_cross_sdk/ltrd

-- Configuring incomplete, errors occurred!
See also "/home/laborant/projects/l-card/ltr_cross_sdk/build-scripts/linux/build/CMakeFiles/CMakeOutput.log".
See also "/home/laborant/projects/l-card/ltr_cross_sdk/build-scripts/linux/build/CMakeFiles/CMakeError.log".
16.08.2018 13:01:09
#3

Сотрудник "Л Кард"
Здесь с 17.04.2014
Сообщений: 1,293

Re: Установка компонентов L-Card в Ubuntu 18.04.1

Добрый день.
По поводу первого способа подключения репозитория.
Оказалось, что в Ubuntu 18.04 запретили алгоритм ключа, которым подписывался репозиторий, как устаревший. Пересоздал новый ключ и пересобрал репозитории.
Теперь можно удалить старый ключ, через

sudo apt-key del  AABEABDF42B4B8AFE6CC459141DCEA7E7F96C9E2

После этого нужно заново скачать и установить ключ (2 первых пункта в описании, по тем же адресам теперь он новый).
После этого sudo apt-get update должна выполниться успешно.

По поводу сборки из исходников, то у Вас не хватает части пакетов, необходимых для сборки (пакеты разработчиков для зависимых библиотек - libxml2-dev, libdaemon-dev, libusb-1.0-0-dev для ltrd,  файлы разработчика для Qt5 для ltrmanager), которые нужно установить через apt-get install. Хотя так как сейчас должен работать первый способ, то сборка может не понадобится.

16.08.2018 18:11:59
#4

Участник
Здесь с 15.08.2018
Сообщений: 3

Re: Установка компонентов L-Card в Ubuntu 18.04.1

Спасибо, Алексей, всё заработало.

Контакты

Адрес: 117105, Москва, Варшавское шоссе, д. 5, корп. 4, стр. 2

Многоканальный телефон:
+7 (495) 785-95-25

Отдел продаж: sale@lcard.ru
Техническая поддержка: support@lcard.ru

Время работы: с 9-00 до 19-00 мск