943,962 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1347
  • C RSS
Aug 23rd, 2007
0

Dear everyone, nice to be here. and a problem regard GTK

Expand Post »
first greeting to everyone here. this is a nice forum that we can share and discuss.

I used to do a GUI program in c using GTK 2.0 under the cygwin platform, but the built file (.exe file) can only display the GUI at the Unix environment (cygwin X11 server), so any idea on how to let the .exe file be able to run (display GUI) on windows by itself, no need to turn on the x11 server.

thanks !
Last edited by mayuning2nd; Aug 23rd, 2007 at 11:29 pm. Reason: Linux to Unix
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mayuning2nd is offline Offline
3 posts
since Aug 2007
Aug 24th, 2007
0

Re: Dear everyone, nice to be here. and a problem regard GTK

compile it on MS-Windows with a compiler that supports MS-Windows or use a cross compiler on *nix that generates MS-Windows file format executables. Just simply renaming the file is not sufficient.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,953 posts
since Aug 2005
Aug 24th, 2007
0

Re: Dear everyone, nice to be here. and a problem regard GTK

Use a windows compiler to compile your code, and use a native windows version of the GTK library (assuming one exists).
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Aug 24th, 2007
0

Re: Dear everyone, nice to be here. and a problem regard GTK

compile it on MS-Windows with a compiler that supports MS-Windows or use a cross compiler on *nix that generates MS-Windows file format executables. Just simply renaming the file is not sufficient.
yup, this is what I am trying to do. but i do not know how to do cross compiling, can you tell me such a cross complier that i can use to compile GTK program? thanks !
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mayuning2nd is offline Offline
3 posts
since Aug 2007
Aug 24th, 2007
0

Re: Dear everyone, nice to be here. and a problem regard GTK

Click to Expand / Collapse  Quote originally posted by Salem ...
Use a windows compiler to compile your code, and use a native windows version of the GTK library (assuming one exists).
can you tell me a windows compiler for compiling C program. I am new to software development. Thanks a lot!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mayuning2nd is offline Offline
3 posts
since Aug 2007
Aug 24th, 2007
0

Re: Dear everyone, nice to be here. and a problem regard GTK

MingW is a popular windows compiler (for C and C++) - a windows port of the linux GCC tools.

have a look here http://www.mingw.org/

I have no idea whether it supports any of the GTK libraries you're using, you will most likely need to google around for windows versions of those
Last edited by Bench; Aug 24th, 2007 at 12:41 pm.
Reputation Points: 307
Solved Threads: 62
Posting Pro
Bench is offline Offline
565 posts
since Feb 2006
Aug 24th, 2007
0

Re: Dear everyone, nice to be here. and a problem regard GTK

Please see this thread http://www.daniweb.com/forums/thread86245.html I have used gtk with mingw quite a lot, but unfortunately not with cygwin. I know though, that there is a cygwin gtk port for windows gui as well, but unfortunately i have not much idea how to find it. The gtk package which you mentioned is likely gtk2-x11, i know there is also gtk+ package for cygwin, but this might be for gtk 1.2, not gtk 2... But what concerns mingw port, please ask if you have any problems installing it, likely better in the original thread. There used to be some packages for installing all gtk development files at once, but all which i ever knew, are unmaintained and broken by now. Many things necessary for gtk are really part of gnuwin32, which can be installed completely, but there would be a lot of things unnecessary then.
Reputation Points: 85
Solved Threads: 13
Junior Poster
TkTkorrovi is offline Offline
170 posts
since Mar 2005
Aug 24th, 2007
0

Re: Dear everyone, nice to be here. and a problem regard GTK

One way how you certainly can use gtk in cygwin with win32 gdk backend, is to install gtk source, and compile it with the appropriate options. This is not likely a very convenient option for many though. You can also use mingw gtk with cygwin gcc, when you use the -mno-cygwin flag, as it is said in the Tor Lillqwist site http://www.gimp.org/~tml/gimp/win32 This flag may though cause some problems in cygwin, but it's still likely somewhat better than using mingw, when you have cygwin.
Last edited by TkTkorrovi; Aug 24th, 2007 at 5:20 pm.
Reputation Points: 85
Solved Threads: 13
Junior Poster
TkTkorrovi is offline Offline
170 posts
since Mar 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: c
Next Thread in C Forum Timeline: Mouse Configuration





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC