Ticket #1276 (closed defect: invalid)

Opened 23 months ago

Last modified 21 months ago

hiding the console window and creating a standalone app

Reported by: guest Owned by: somebody
Priority: normal Milestone: 0.11.0
Component: general (Gtk+, Glib) Version: 0.11.0
Keywords: Cc:

Description

I have been attempting to get my first gtk2hs application building the way I like it and need some assistance at this point.

My first and probably most important issue is that I can't get -optl-mwindows to work (e.g. it doesn't hide the console window on windows 7 or 8). I put this in the ghc-options like this post: http://projects.haskell.org/gtk2hs/archives/2005/06/23/hiding-the-console-on-windows/ says to, but it doesn't seem to do anything.

Second I've been unable to get my project to build as a single standalone executable, no matter what options I specify it always builds with dependencies on the gtk .dlls. I have so far tried ghc-options: -static -optl-static, cabal-dev install -fstatic -optl-static, ld-options: -static etc. Nothing works. I have ensured that the build can only see the gtk/include and gtk/lib directory but I still end up with a small executable and dependencies upon the gtk .dlls.

Any help would be appreciated.

Change History

Changed 22 months ago by guest

As discussed on the mailing list, the -optl-mwindows problem was transient and the standalone executable problem is pretty far out of gtk2hs' purview.

Changed 21 months ago by dmwit

  • status changed from new to closed
  • resolution set to invalid
Note: See TracTickets for help on using tickets.