A Conversation for The H2G2 Programmers' Corner
- 1
- 2
Graphics Help
MaW Posted Dec 3, 2002
Hmm, oddly enough you've only got static libraries there... but you do have gtk (libgtk.a). You would also need to check /usr/include though - if you don't have the include files for the libraries, you can't use them, and it's possible to install them without having the include files (several binary distributions do this - such as Red Hat, where to develop GTK software you need to install the gtk package, and gtk-dev as well).
Graphics Help
Dogster Posted Dec 4, 2002
Yeah, I only listed the static ones. Are any of these libraries likely to use dynamic ones? If so, I can make a bigger list. However, I'll check out gtk tomorrow. Thanks.
Graphics Help
MaW Posted Dec 4, 2002
Development's usually done by linking to dynamic libraries. I assume you have them anyway.
Graphics Help
Dogster Posted Dec 4, 2002
Ah, OK. I'm still getting used to linux/unix programming having mostly used visual c++ which makes it far too easy to not know about exactly what is going on with things like that.
Graphics Help
DoctorMO (Keeper of the Computer, Guru, Community Artist) Posted Dec 5, 2002
You't think how I feel, I've only developed in Visual C++ a little, most of my windows work was in VB (for 7 years) thats along time to get used to some things, and it took me a while just to get used to the Curly braces . I'm OK with C++ and C now, but I'm not sure how to aprotch Linux programming.
because I could do with porting a few things.
-- DoctorMO --
Graphics Help
MaW Posted Dec 5, 2002
Linux programming is immense, probably down to there being absolutely no standard GUI libraries whatsoever. GTK+ and Qt are the most common for new stuff at the moment though.
Graphics Help
Ion the Naysayer Posted Dec 5, 2002
You young kids and your fancy "Graphical User Interface"... Back in my day all we had was the command line. And we liked it!
Seriously though, you can directly compile ANSI C console applications in Linux without changing much. That doesn't really help with GUI, but...
If you don't need a grapical user interface just fire up a copy of vim, emacs, or and start writing your C code. And remember, printf is your friend.
Graphics Help
DoctorMO (Keeper of the Computer, Guru, Community Artist) Posted Dec 5, 2002
Funny you should say that, my friend made a Turing Machine emulator for windows, and I made a binary adder, if that isn't going back to you roots, I don't know what is.
GUI shouldn't be that hard, surly?
-- DoctorMO --
Graphics Help
Ion the Naysayer Posted Dec 5, 2002
No idea. I've never done GUI in Linux, only console.
Graphics Help
Terran Posted Dec 5, 2002
Ah! Don't mention Turing Machines! I've been learning all about Alan Turing and Church-Turing, and am up to eye ball with it.
As far as Graphics are concerned, I have attempted to write ordinary c programs using BGI graphics using Borland in Windows but I always get an error, which wont let me run the program. I would be interested how to get around this as well.
Terran
Graphics Help
Dogster Posted Dec 6, 2002
MaW, thanks for the gtk recommendation. They do indeed have the relevant header files for it and (at the very least) the simplest program at the beginning of the gtk tutorial compiles and runs fine on at least one of the department computers. (This is enough because I can always ssh to this one from wherever I am in the department.) However, I've also just discovered that allegro can be installed and used as a non-root user as long as you don't use the direct memory access routines (which is fine because I can run it in windowed mode).
Graphics Help
MaW Posted Dec 6, 2002
Woohoo! That's excellent news.
The good thing about GTK+ is that it's got a fairly decent API. Personally I use gtkmm, the C++ wrappers for it, which has an even more decent API that knocks anything Microsoft have ever produced into a cocked hat, but that's just me, and of course gtkmm might not be installed for you.
Although you can install and use it as a non-root user if you wish
Graphics Help
DoctorMO (Keeper of the Computer, Guru, Community Artist) Posted Dec 6, 2002
I gotta learn about the GTK.
-- DoctorMO --
Graphics Help
Peter aka Krans Posted Mar 26, 2003
Whenever possible I write console applications. A GUI interface can be added later... look at the way WinCVS is just a front end to the regular cvs executable...
Graphics Help
MaW Posted Mar 26, 2003
Sometimes you just have to write something GUI-only though - especially if you're the one writing the frontend for someone else's console program
Graphics Help
DoctorMO (Keeper of the Computer, Guru, Community Artist) Posted Mar 27, 2003
hmmm yes
Key: Complain about this post
- 1
- 2
Graphics Help
- 21: MaW (Dec 3, 2002)
- 22: Dogster (Dec 4, 2002)
- 23: DoctorMO (Keeper of the Computer, Guru, Community Artist) (Dec 4, 2002)
- 24: MaW (Dec 4, 2002)
- 25: Dogster (Dec 4, 2002)
- 26: MaW (Dec 4, 2002)
- 27: DoctorMO (Keeper of the Computer, Guru, Community Artist) (Dec 5, 2002)
- 28: MaW (Dec 5, 2002)
- 29: Ion the Naysayer (Dec 5, 2002)
- 30: DoctorMO (Keeper of the Computer, Guru, Community Artist) (Dec 5, 2002)
- 31: Ion the Naysayer (Dec 5, 2002)
- 32: Terran (Dec 5, 2002)
- 33: Dogster (Dec 6, 2002)
- 34: MaW (Dec 6, 2002)
- 35: DoctorMO (Keeper of the Computer, Guru, Community Artist) (Dec 6, 2002)
- 36: Peter aka Krans (Mar 26, 2003)
- 37: MaW (Mar 26, 2003)
- 38: Peter aka Krans (Mar 26, 2003)
- 39: DoctorMO (Keeper of the Computer, Guru, Community Artist) (Mar 27, 2003)
More Conversations for The H2G2 Programmers' Corner
Write an Entry
"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."