gazebosim / gz-launch

Run and manage programs and plugins.
https://gazebosim.org
Apache License 2.0
11 stars 15 forks source link

Homebrew build fails: fatal error: 'linux/joystick.h' file not found #1

Closed osrf-migration closed 5 years ago

osrf-migration commented 5 years ago

Original report (archived issue) by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


Build Status https://build.osrfoundation.org/job/ignition_launch-ci-pr_any-homebrew-amd64/3/

plugins/joy_to_twist/JoyToTwist.cc:19:10: fatal error: 'linux/joystick.h' file not found
#include <linux/joystick.h>
         ^~~~~~~~~~~~~~~~~~
[ 60%] Linking CXX static library ../lib/libgtest_main.a
[ 65%] Linking CXX shared library ../../lib/libignition-launch0-gazebogui.dylib
plugins/joystick/Joystick.cc:19:10: fatal error: 'linux/joystick.h' file not found
#include <linux/joystick.h>
         ^~~~~~~~~~~~~~~~~~
ld: library not found for -lignition-gazebo1-gui
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libignition-launch0-gazebogui.dylib] Error 1
osrf-migration commented 5 years ago

Original comment by Jose Luis Rivero (Bitbucket: Jose Luis Rivero, GitHub: j-rivero).


Consensus from the gazebo team was to disable the joystick support on Mac at this point since this is the current situation in gazebo classic. I'll implement this.

osrf-migration commented 5 years ago

Original comment by Jose Luis Rivero (Bitbucket: Jose Luis Rivero, GitHub: j-rivero).


Fixed https://osrf-migration.github.io/ignition-gh-pages/#!/ignitionrobotics/ign-launch/pull-requests/12/compile-joystick-only-on-linux/diff