I’m having trouble getting output to show in the terminal when running Urho3DPlayer from the terminal/command prompt in Windows (Windows 8.1 to be exact). It seems that its just creating the application window (but not staying attached to the terminal window). Linux stays attached to the terminal when you run the player from a terminal though. Is there anyway to do this in windows? I want to be able to run a headless server, but still see messages and stuff (for when it crashes, or when I call Print in my scripts)
Urho Windows applications don’t use the console subsystem, so they don’t attach to a console window.
You can use the OpenConsoleWindow() function to open a separate window to which stdout / stderr prints will appear. Alternatively you can comment out (add # symbol) line 576 from Source/CMake/Modules/Urho3D-CMake-common.cmake to make applications use the console subsystem:
We can make this configurable, if we really want it. However, it is harder to say that using main (console) instead of WinMain as entry point is the best default setting for Windows platform.
I’ve figured this out. My bad!
I use Qt Creator for development and it seems this IDE somehow mixes standart outputs when launching from it. When I launch exe in system by myself everything is normal