PDA

View Full Version : I have gcc and I can get lesstif, but what about X and Xt?



gamphd
December 27th, 2009, 07:44 PM
As far as I can tell, the lesstif package assumes the presence of X11 and Xt and only provides the Xm modules to be compiled from existing libraries. Am I mistaken? If not, do I have to go to an MIT site for X? When I had Redhat, X11 includes and libs came with it, as far as I know, so I never had to deal with this issue.

gamphd
December 27th, 2009, 07:57 PM
Never mind. I just found this in another post:

apt-get install libx11-dev

gamphd
December 27th, 2009, 08:43 PM
So much for that. Neither X11 nor lesstif contains Xt (or it's Xt with a release < R5), so I'm still stuck with an unusable lesstif package. Is this 2009?

gamphd
December 27th, 2009, 09:54 PM
After a could more telepathic apt-get commands, one for x11-xext-dev and one for libxext-dev (!?!?!?), I was finally able to make install with no errors. It should be intuitively obvious that x11-xext-dev will install libXext.so but not libXext.a, right?!?!?!

gamphd
December 27th, 2009, 09:54 PM
could=couple !!!

gamphd
December 27th, 2009, 09:58 PM
In any event, I was able to build helloworld.c using widgets (from http://www.linuxjournal.com/article/3666 ) and run it successfully.

wmcbrine
December 28th, 2009, 12:24 AM
so I'm still stuck with an unusable lesstif package. Is this 2009?Almost 2010.

So maybe you should be using something like Gtk? :)

gamphd
December 29th, 2009, 04:30 AM
If I wanted to do conversion, I might, but I want to implement hundreds of thousands of lines of legacy software that was converted from PL/I and GKS to C and Motif, so my main focus is to compile it and get it running, not to make it "state of the art," in the opinion of some. Regardless, I also want to know why I had libXm.a last time, but now all I have is libXm.so, and I have to prefix an export statement to my command line to run the program.

Thanks anyway. :P

gamphd
December 29th, 2009, 04:32 AM
Besides, even if lesstif has ignored my fix to the selection-list widget, I have the fixes and can make them available to customers if and when the software itself is released again, rather than just its output.

jpkotta
December 29th, 2009, 12:14 PM
You wanted xorg-dev, which depends on a ton of -dev packages, including the ones you've mentioned.

Also, if you know the name of a file and want to know what package it's in, you will find apt-file and packages.ubuntu.com useful.