diff --git a/src/gui/settings.cc b/src/gui/settings.cc
index 5192be5758acdab776a0d862564dbfbe7d12501b..c26a8f5910e6c376ebc39d9194030d671e1f38c5 100644
--- a/src/gui/settings.cc
+++ b/src/gui/settings.cc
@@ -131,10 +131,8 @@ namespace gepetto {
         addEnvFromString (opt);
       while (arguments.read ("-p", opt) || arguments.read ("--load-plugin", opt))
         addPlugin (QString::fromStdString(opt), !noPlugin);
-#if GEPETTO_GUI_HAS_PYTHONQT
       while (arguments.read ("-q", opt) || arguments.read ("--load-pyplugin", opt))
         addPyPlugin (QString::fromStdString(opt), !noPlugin);
-#endif
 
       if (arguments.read("-c", configurationFile) || arguments.read("--config-file", configurationFile)) {}
       if (arguments.read("--predefined-robots",       predifinedRobotConf)) {}
@@ -192,6 +190,11 @@ namespace gepetto {
         } else
           pw->loadModulePlugin (name);
       }
+#else
+      foreach (QString name, pyplugins_) {
+        logError ("gepetto-viewer-corba was compiled without GEPETTO_GUI_HAS_"
+            "PYTHONQT flag. Cannot not load Python plugin " + name);
+      }
 #endif
     }
 
@@ -299,13 +302,11 @@ namespace gepetto {
             addPlugin (name, (noPlugin)?false:env.value(name, true).toBool());
         }
         env.endGroup ();
-#if GEPETTO_GUI_HAS_PYTHONQT
         env.beginGroup("pyplugins");
         foreach (QString name, env.childKeys()) {
             addPyPlugin (name, (noPlugin)?false:env.value(name, true).toBool());
         }
         env.endGroup ();
-#endif
         log (QString ("Read configuration file ") + env.fileName());
       }
     }