diff --git a/src/main.cc b/src/main.cc index d51a8b2..1940222 100644 --- a/src/main.cc +++ b/src/main.cc @@ -114,6 +114,12 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved) int main(int argc, char *argv[]) { +#ifdef Q_OS_UNIX + //FOrce writing to the console on UNIX/BSD devices + if (!qEnvironmentVariableIsSet("QT_LOGGING_TO_CONSOLE")) + qputenv("QT_LOGGING_TO_CONSOLE", "1"); +#endif + // install the message handler AppMessages::installHandler(); @@ -150,7 +156,6 @@ int main(int argc, char *argv[]) break; } } - #endif // The following calls to qRegisterMetaType are done to silence debug output which warns