Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-19-2010, 10:50 AM   #1
Puneet Jindal
Registered: Aug 2010
Location: India(Punjab)
Posts: 38

Rep: Reputation: 0
Graphics in ubuntu

I am new to ubuntu.I have done some programming in c++ under windows using graphics.h header file.I want to implement my programs in ubuntu.How can i do this?I am writing a program.Please tell me how to do it.
using namespace std;
int main()
int gd,gm;

Last edited by Puneet Jindal; 08-19-2010 at 10:51 AM.
Old 08-19-2010, 12:07 PM   #2
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
It's not that straight-forward, and practically no-one here is going to straight up tell you how to do it.

If you have done C++ programming in Windows, was it just C++, or was it C++.NET? If it was .NET, then look into the Mono project. Otherwise, you will probably want to look into what can give you a similar functionality in the GTK+mm or Qt toolkits.
Old 08-19-2010, 12:32 PM   #3
Registered: Jul 2010
Distribution: Mageia-3
Posts: 420

Rep: Reputation: 33
It depends on what you are doing, but you may want to look into OpenGL.
Old 08-19-2010, 01:29 PM   #4
Senior Member
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 55

Look at that to learn how to program, and now this:

Or this:

to learn GTK+ or Qt. I would love to see a Wikibook on Clutter, but it has yet to be seen.
Old 08-19-2010, 05:26 PM   #5
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Linux Mint, Ubuntu
Posts: 1,396

Rep: Reputation: 278Reputation: 278Reputation: 278
Since you're using Ubuntu, I'd suggest using GTK. If you want to stick with C++, you'll need the gtkmm libraries. You might want to consider using Glade to design your UI. Here's the description from the (Fedora) Glade3 package

Description :
Glade is a RAD tool to enable quick and easy development of user interfaces for
the GTK+ toolkit and the GNOME desktop environment.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get 3D graphics working under (K)ubuntu Logomachist Linux - Newbie 8 02-25-2010 07:07 PM
Lost graphics in Ubuntu 9.04 butchern Linux - Newbie 24 08-07-2009 02:31 PM
3d graphics seems to work better in ubuntu jag2000 Ubuntu 8 10-20-2007 08:20 PM
Intel i810 on-board graphics card bug, with Ubuntu server 7.04 running Ubuntu-Desktop calebf Linux - Server 2 05-15-2007 12:53 AM
Ubuntu doesn't like graphics cards. The_Neon_Knight Linux - Hardware 28 03-03-2007 08:42 AM

All times are GMT -5. The time now is 04:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration