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

Reply

Join Date: Aug 2007
Posts: 3
Reputation: mayuning2nd is an unknown quantity at this point 
Solved Threads: 0
mayuning2nd mayuning2nd is offline Offline
Newbie Poster

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

 
0
  #1
Aug 23rd, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,358
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1463
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

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

 
0
  #2
Aug 24th, 2007
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.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

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

 
0
  #3
Aug 24th, 2007
Use a windows compiler to compile your code, and use a native windows version of the GTK library (assuming one exists).
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 3
Reputation: mayuning2nd is an unknown quantity at this point 
Solved Threads: 0
mayuning2nd mayuning2nd is offline Offline
Newbie Poster

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

 
0
  #4
Aug 24th, 2007
Originally Posted by Ancient Dragon View Post
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 !
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 3
Reputation: mayuning2nd is an unknown quantity at this point 
Solved Threads: 0
mayuning2nd mayuning2nd is offline Offline
Newbie Poster

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

 
0
  #5
Aug 24th, 2007
Originally Posted by Salem View Post
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!
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 486
Reputation: Bench has a spectacular aura about Bench has a spectacular aura about Bench has a spectacular aura about 
Solved Threads: 48
Bench's Avatar
Bench Bench is offline Offline
Posting Pro in Training

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

 
0
  #6
Aug 24th, 2007
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.
¿umop apisdn upside down?
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 170
Reputation: TkTkorrovi is on a distinguished road 
Solved Threads: 11
TkTkorrovi's Avatar
TkTkorrovi TkTkorrovi is offline Offline
Junior Poster

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

 
0
  #7
Aug 24th, 2007
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.
Knowledge is regarded by the fool as ignorance, and the things that are profitable are to him hurtful. He liveth in death. -- Thoth the Atlantean
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 170
Reputation: TkTkorrovi is on a distinguished road 
Solved Threads: 11
TkTkorrovi's Avatar
TkTkorrovi TkTkorrovi is offline Offline
Junior Poster

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

 
0
  #8
Aug 24th, 2007
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.
Knowledge is regarded by the fool as ignorance, and the things that are profitable are to him hurtful. He liveth in death. -- Thoth the Atlantean
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC