Sign in to follow this  
Revelation60

Creating a window in Linux

Recommended Posts

Revelation60    122
Recently I installed ubuntu on my system and now I want to start programming C++ in Linux. The problem is, I can't find information on how to build windows. While in Windows there are well-documented API tutorials, Linux seems to have none. Can you help me?

Share this post


Link to post
Share on other sites
let_bound    488
It's because Linux has no windows. Linux is a kernel. *NIX-like systems often operate without a display. The closest you can get is a framebuffer, but that's kernel and video card dependent.

If all you're after is a window to use with OpenGL or to blit images to, then you need X or, more likely, something like SDL, Allegro or ClanLib.

If what you need is to build a rich client application, then you'll need a toolkit such as Qt, Gtk+, Gtk--, GFC, WxWidgets, The FOX toolkit, FLTK, Ultimate++, etc.

There is no direct equivalent of the Win32 API, if that's what you're looking for. It's either lower level (eg Xlib) or higher level (the toolkits).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this