| Disabling Console Screen |
| Author
|
Thread |
 |
|
e_orz
Joined: 09 Nov 2006
Posts: 6
|
Disabling Console Screen
Is there a way to disable the console screen that starts with scummVM?
|
Tue Nov 14, 2006 10:30 pm |
|
|
|
|
ExultDominus
Joined: 03 Mar 2008
Posts: 12
|
sorry for the necrophilia.
I was searching the documentation and the FAQ but couldn't find any mention of whether you can hide the console window nowadays, so then I searched the forum and found only this small thread.
So is it possible nowadays or still not possible? (I assume you can still compile it with the No_Console switch, though)
|
Fri Apr 04, 2008 12:16 pm |
|
|
Lostech
Joined: 04 May 2007
Posts: 154
|
I think this depends on with which compiler or project file ScummVM for Windows was build.
IMHO it seems that this console window does only show up if ScummVM has been compiled with MSVC.
If ScummVM has been compiled with MinGW (GNU style in MSYS bash) there is no console window shown when it starts.
So perhaps the Windows MSVC maintainer should have an eye on the project file. Perhaps there is also in release configuration something enabled in the SDL part which was meant for debug config.
BTW: actually the actual SVN does also not compile with MSVC8.
|
Fri Apr 04, 2008 1:03 pm |
|
|
|
|
md5
ScummVM Developer

Joined: 03 Nov 2005
Posts: 2065
Location: Athens, Greece |
quote: Originally posted by Lostech I think this depends on with which compiler or project file ScummVM for Windows was build.
IMHO it seems that this console window does only show up if ScummVM has been compiled with MSVC.
If ScummVM has been compiled with MinGW (GNU style in MSYS bash) there is no console window shown when it starts.
So perhaps the Windows MSVC maintainer should have an eye on the project file. Perhaps there is also in release configuration something enabled in the SDL part which was meant for debug config.
BTW: actually the actual SVN does also not compile with MSVC8.
That's not true, you can disable the console in both MSVC and MinGW. It's enabled by default in ScummVM's MSVC project options, and to disable it in GCC you need to supply the "-mwindows" switch, which builds a windows application (without the console). If you do wish to disable the console under MSVC, you can always check the compilation instructions we got, it's right there:
http://wiki.scummvm.org/index.php/Compiling_ScummVM/Visual_Studio#Enabling_the_console
(follow the reverse procedure)
Also, both the stable 0.11.1 source and the SVN version compile fine under MSVC7.1, MSVC8 and MSVC9, so I'm not sure why you're saying that you can't compile it. Have you included all the required libraries? What sort of error are you getting?
Step-by-step instructions for compiling the source for a variety of compilers and platforms can be found in the project's wiki:
http://wiki.scummvm.org/index.php/Compiling_ScummVM
|
Fri Apr 04, 2008 1:42 pm |
|
|
Lostech
Joined: 04 May 2007
Posts: 154
|
The MSVC compiling problem is solved.
It seems that I checked out this morning a SVN revision which was finally not fully updated (pretty much changes today).
So I copied the working SVN source files from the MinGW folder where a older SVN checkout from yesterday has been to the MSVC folder and compiling worked then. Now I have only a small linking problem because I´ve copied the MinGW libs... But this is easy to solve.
But why is the console enabled by default within the MSVC project and not in the normal GCC makefile?
|
Fri Apr 04, 2008 2:47 pm |
|
|
ExultDominus
Joined: 03 Mar 2008
Posts: 12
|
compiling with mingw indeed has the -mwindow set by default. Thanks. The initial compile went well, now I only need to put all the libs there, so everything get enabled 
|
Fri Apr 04, 2008 2:50 pm |
|
|
MusicallyInspired

Joined: 02 Mar 2007
Posts: 876
Location: Winnipeg, MB Canada |
quote: Originally posted by md5 That's not true, you can disable the console in both MSVC and MinGW. It's enabled by default in ScummVM's MSVC project options, and to disable it in GCC you need to supply the "-mwindows" switch, which builds a windows application (without the console).
Sorry for the necromancy. What exactly do you type in MSYS to do this? Eveything I try is unrecognized. Or do you edit the makefile to include it or something?
|
Mon Aug 15, 2011 6:09 pm |
|
|
KuroShiro
Joined: 15 May 2008
Posts: 437
Location: Miyazaki, Japan |
quote: Originally posted by MusicallyInspired quote: Originally posted by md5 That's not true, you can disable the console in both MSVC and MinGW. It's enabled by default in ScummVM's MSVC project options, and to disable it in GCC you need to supply the "-mwindows" switch, which builds a windows application (without the console).
Sorry for the necromancy. What exactly do you type in MSYS to do this? Eveything I try is unrecognized. Or do you edit the makefile to include it or something?
You don't do anything in msys. Find the sdl-config file (it should be in your MinGW /bin directory) and edit it with some sort of notepad program. Scroll down a bit, and you should see the various flags. By default, under --libs and --static-libs, there should be a -mwindows flag. If you want the console to appear, you have to delete it (doing so shouldn't affect anything else). Alternatively, if you don't want it to appear, you have to add the flag along with the others.
|
Mon Aug 15, 2011 9:08 pm |
|
|
MusicallyInspired

Joined: 02 Mar 2007
Posts: 876
Location: Winnipeg, MB Canada |
I see. Where do I add it then? It's already there. I assume I have to add it somewhere else? Thanks for the response.
|
Mon Aug 15, 2011 9:15 pm |
|
|
KuroShiro
Joined: 15 May 2008
Posts: 437
Location: Miyazaki, Japan |
quote: Originally posted by MusicallyInspired I see. Where do I add it then? It's already there. I assume I have to add it somewhere else? Thanks for the response.
If it's already there twice then the console should be disabled by default (you'll have to run configure again for it to change I think). If it's not you could try downloading a new copy of the sdl stuff from their website. If you're trying to reactivate the console then just delete -mwindows wherever it appears.
|
Tue Aug 16, 2011 4:17 am |
|
|
Kirben
ScummVM Developer
Joined: 21 Sep 2005
Posts: 389
Location: Melbourne, Victoria, Australia |
The console window can no longer be disabled during compilation.
Use the --no-console command line option, to disable the console window under Windows.
|
Tue Aug 16, 2011 8:04 am |
|
|
MusicallyInspired

Joined: 02 Mar 2007
Posts: 876
Location: Winnipeg, MB Canada |
Oh nice! I was waiting for it to be a command line parameter option. Didn't see it in the command line info page.
|
Tue Aug 16, 2011 2:24 pm |
|
|
|
Forum Rules:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
|
|