Results 1 to 10 of 12
Hello ppl out there, please lend me your knowledge :P
I instaled Ubuntu recenty and i am using gcc alot. What i know is that at dev-cpp in windows enviroment ...
- 11-07-2009 #1Just Joined!
- Join Date
- Nov 2009
- Posts
- 6
"Windowed" programs in gcc
Hello ppl out there, please lend me your knowledge :P
I instaled Ubuntu recenty and i am using gcc alot. What i know is that at dev-cpp in windows enviroment you can include windows.h and then create "windowed" programs. What i also know is that this windows.h header file is nowere to be found in linux. What i dont kown is if there is the possibility to create "windowed" programs in linux and if there is how?
Thank you in advance for your help
- 11-07-2009 #2
Windows.h is a header specific to windows, it is for creating windows applications, not graphical applications.
- 11-07-2009 #3Just Joined!
- Join Date
- Nov 2009
- Posts
- 6
ok so how can i create graphical applications?
- 11-07-2009 #4
You need to use a library such as GTK (gnome) or QT (KDE). There are other options available, but these are the most prominent 2.
- 11-07-2009 #5Just Joined!
- Join Date
- Nov 2009
- Posts
- 6
is it ready to use or i have to download it?
- 11-07-2009 #6
you should install the development packages using your package manager
you can tell they are the development packages because they end in -dev
You will need to install gtk2-dev or qt4-dev, etc.
- 11-07-2009 #7Just Joined!
- Join Date
- Nov 2009
- Posts
- 6
could you direct me to any place i could download something of these in one part cause if i try to download them from gtk.org i have to download about 20 files which is quite annoying
- 11-07-2009 #8Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
Synaptic Package Manager.
It's a best friend.
- 11-07-2009 #9Just Joined!
- Join Date
- Nov 2009
- Posts
- 6
it may sound a litle wierd but my linux pc doesnt have internet so i had to download the gtk in my windows pc and now i want to tranfer it in my linux pc.Only problem is that i dont know where it place the foldiers i just downloaded. Could you tell me (total newbie here)
- 11-07-2009 #10Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
You should check out the AptOnCD project.
Anyway, the files you downloaded are source libraries. I'm not sure where exactly you'd expand them out to myself so they'd be available to ./configure scripts, but I'd think there should be instructions in each one.
I'm looking this up right now (it looks like the only file you'd need is gtk+-2.18.3.tar.bz2, the rest are alternate versions, diff files, and text files)
---
Edit2:
Here's the install text:This means you will also need the filesCode:Prerequisites ============= GTK+ requires the following packages: - The GLib, Pango, ATK and cairo libraries, available at the same location as GTK+. GTK+ 2.18.3 requires at least GLib 2.17.6, Pango 1.20, ATK 1.13.0 and cairo 1.6.0. - The TIFF, PNG, and JPEG image loading libraries. You most likely have these installed on your system already. If not these libraries are available from: http://www.libtiff.org/ http://www.libpng.org/ http://www.ijg.org/ libtiff must be version 3.6.0 or higher. Simple install procedure ======================== % gzip -cd gtk+-2.18.3.tar.gz | tar xvf - # unpack the sources % cd gtk+-2.18.3 # change to the toplevel directory % ./configure # run the `configure' script % make # build GTK+ [ Become root if necessary ] % make install # install GTK+ The Details =========== Complete information about installing GTK+ and related libraries can be found in the file: docs/reference/gtk/html/gtk-building.html Or online at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html
glib-2.22.2.tar.bz2
pango-1.26.0.tar.bz2
from the other directories.
You don't want to actually build and install gtk, you should already have gtk installed. What you're asking about is developing for gtk. I'm a little clueless what to do next, so I'd have you look at their developer's page.
GNOME Library - Developers
...
I'm starting to think you'd really be better off with installing the .deb packages from the *buntu repositories instead.Last edited by D-cat; 11-07-2009 at 08:35 PM.


Reply With Quote