Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > X11 Development

X11 Development
Thread Tools
DaGuy
Senior User
Join Date: Oct 2000
Location: Lawrence, KS
Status: Offline
Reply With Quote
Feb 11, 2003, 03:37 AM
 
Where can I find some basic materials on developing GUI based X11 applications. Feel free to throw in book references and links?

A "hello world" example would be good enough at this point. Thanks!
     
Arkham_c
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Feb 11, 2003, 12:56 PM
 
Originally posted by DaGuy:
Where can I find some basic materials on developing GUI based X11 applications. Feel free to throw in book references and links?

A "hello world" example would be good enough at this point. Thanks!
No one really writes to X11. Instead, they write to XMotif, Athena, GTK, or Qt, and let those libraries do the primative drawings.

Motif example code is here:
http://www.soc.staffs.ac.uk/research...s/examples/Xm/

Al the Gnome and KDE stuff is open-source, so seeing that code is a given.
( Last edited by Arkham_c; Feb 12, 2003 at 12:02 PM. )
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Angus_D
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Feb 11, 2003, 03:21 PM
 
GTK+ or Qt are the most common ways to go. I'm sure you can find some sample code and docs on those sites
     
Detrius
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status: Offline
Reply With Quote
Feb 11, 2003, 11:23 PM
 
Originally posted by Angus_D:
GTK+ or Qt are the most common ways to go. I'm sure you can find some sample code and docs on those sites
Also, if you go QT, you can easily compile the code to run on Windows or OS X. Neither of those are free, but as far as I'm aware, the code is identical.
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
DaGuy  (op)
Senior User
Join Date: Oct 2000
Location: Lawrence, KS
Status: Offline
Reply With Quote
Feb 12, 2003, 12:47 AM
 
Cool. Thanks for the tips. What can I do with Apple's X11 SDK? Do I necessarilly have to adopt one of the above frameworks or does it come with any of these?

I installed the SDK, and all I can tell is that it created a ton of header files. Furthermore, I can't find any documentation on how to code a "Hello World" and hence test the SDK.

Thanks!


     
yeslekmc
Junior Member
Join Date: Aug 2002
Location: Northeastern NV, USA
Status: Offline
Reply With Quote
Feb 12, 2003, 10:15 AM
 
Look for books on EBay. I'm always amazed at how cheap I can find them there with shipping & handling that's usually not any different that what you'll pay through Amazon or B&N. Just search on "programming QT" and "programming GTK". I'm sure something will come up for you...
     
Detrius
Professional Poster
Join Date: Apr 2001
Location: Asheville, NC
Status: Offline
Reply With Quote
Feb 12, 2003, 11:50 AM
 
Originally posted by DaGuy:
Cool. Thanks for the tips. What can I do with Apple's X11 SDK? Do I necessarilly have to adopt one of the above frameworks or does it come with any of these?

I installed the SDK, and all I can tell is that it created a ton of header files. Furthermore, I can't find any documentation on how to code a "Hello World" and hence test the SDK.

Thanks!


A "Hello World" app takes quite a few lines of code in basic X11 code. If you download and compile qt, it will include examples that you can play with and look over.
ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
DaGuy  (op)
Senior User
Join Date: Oct 2000
Location: Lawrence, KS
Status: Offline
Reply With Quote
Feb 12, 2003, 12:41 PM
 
Thanks, I'll be exploring Qt pretty soon. Yet another thing keeping me from cleaning the garage...

     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 05:21 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,