Ancurio / mkxp

Free Software implementation of the Ruby Game Scripting System (RGSS)
GNU General Public License v2.0
532 stars 140 forks source link

Crosscompiling mkxp then switch to windows to run it but opens a console #215

Closed edwinacunav closed 5 years ago

edwinacunav commented 5 years ago

I'm unsure whether this is an issue or not, but when I used mingw to compile a 64 bit binary executable I noticed it always opens the console window aka command window to let me know it loaded stuff like fluidsynth or not. How can I also compile a version that does not open that secondary window? I'm not saying it's bad to get a console window (as support) but ready to distribute games won't look as good as expected if the executable keeps opening that second window... I'm working on *Ubuntu using mingw64 to crosscompile to Windows (especifically 8.1). By the way, I also tried to compile it on Windows via mingw but it was a total mess... :S so I would prefer not to go through that ever again if possible. XD

carstene1ns commented 5 years ago

Do you use CMake? Add WIN32 property to the CMakeLists.txt.

I suggest we should add some logic like we do for EasyRPG Player here, too.

Ancurio commented 5 years ago

• How do I remove DOS command windows? In the link step add a "-mwindows" switch to the command line.

http://www.mingw.org/wiki/FAQ

carstene1ns commented 5 years ago

...and this is exactly what cmake will do when it detects mingw.

edwinacunav commented 5 years ago

Thank you, guys, but I had figured it out during my absence. I'm sorry for not showing up earlier to close the issue, he, he. What's positive about this is that many more people should now get access to the same info as I did. Thank you again for your assistance.