| | |
Dear everyone, nice to be here. and a problem regard GTK
![]() |
•
•
Join Date: Aug 2007
Posts: 3
Reputation:
Solved Threads: 0
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 !
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
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.
•
•
Join Date: Aug 2007
Posts: 3
Reputation:
Solved Threads: 0
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 !
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
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? 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
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
![]() |
Similar Threads
- Oracle Service Problem (Oracle)
- "Save target as" problem (Windows NT / 2000 / XP)
- how to execute c++ exe from java (Java)
- gets() problem in C (C)
- Identity Column Problem in MS SQL Server (MS SQL)
- cable conection problem (Community Introductions)
- System32 Folder Opens When Windows NT Starts and Windows explorer folders do not o (Windows NT / 2000 / XP)
- file types: eliminating leading white spaces (C)
- problems with MSIESH.DLL (Viruses, Spyware and other Nasties)
- another samba loser (*nix Software)
Other Threads in the C Forum
- Previous Thread: c
- Next Thread: Mouse Configuration
| Thread Tools | Search this Thread |
adobe api array arrays binarysearch calculate char cm convert copyanyfile copypdffile cprogramme createcopyoffile createprocess() csyntax directory dynamic feet fflush file floatingpointvalidation fork forloop frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking hardware highest homework i/o inches incrementoperators intmain() iso kernel kilometer km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. match matrix microsoft motherboard mqqueue mysql oddnumber odf open opendocumentformat opensource openwebfoundation owf pattern pdf performance pointer posix power probleminc program programming pyramidusingturboccodes read recursion recv recvblocked repetition research scanf scheduling segmentationfault send shape socketprograming socketprogramming stack standard strchr string suggestions systemcall test unix urboc user variable voidmain() wab win32api windows.h






