A Conversation for The H2G2 Programmers' Corner

Graphics Help

Post 21

MaW

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

Post 22

Dogster

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

Post 23

DoctorMO (Keeper of the Computer, Guru, Community Artist)

thanks.


Graphics Help

Post 24

MaW

Development's usually done by linking to dynamic libraries. I assume you have them anyway.


Graphics Help

Post 25

Dogster

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

Post 26

MaW

One of the reasons I don't like it...


Graphics Help

Post 27

DoctorMO (Keeper of the Computer, Guru, Community Artist)

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 smiley - winkeye. 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

Post 28

MaW

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

Post 29

Ion the Naysayer


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

Post 30

DoctorMO (Keeper of the Computer, Guru, Community Artist)

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

Post 31

Ion the Naysayer

No idea. I've never done GUI in Linux, only console.


Graphics Help

Post 32

Terran

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 smiley - earth


Graphics Help

Post 33

Dogster

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

Post 34

MaW

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 smiley - smiley


Graphics Help

Post 35

DoctorMO (Keeper of the Computer, Guru, Community Artist)

I gotta learn about the GTK.

-- DoctorMO --


Graphics Help

Post 36

Peter aka Krans

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...

smiley - jester


Graphics Help

Post 37

MaW

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 smiley - smiley


Graphics Help

Post 38

Peter aka Krans

Good point. smiley - doh

smiley - jester


Graphics Help

Post 39

DoctorMO (Keeper of the Computer, Guru, Community Artist)

hmmm yes


Key: Complain about this post