-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--app:gui gives an error on osx. #2576
Comments
What is the equivalent of |
@dom96 Nothing, it seems: http://icculus.org/pipermail/quake3-commits/2014-July/002604.html |
I just hit this error on Linux when building a gui app with Nim/gcc. It's pretty clear from the gcc docs that this option is available only for MinGW and Cygwin targets. |
Looks like you are correct @mjoud. Any ideas how to achieve the same thing on Mac OS X/Linux? |
When I think about it, Is |
On Mac my UI application opens a console window ... |
Well, at least it's not necessary on Linux (which should be documented), so we're back at the OS X issue. |
Confirming the issue with nim 0.13.0 on OS X 10.11.3 (El Capitan). After removing the |
I think in order to get rid of a console window on OS X you need to put your application in an App Bundle (``myProgram.app`). |
BTW I don't think this is to do with installation. |
I don't think you need to put the app inside a bundle just to prevent the console window from showing. For example, check out the glfw project—all their example applications compile to single executable files on OS X (no bundle), yet they don't open a console window when launched either from Finder or the command line. |
@PMunch and I discovered in the wxnim repo that the So on Linux |
Yeah, I'm getting this on Linux as well. The reason for this is that Linux doesn't really differentiate between GUI and non-GUI programs as mjoud points out. So at least on Linux this flag should just not do anything. |
I've had a bit of a look around for compiling terminal-less GUI programs on OSX. And I'm not entirely sure what glfw does to work around this. I found someone asking about how Python does it and that's basically because it has an interpreter which is an app already. The same applies to apple-script. But for compiled programs I haven't been able to find anything but wrapping it up in a app file or a shell script like this: http://stackoverflow.com/questions/1810497/hide-console-for-tkinter-app-on-osx. |
With latest devel, this compiles fine on Mac, but opening the generated executable from Finder still opens a console window (what should it actually do, since it just echoes hello world?) |
Latest devel,
echo "hello world"
app, no custom configuration.The text was updated successfully, but these errors were encountered: