today i am writing tutorial that how to configure code-blocks to develop GUI using gtk libraries.
(i was given a project called "budget monitoring system" in the last summer holidays by my college and they said that i have to do this project using c language and project should completely GUI based, so i have searched on Google and found a way to develop GUI based applications using c language )
(1) link to gtk:-
http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.24/gtk+-bundle_2.24.10-20120208_win32.zip
this link is a zip file of gtk. extract it in c drive
(2) link to glade:-
goto below link and log in and download Glade Interface Designer Gtk+ 2 copy it in c drive.
link:-> https://my.pcloud.com/publink/show?code=kZJCiZm2wGcstvuyBN9m4mmdWmbmWwHzay
(3) code blocks:-
link:-> http://www.codeblocks.org/downloads/26 go to this link and
download codeblocks-13.12mingw-setup.exe and install it.
(note:- if you already have code blocks with mingw installed then skip this)
now setup:-
step 1:- open codeblocks goto settings then click on compiler...
step2:-copy `pkg-config --libs gtk+-2.0` and paste it in linker settings then in other linker options.
example:
copy `pkg-config --cflags gtk+-2.0` and paste it in compiler settings then in other options
click ok and close the window.
example:
step 3: now you have to setup environment variables
(note: according to windows 8)
right click on computer icon and select properties.
now click on advanced system settings then click on environment variables.
now find PATH in system variables then click on it and then click edit.
now add path's of bin directories of gtk and mingw separated by semicolon
example:
if you have any problem then write comment.
now you are ready to start enjoy :)
(i was given a project called "budget monitoring system" in the last summer holidays by my college and they said that i have to do this project using c language and project should completely GUI based, so i have searched on Google and found a way to develop GUI based applications using c language )
(1) link to gtk:-
http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.24/gtk+-bundle_2.24.10-20120208_win32.zip
this link is a zip file of gtk. extract it in c drive
(2) link to glade:-
goto below link and log in and download Glade Interface Designer Gtk+ 2 copy it in c drive.
link:-> https://my.pcloud.com/publink/show?code=kZJCiZm2wGcstvuyBN9m4mmdWmbmWwHzay
(3) code blocks:-
link:-> http://www.codeblocks.org/downloads/26 go to this link and
download codeblocks-13.12mingw-setup.exe and install it.
(note:- if you already have code blocks with mingw installed then skip this)
now setup:-
step 1:- open codeblocks goto settings then click on compiler...
step2:-copy `pkg-config --libs gtk+-2.0` and paste it in linker settings then in other linker options.
example:
copy `pkg-config --cflags gtk+-2.0` and paste it in compiler settings then in other options
click ok and close the window.
example:
step 3: now you have to setup environment variables
(note: according to windows 8)
right click on computer icon and select properties.
now click on advanced system settings then click on environment variables.
now find PATH in system variables then click on it and then click edit.
now add path's of bin directories of gtk and mingw separated by semicolon
example:
if you have any problem then write comment.
now you are ready to start enjoy :)
No comments:
Post a Comment