Re: x window programming
From: Last2Know (grokkalot_at_yahoo.com)
Date: 08/24/04
- Next message: Grant Edwards: "Re: x window programming"
- Previous message: John Fusco: "Re: Tool to reverse "od"?"
- In reply to: scott: "Re: x window programming"
- Next in thread: Otto Wyss: "Re: x window programming"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 23 Aug 2004 20:39:19 -0500
On Mon, 23 Aug 2004 18:17:27 +0100, scott wrote:
>
> "Last2Know" <grokkalot@yahoo.com> wrote in message
> news:pan.2004.08.23.16.23.08.563251@yahoo.com...
>> On Mon, 23 Aug 2004 16:46:59 +0100, news.freeserve.com wrote:
>>
>>> thx for any help that is given.
>>>
>>> iv been programming in Microsoft windows for some time now but want to
>>> move
>>> over to Linux using x windows.
>>>
>>> I can write simple command prompt type programs in Linux but iv yet to
>>> figure out how to do windows programming in x window(I don't even know
>>> how
>>> to compile an x windows program)
>>>
>>> is there a site some one could point me to plz to make me better
>>> understand
>>> what I have to do ?
>>>
>>> thx for any help
>>
>> One of the first things to realize is that from the viewpoint of
>> actually programming a modern GUI app, using the X11 (core XWindows)
>> API is is analogous to programming at the assembly language level.
>> It is helpful to have a fundamental understanding of how it works
>> but it is isn't the best route to productivity. It has commands
>> at the level of drawing lines and boxes rather than working with
>> widgets.
>>
>> So in order to answer your question effectively, it would helpful
>> if you could specify whether
>> 1) you want to learn the low level X11 API or work with a modern
>> toolkit
>> 2) you prefer to program in C, C++, or some other higher level
>> interpreted language.
>>
>>
>>
>>
>
> hi thx for the replys. i would be doing it in c++ but using the lowe level
> X11 API. If i could just figure out how to create a window and compile it,
> it would be a step in the right direction.
For a tutorial introduction to the Xlib C API and concepts, Adrian
Nye's O'Reilly Book, Volume 1 : Xlib Programming Manual is still
probably the best source.
You can download the source code examples from the O'Reilly
website: http://www.oreilly.com/catalog/v1/index.html
Postscript versions of the various specs are here:
ftp://ftp.x.org/pub/R6.6/xc/doc/hardcopy/
(can be read with the gv program or printed directly).
Be sure to install the X11 development man pages on your
machine.
Kenton Lee has a lot of good links:
http://www.rahul.net/kenton/xsites.html
including some tutorials.
Here is a nice book on using the most common
Linux C/C++ compiler that you can buy or download
in pdf form:
http://www.network-theory.co.uk/gcc/intro/
Three other tools that you will want to be acquainted
with are gdb, a source level debugger, gprof, a
profiler, and valgrind, a tool for detecting memory
access violations and leaks (somewhat similar to
Rational's Purify product).
- Next message: Grant Edwards: "Re: x window programming"
- Previous message: John Fusco: "Re: Tool to reverse "od"?"
- In reply to: scott: "Re: x window programming"
- Next in thread: Otto Wyss: "Re: x window programming"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|