From c4cfcddffab514520ec61c1c2efcc95284b8d592 Mon Sep 17 00:00:00 2001 From: Jose Luis Rivero Date: Mon, 21 Jul 2025 19:05:09 +0200 Subject: [PATCH] Remove server+client flags from independent standalone execs Signed-off-by: Jose Luis Rivero --- src/cmd/gui_main.cc | 18 ------------------ src/cmd/sim_main.cc | 2 ++ 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/cmd/gui_main.cc b/src/cmd/gui_main.cc index 76e55cdcdd..b030679bba 100644 --- a/src/cmd/gui_main.cc +++ b/src/cmd/gui_main.cc @@ -67,24 +67,6 @@ void addGuiFlags(CLI::App &_app) "for the GUI.") ->check(CLI::IsMember({"opengl", "vulkan", "metal"})); - _app.add_option("--render-engine", opt->renderEngineGui, - "Gazebo Rendering engine plugin to load for both the Server\n" - "and the GUI. Gazebo will use OGRE2 by default.\n" - "Make sure custom plugins are inside\n" - "GZ_SIM_RENDER_ENGINE_PATH.") - ->default_str("ogre2"); - - _app.add_option("--render-engine-api-backend", - opt->renderEngineGuiApiBackend, - "API to use for both Server and GUI.\n" - "Possible values for ogre2:\n" - " - opengl (default)\n" - " - vulkan (beta)\n" - " - metal (Apple only. Default for Apple)\n" - "Note: If Vulkan is being in the GUI and gz-gui was\n" - "built against Qt < 5.15.2, it may be very slow") - ->check(CLI::IsMember({"opengl", "vulkan", "metal"})); - _app.add_option("--gui-config", opt->guiConfig, "Gazebo GUI configuration file to load.\n" "If no file is provided then the configuration in\n" diff --git a/src/cmd/sim_main.cc b/src/cmd/sim_main.cc index bf9cefe1e9..c6bdfea664 100644 --- a/src/cmd/sim_main.cc +++ b/src/cmd/sim_main.cc @@ -338,6 +338,7 @@ void addSimFlags(CLI::App &_app, std::shared_ptr _opt) "for the Server.") ->check(CLI::IsMember({"opengl", "vulkan", "metal"})); +#ifdef WITH_GUI _app.add_option_function("--render-engine", [_opt](const std::string &_renderEngine){ _opt->renderEngineGui = _renderEngine; @@ -362,6 +363,7 @@ void addSimFlags(CLI::App &_app, std::shared_ptr _opt) "Note: If Vulkan is being in the GUI and gz-gui was\n" "built against Qt < 5.15.2, it may be very slow") ->check(CLI::IsMember({"opengl", "vulkan", "metal"})); + #endif _app.add_flag("--headless-rendering", _opt->headlessRendering, "Run rendering in headless mode.");