Skip to content

Intrinsic Camera Calibrator: glog flag conflict error (logtostderr defined twice) #269

@Ablazesphere

Description

@Ablazesphere

I'm following the intrinsic camera calibration tutorial (https://autowarefoundation.github.io/autoware-documentation/main/how-to-guides/integrating-autoware/creating-vehicle-and-sensor-model/calibrating-sensors/intrinsic-camera-calibration/) and getting this error when launching:

ERROR: flag 'logtostderr' was defined more than once (in files './src/logging.cc' and '/home/shuttle_01/Desktop/Reva/autoware.reva/src/universe/external/glog/src/logging.cc').
[ERROR] [camera_calibrator-1]: process has died [pid 101120, exit code 1]

It looks like there's a conflict between the system glog (likely pulled in via libgoogle-glog-dev or Ceres) and Autoware's external glog package. Both are being linked, causing duplicate flag definitions.

Environment:

  • Autoware.reva workspace
  • Following the official intrinsic camera calibration tutorial
  • The ceres_intrinsic_camera_calibrator package depends on libgoogle-glog-dev

Has anyone encountered this before? Any suggestions on how to resolve the glog linking conflict? 🤔

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions