NO

Author Topic: How To GTK+ in Pellec  (Read 5791 times)

bullygram

  • Guest
How To GTK+ in Pellec
« on: August 28, 2011, 07:05:35 PM »
How to use GTK+ in Pellec. Please tell me what should  I do in order to download and set up.
In project > Folders, I even included the include and the library files and still I am unsuccessful.  :(

CommonTater

  • Guest
Re: How To GTK+ in Pellec
« Reply #1 on: August 28, 2011, 10:10:51 PM »
You may find some help here ....   http://www.gtk.org/documentation.php

However, you might also want to give some thought to why you would want to use a wrapper library and custom widgets when the Windows API has such a rich set of features built right into the operating system.  Also Pelles C includes all the necessary headers and libs to begin Windows API programming as soon as you install.

Take a peek here ...  http://www.winprog.org/tutorial/   for a "getting started" level introduction to Windows API...
And, of course, look around in the Pelles C help file...
« Last Edit: August 28, 2011, 10:14:30 PM by CommonTater »

bullygram

  • Guest
Re: How To GTK+ in Pellec
« Reply #2 on: August 29, 2011, 07:51:21 AM »
I just want to do some cross platform GUI programming in C. Is there any other avabliable apart from GTK+ and Windows API?

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1555
Re: How To GTK+ in Pellec
« Reply #3 on: August 29, 2011, 08:26:03 AM »
What errors you get ?

This far:
- use define G_HAVE_ISO_VARARGS for includes

Add least these include paths:
..\include\gtk-2.0;..\include\cairo;..\include\glib-2.0;..\lib\glib-2.0\include;..\include\pango-1.0;..\lib\glib-2.0;..\lib\gtk-2.0;..\lib\gtk-2.0\include;..\include\atk-1.0

PS: better not to use GTK for small programs (or any).
May the source be with you

CommonTater

  • Guest
Re: How To GTK+ in Pellec
« Reply #4 on: August 29, 2011, 01:59:47 PM »
I just want to do some cross platform GUI programming in C. Is there any other avabliable apart from GTK+ and Windows API?

You will find similar complexities with any third party library.  Always you have to put them some place (NOT directly in the Pelles C includes and libs folders) then add their includes and libs to your project paths as Timo explained...  Very often you will need to recompile them as well. 

I take it you understand that "crossplatform" only works at the source code level.  That is, to have the same app on Linux you will need to recompile it on Linux using a linux compiler like GCC... It might be simpler to work in Windows API and run them under an emulator on other OSs... Use Wine for Linux, and there's one for the Mac too...

In any case there are multiple libraries you can work with... but beware most are C++ or C#.

Google is your friend.... http://www.google.ca/search?q=wxwidgets&rls=com.microsoft:en-ca&ie=UTF-8&oe=UTF-8&startIndex=&startPage=1&redir_esc=&ei=WoxbTum1J6ja0QGatYGUCQ#pq=c+cross+platform+library&hl=en&cp=30&gs_id=20&xhr=t&q=c+cross+platform+library++-c%2B%2B&pf=p&sclient=psy&rls=com.microsoft:en-ca&source=hp&pbx=1&oq=c+cross+platform+library++-c%2B%2B&aq=f&aqi=&aql=&gs_sm=&gs_upl=&bav=on.2,or.r_gc.r_pw.&fp=95d6da40cb95822a&biw=1157&bih=842




faris

  • Guest
Re: How To GTK+ in Pellec
« Reply #5 on: December 31, 2013, 01:48:06 PM »
I take it you understand that "crossplatform" only works at the source code level.  That is, to have the same app on Linux you will need to recompile it on Linux using a linux compiler like GCC.is that okay?

Persay

  • Guest
Re: How To GTK+ in Pellec
« Reply #6 on: March 04, 2014, 10:25:09 AM »
Say you want to run a specific version of GTK on Linux Ubuntu. And you want to know what version of Ubuntu it comes in so you don't have to build GTK manually (NOT RECOMMENDED) you can do a search here: http://packages.ubuntu.com/

Offline rweidner

  • Member
  • *
  • Posts: 7
Re: How To GTK+ in Pellec
« Reply #7 on: September 17, 2014, 06:22:37 PM »