Skip to content

Commit

Permalink
{eloquent} kobuki-ftdi: fix dependencies
Browse files Browse the repository at this point in the history
* fixes:

DEBUG: Executing shell function do_configure
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /jenkins/mjansa/build-ros/ros2-eloquent-warrior/tmp-glibc/work/core2-64-oe-linux/kobuki-ftdi/1.0.0-1-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/x86_64-oe-linux-gcc
-- Check for working C compiler: /jenkins/mjansa/build-ros/ros2-eloquent-warrior/tmp-glibc/work/core2-64-oe-linux/kobuki-ftdi/1.0.0-1-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/x86_64-oe-linux-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /jenkins/mjansa/build-ros/ros2-eloquent-warrior/tmp-glibc/work/core2-64-oe-linux/kobuki-ftdi/1.0.0-1-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/x86_64-oe-linux-g++
-- Check for working CXX compiler: /jenkins/mjansa/build-ros/ros2-eloquent-warrior/tmp-glibc/work/core2-64-oe-linux/kobuki-ftdi/1.0.0-1-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/x86_64-oe-linux-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ament_cmake_ros: 0.8.0 (/jenkins/mjansa/build-ros/ros2-eloquent-warrior/tmp-glibc/work/core2-64-oe-linux/kobuki-ftdi/1.0.0-1-r0/recipe-sysroot-native/usr/share/ament_cmake_ros/cmake)
-- Found PythonInterp: /jenkins/mjansa/build-ros/ros2-eloquent-warrior/tmp-glibc/work/core2-64-oe-linux/kobuki-ftdi/1.0.0-1-r0/recipe-sysroot-native/usr/bin/python3-native/python3 (found suitable version "3.7.6", minimum required is "3")
-- Using PYTHON_EXECUTABLE: /jenkins/mjansa/build-ros/ros2-eloquent-warrior/tmp-glibc/work/core2-64-oe-linux/kobuki-ftdi/1.0.0-1-r0/recipe-sysroot-native/usr/bin/python3-native/python3
-- Found ecl_build: 1.0.2 (/jenkins/mjansa/build-ros/ros2-eloquent-warrior/tmp-glibc/work/core2-64-oe-linux/kobuki-ftdi/1.0.0-1-r0/recipe-sysroot/usr/share/ecl_build/cmake)
-- Found ecl_command_line: 1.0.6 (/jenkins/mjansa/build-ros/ros2-eloquent-warrior/tmp-glibc/work/core2-64-oe-linux/kobuki-ftdi/1.0.0-1-r0/recipe-sysroot/usr/share/ecl_command_line/cmake)
-- Found PkgConfig: /jenkins/mjansa/build-ros/ros2-eloquent-warrior/tmp-glibc/work/core2-64-oe-linux/kobuki-ftdi/1.0.0-1-r0/recipe-sysroot-native/usr/bin/pkg-config (found version "0.29.2")
-- Checking for one of the modules 'libusb'
CMake Error at /jenkins/mjansa/build-ros/ros2-eloquent-warrior/tmp-glibc/work/core2-64-oe-linux/kobuki-ftdi/1.0.0-1-r0/recipe-sysroot-native/usr/share/cmake-3.14/Modules/FindPkgConfig.cmake:701 (message):
  None of the required 'libusb' found
Call Stack (most recent call first):
  CMakeLists.txt:18 (pkg_search_module)

-- Checking for one of the modules 'libftdi'
CMake Error at /jenkins/mjansa/build-ros/ros2-eloquent-warrior/tmp-glibc/work/core2-64-oe-linux/kobuki-ftdi/1.0.0-1-r0/recipe-sysroot-native/usr/share/cmake-3.14/Modules/FindPkgConfig.cmake:701 (message):
  None of the required 'libftdi' found
Call Stack (most recent call first):
  CMakeLists.txt:19 (pkg_search_module)

-- Configuring incomplete, errors occurred!
See also "/jenkins/mjansa/build-ros/ros2-eloquent-warrior/tmp-glibc/work/core2-64-oe-linux/kobuki-ftdi/1.0.0-1-r0/build/CMakeFiles/CMakeOutput.log".
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_configure (log file is located at /jenkins/mjansa/build-ros/ros2-eloquent-warrior/tmp-glibc/work/core2-64-oe-linux/kobuki-ftdi/1.0.0-1-r0/temp/log.do_configure.43919)

Signed-off-by: Martin Jansa <martin.jansa@lge.com>
  • Loading branch information
shr-project committed Jul 1, 2020
1 parent da7a3d5 commit f286bfe
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From 5decccd779ddfe2570dd9eb2302c2c0b3389985c Mon Sep 17 00:00:00 2001
From: Martin Jansa <martin.jansa@lge.com>
Date: Tue, 4 Feb 2020 08:58:20 -0800
Subject: [PATCH] CMakeLists: update libusb, libftdi pkg-config names to match
what OE provides

Signed-off-by: Martin Jansa <martin.jansa@lge.com>
---
CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5d59982..a7a46b3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,8 +15,8 @@ find_package(ecl_command_line REQUIRED)

# pkg-config packages
find_package(PkgConfig)
-pkg_search_module(libusb REQUIRED libusb)
-pkg_search_module(libftdi REQUIRED libftdi)
+pkg_search_module(libusb REQUIRED libusb-1.0)
+pkg_search_module(libftdi REQUIRED libftdi1)

##############################################################################
# Platform Configuration
--
2.17.1

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (c) 2020 LG Electronics, Inc.

FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
SRC_URI += "file://0001-CMakeLists-update-libusb-libftdi-pkg-config-names-to.patch"

0 comments on commit f286bfe

Please sign in to comment.