Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ros2 launch ov_msckf...: ERROR: flag 'logtostderr' was defined more than once #482

Open
diplodocuslongus opened this issue Nov 8, 2024 · 1 comment
Labels
compile User has trouble compiling on their own platform.

Comments

@diplodocuslongus
Copy link

diplodocuslongus commented Nov 8, 2024

OpenVINS was built successfully with ROS2 humble, ubuntu 22.04, ceres 2.0.

But when I run:

ros2 launch ov_msckf subscribe.launch.py config:=euroc_mav

I get the error:

flag 'logtostderr' was defined more than once (in files './src/logging.cc' and $HOME/builds/glog/src/logging.cc')

Obviously this is related to the fact that I have built my own glog locally, but why would ros2 launch ... pick up this local logging.cc file? Also there is no logging.cc in ./src (there is only one location where in my $HOME I can find a logging.cc, it is in $HOME/builds/glog/src/logging.cc.

The full error message is:


$ source install/setup.bash
$ ros2 launch ov_msckf subscribe.launch.py config:=euroc_mav
[INFO] [launch]: All log files can be found below $HOME/.ros/log/2024-11-08-16-10-57-225185-52-0960514-95-725864
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [run_subscribe_msckf-1]: process started with pid [725866]
[run_subscribe_msckf-1] ERROR: flag 'logtostderr' was defined more than once (in files './src/logging.cc' and '$HOME/builds/glog/src/logging.cc').
[ERROR] [run_subscribe_msckf-1]: process has died [pid 725866, exit code 1, cmd '$HOME/ROS2_workspaces/open_vins_ws/install/ov_msckf/lib/ov_msckf/run_subscribe_msckf --ros-args -r __ns:=/ov_msckf --params-file /tmp/launch_params_h77ome49 --params-file /tmp/launch_params_eqrid_1w --params-file /tmp/launch_params_v4wmqw1r --params-file /tmp/launch_params_0uvnrf0y --params-file /tmp/launch_params_od52v2kr'].
@diplodocuslongus
Copy link
Author

I still don't know how this is happening, but uninstalling my locally built glog solved the issue. I leave this issue open as this may be due to how the openVINS build with colcon is setup (it shouldn't fetch more than one location for glog).

@goldbattle goldbattle added the compile User has trouble compiling on their own platform. label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compile User has trouble compiling on their own platform.
Projects
None yet
Development

No branches or pull requests

2 participants