Flash Gordon said:
Malcolm McLean wrote, On 23/06/07 12:32:
It has never taken me an hour to learn how to link in a library, I just
read the instructions. Then I write a makefile and others don't need to
even bother with that. This would take far less time that writing your own
library which you admit will not be as good. So you would be better
advised to do what most people do and select a good library to do your
common tasks and use it.
Of course, this is going far OT so you will have to go else where to learn
how to write makefiles for your system.
Nothing OT on the library debate.
It took about an hour to get xlib linked in.
I'd forgotten everything I knew about xlib programming so first I had to
locate a "hello world" program. To be fair this was one that also used open
GL.
So I complied with -lX11 and -lGL
GL linked, X didn't.
Oh dear. Disk search to see if I could find the X library, which I
couldn't - there were lots of files under a folder marker X11 but I couldm't
make head or tail of them. So an internet search to see how to link in X.
Eventually I found out that it is -LX11/R611, capital L and a subdirectory
containing the files. So x linked.
At least an hour had gone by.
I then tried to compile with a toolkit, and failed again. I was pretty sure
there was no Motif on the system, but it would entail a call to tech support
to have it installed. I looked around to see what was available, but whilst
there are a few GNU toolkits out there, such as the one used to build the
GIMP, it is a performance to download and install each one.
The program might be used by biochemists who know a little programming, and
might want to tweak the biochemical internals and add a menu item of
something, but they are not confident GUI programmers.
Hence the BabyX project.
It is going to have a few routines for buttons, scrollbars, menus, input
fields and popups, but that is about it. It will be freely available in
source code form, which I expect to be about twenty files of maybe 1000
lines max.