ros2-realtime-demo / pendulum

ROS, ROS2, real-time, control, pendulum
Apache License 2.0
132 stars 38 forks source link

building foxy branch fails #64

Closed InitialDuan closed 3 years ago

InitialDuan commented 4 years ago

Hello, I'm trying to build foxy branch on ade, it gives the following output:

runtao@ade:~/pendulum_ws$ colcon build
Starting >>> pendulum2_msgs
Starting >>> pendulum_utils
Finished <<< pendulum_utils [2.72s]                                    
Finished <<< pendulum2_msgs [6.13s]                     
Starting >>> pendulum_controller
Starting >>> pendulum_driver
--- stderr: pendulum_driver                                             
CMake Error at CMakeLists.txt:59 (find_package):
  By not providing "Findapex_test_tools.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "apex_test_tools", but CMake did not find one.

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

    apex_test_toolsConfig.cmake
    apex_test_tools-config.cmake

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

---
Failed   <<< pendulum_driver [1.77s, exited with code 1]
Aborted  <<< pendulum_controller [1.78s]

Summary: 2 packages finished [8.07s]
  1 package failed: pendulum_driver
  1 package aborted: pendulum_controller
  2 packages had stderr output: pendulum_controller pendulum_driver
  3 packages not processed
carlossvg commented 4 years ago

Hi @InitialDuan, thanks for reporting this. It looks like apex_test_tools is not being installed in the ADE image. We will update the image to fix the issue.

As a workaround you can clone the package manually in your workspace:

$ cd adehome
$ mkdir -p pendulum_ws/src
$ cd pendulum_ws/src
$ git clone git@github.com:ros2-realtime-demo/pendulum.git
$ git clone --branch foxy git@gitlab.com:ApexAI/apex_test_tools.git

@LanderU Could you add apex_test_tools to the ADE image?

InitialDuan commented 4 years ago

Thanks, it works after cloning the package manually.

carlossvg commented 4 years ago

Let's keep the issue open until we add apex_test_tools to the ADE image.

LanderU commented 4 years ago

I'm having some issues building the image with correct support. I'm going to add some changes to your base dockerfile to avoid them.

LanderU commented 4 years ago

I've pushed a workaround, but, I need to review the best way to include dependencies on ade image. BTW, the image is not ready yet on dockerhub.