ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

asked 2017-01-14 00:36:40 -0500

zzkzsmj gravatar image

updated 2017-01-17 07:18:58 -0500

I use the Ubuntu environment,Refer to the "ROS NDK How to cross-compile any other ROS package for Android" tutorial, compile sick_tim,./do_docker to sick_tim when I run the wrong as follows:

  ==> add_subdirectory(sick_tim)
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:106 (find_package_handle_standard_args)
  sick_tim/CMakeLists.txt:11 (find_package)
edit retag flag offensive close merge delete


Without more context (OS, how you installed things, what you are trying to do, which version of ROS, etc), the best I can do is that it would seem you don't have PkgConfig installed. Try installing it and see whether that helps.

gvdhoorn gravatar image gvdhoorn  ( 2017-01-14 02:55:30 -0500 )edit

Hello, I was in the Ubuntu environment, the use of ROS NDK compiler errors,

zzkzsmj gravatar image zzkzsmj  ( 2017-01-17 06:23:23 -0500 )edit

Please update your original question (use the edit button/link) and give us enough information to help you. What exactly are you trying to do, and what set of steps led to the error message that you copy/pasted.

gvdhoorn gravatar image gvdhoorn  ( 2017-01-17 06:36:16 -0500 )edit

I have no direct experience with the NDK integration, but from the error message I would say that the docker image that is being used does not have PkgConfig installed or CMake can't find it. I recommend you open an issue here.

gvdhoorn gravatar image gvdhoorn  ( 2017-01-17 07:24:52 -0500 )edit

Well, thank you very much.

zzkzsmj gravatar image zzkzsmj  ( 2017-01-17 07:45:55 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2017-01-17 09:39:19 -0500

Currently we don't support using PkgConfig with the ROS NDK, you will need to use a workaround to specify the correct variables for the library you need to use (in this case libusb). Here's an example on how we do that for another package.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-01-14 00:36:40 -0500

Seen: 5,392 times

Last updated: Jan 17 '17