Skip to content

Commit

Permalink
{melodic} kobuki-ftdi: fix dependencies
Browse files Browse the repository at this point in the history
* fixes:
ERROR: Nothing PROVIDES 'UNRESOLVED-ftdi-eeprom' (but /jenkins/mjansa/build-ros/ros1-melodic-thud/meta-ros/meta-ros1-melodic/generated-recipes/kobuki-core/kobuki-ftdi_0.7.8.bb DEPENDS on or otherwise requires it)
NOTE: Runtime target 'kobuki-ftdi' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['kobuki-ftdi', 'UNRESOLVED-ftdi-eeprom']
NOTE: Runtime target 'kobuki-core' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['kobuki-core', 'kobuki-ftdi', 'UNRESOLVED-ftdi-eeprom']

and

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/ros1-melodic-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/ros1-melodic-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/ros1-melodic-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/ros1-melodic-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/ros1-melodic-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/ros1-melodic-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/ros1-melodic-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/ros1-melodic-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/ros1-melodic-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/ros1-melodic-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/ros1-melodic-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/ros1-melodic-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/ros1-melodic-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/ros1-melodic-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 0bf278c commit 7533987
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,15 @@ ROS_UNRESOLVED_PLATFORM_PKG_geographiclib-tools = "geographiclib-tools"
# generated-recipes/webrtc-ros/webrtc_59.0.3.bb
ROS_UNRESOLVED_PLATFORM_PKG_libglib-dev = "glib-2.0"

# Used by:
# generated-recipes/kobuki-core/kobuki-ftdi_0.7.8.bb
ROS_UNRESOLVED_PLATFORM_PKG_ftdi-eeprom = "libftdi"

#ROS_UNRESOLVED_PLATFORM_PKG_arduino-core = "arduino-core"
ROS_UNRESOLVED_PLATFORM_PKG_bluez = "bluez5"
ROS_UNRESOLVED_PLATFORM_PKG_clang-tidy = "clang-tidy"
#ROS_UNRESOLVED_PLATFORM_PKG_coinor-libipopt-dev = "coinor-libipopt-dev"
#ROS_UNRESOLVED_PLATFORM_PKG_cwiid-dev = "cwiid-dev"
#ROS_UNRESOLVED_PLATFORM_PKG_ftdi-eeprom = "ftdi-eeprom"
#ROS_UNRESOLVED_PLATFORM_PKG_gforth = "gforth"
#ROS_UNRESOLVED_PLATFORM_PKG_gfortran = "gfortran"
ROS_UNRESOLVED_PLATFORM_PKG_libasound2-dev = "alsa-lib"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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 5004f97..48089e8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,8 +4,8 @@ find_package(catkin REQUIRED COMPONENTS ecl_command_line)

# 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)

catkin_package(
INCLUDE_DIRS include
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 7533987

Please sign in to comment.