ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
what are the list of packages to install in windows machine to run gtk application or gtk programs perfectly.
i am new to windows machine.
i need to develop a gui application in windows using gtk and c.
I did this last night, a lot easier than I thought it would be.
I went to gtk page, dl'd the all in one package, extracted, read the read me, added the bin dir to the path, then ran a command listed in the read me, the output looked good. Started up codeblocks IDE, created a new default gtk project, compiled and ran sweet as. Then today i've ported a few of my apps just as easily... Then copied over to another machine, ran the release prog, no joy, so quickly copied the bin dir over, dropped my prog in and it ran like it had 64 legs, don't know what to call it, maybe a wobbly centipede?
/* Connect to the "color_changed" signal, set the client-data
* to the colorsel widget */
g_signal_connect (G_OBJECT (colorsel), "color_changed",
G_CALLBACK (color_changed_cb), (gpointer) colorsel);
/* Show the dialog */
response = gtk_dialog_run (GTK_DIALOG (colorseldlg));
/* Enter the gtk main loop (this never returns) */
gtk_main ();
/* Satisfy grumpy compilers */
return 0;
}
compile:
Code:
gcc color.c -o color `pkg-config gtk+-2.0 --cflags --libs`
pkg-config not found
glib.h not found
.....
what i have to do.
how to compile this program in windows machine.
and also i installed glade tool for developing some gui.
in that tool i cant find build button.
i find save button, if i click this the only "project.glade" is saving.
how to build the code for glade.
if MinGW then there a LOT of files that need to be edited for the correct path . Almost every script in
C:\\GnuWin32/MinGW/bin
C:\\GnuWin32/MinGW/lib/pkgconfig
and some in
C:\\GnuWin32/MinGW/share
C:\\GnuWin32/MSys/bin
also add to the windows system path ( BEFORE C:\\Program Files\Microsoft Visual Studio -- if installed)C:\\GnuWin32/MinGW/bin,C:\\GnuWin32/MinGW/lib,C:\\GnuWin32/MSys/bin,C:\\GnuWin32/MinGW/share
--------
the first thing i do with a new mingw install( after getting it configured) is to build " the gimp" if it builds ,installs and runs then Mingw is set up and ready to go .
Last edited by John VV; 09-15-2008 at 12:52 AM.
Reason: added to
if MinGW then there a LOT of files that need to be edited for the correct path . Almost every script in
C:\\GnuWin32/MinGW/bin
C:\\GnuWin32/MinGW/lib/pkgconfig
and some in
C:\\GnuWin32/MinGW/share
C:\\GnuWin32/MSys/bin
also add to the windows system path ( BEFORE C:\\Program Files\Microsoft Visual Studio -- if installed)C:\\GnuWin32/MinGW/bin,C:\\GnuWin32/MinGW/lib,C:\\GnuWin32/MSys/bin,C:\\GnuWin32/MinGW/share
--------
the first thing i do with a new mingw install( after getting it configured) is to build " the gimp" if it builds ,installs and runs then Mingw is set up and ready to go .
it is not helpful.
i given the path too.
can anybudy give the appropriate solution for this.
i'm not near a win machine at mo, but, oh that might be an example above... have you added the appropriate directories to the 'path' variable (my comp -> ? -> system variables -> path...?)
the reason i told you to add paths to The WINDOWS xp/vista SYSTEM path
is gcc is not finding "pkg-config" .Are automake,autoconf,and pkgconfig,... installed
also " glib.h " is not being found in " C:\\GnuWin32\MinGW\include "
is glibc installed
-------------
also rename " pkg-config " to " pkgconfig " in your build command
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.