Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Ubuntu Help > "Windowed" programs in gcc

Forgot Password?
 Ubuntu Help   Discussion and help about Ubuntu, Kubuntu, Xubuntu, and all the Ubuntu family

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 1 Week Ago   #1 (permalink)
Just 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
latous is offline  


Reply With Quote
Old 1 Week Ago   #2 (permalink)
Linux Guru
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: NH, USA
Posts: 1,753
Windows.h is a header specific to windows, it is for creating windows applications, not graphical applications.
coopstah13 is offline   Reply With Quote
Old 1 Week Ago   #3 (permalink)
Just Joined!
 
Join Date: Nov 2009
Posts: 6
ok so how can i create graphical applications?
latous is offline   Reply With Quote
Old 1 Week Ago   #4 (permalink)
Linux Guru
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: NH, USA
Posts: 1,753
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.
coopstah13 is offline   Reply With Quote
Old 1 Week Ago   #5 (permalink)
Just Joined!
 
Join Date: Nov 2009
Posts: 6
is it ready to use or i have to download it?
latous is offline   Reply With Quote
Old 1 Week Ago   #6 (permalink)
Linux Guru
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: NH, USA
Posts: 1,753
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.
coopstah13 is offline   Reply With Quote
Old 1 Week Ago   #7 (permalink)
Just 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
latous is offline   Reply With Quote
Old 1 Week Ago   #8 (permalink)
Linux Engineer
 
D-cat's Avatar
 
Join Date: Jan 2009
Location: Dover, NH
Posts: 1,444
Synaptic Package Manager.

It's a best friend.
__________________
You just WON the game!
D-cat is offline   Reply With Quote
Old 1 Week Ago   #9 (permalink)
Just 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)
latous is offline   Reply With Quote
Old 1 Week Ago   #10 (permalink)
Linux Engineer
 
D-cat's Avatar
 
Join Date: Jan 2009
Location: Dover, NH
Posts: 1,444
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:
Code:
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
This means you will also need the files
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.
__________________
You just WON the game!

Last edited by D-cat; 1 Week Ago at 09:35 PM..
D-cat is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:42 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2