Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to install xpdf-3.0.2 from source codes. The system is Centos5 but I installed a minimal system and have compiled most of the softwares using source codes.
xpdf requires freetype2 for which I installed freetype 2.3.1 also from source codes. I also installed t1lib from source codes. When I configure xdpf, it finds freetype and t1lib but gives me this message:
configure: creating ./config.status
config.status: creating Makefile
config.status: creating goo/Makefile
config.status: creating fofi/Makefile
config.status: creating splash/Makefile
config.status: creating xpdf/Makefile
config.status: creating aconf.h
configure: WARNING: Couldn't find Motif
configure: WARNING: -- You will be able to compile pdftops, pdftotext,
pdfinfo, pdffonts, and pdfimages, but not xpdf or pdftoppm
I downloaded source codes for openmotif-2.1.30. It does not have a configure file. I tried make World but soon ran into the following error:
cc -o ccimake -O -I../../include -I../../imports/x11/include/X11 ccimake.c
cc -c -O -I../../include -I../../imports/x11/include/X11 `./ccimake` imake.c
imake.c:162:21: Xosdefs.h: No such file or directory
make[2]: *** [imake.o] Error 1
I made a symlink from /usr/include/X11 as instructed in the RELNOTES to an imports/X11 directory in the motif source. The file Xosdefs.h exists.
Q. Do I need to install Openmotif? Is there any substitute that comes with a configure file like most linux softwares?
Q. If not has anyone faced the above error and been able to solve it?
You need the X11 header files to have Xosdefs.h installed on your system. This is the base URI for the latest release of X Windows headers --> http://xorg.freedesktop.org/releases/X11R7.2/src/proto/ Xosdefs.h is provided by the packages called xproto.
I managed to proceed further by changing the path in site.def file. But now I run into errors that -lXm is not found. I guess I need to install libXm and before that guile.
I assumed that I needed libxm and so I downloaded the source tarball. On compiling libxm, I end up with a libxg.so library in my lib path. On trying to compile motif again I end up with the same errors.
Xosdefs.h is provided by xorg-x11-proto-devel and the -lXm (libXm) error should be resolved by installing openmotif (or openmotif-devel if you have openmotif installed by rpm).
The Xosdefs.h problem has been resolved. I had xpoto package installed already. Just had to change the path in config/cf file of openmotif to solve that.
But I don't have openmotif and when I try to install openmotif I get the error that -lXm is not found.
When I try to install openmotif-2.1.30 from rpm, I get:
error: Failed dependencies:
XFree86-libs is needed by openmotif-2.1.30-8.i386
So, the problem is:
1. To install xpdf, I need openmotif.
2. Openmotif says it needs -lXm.
3. If -lXm means I need to install libXm, I have tried to do that but all I got was a libxg.so file.
4. Rpm installation of openmotif fails. In any case I always prefer installation through source codes.
In this very distribution, as far as I know, I have X libraries and headers installed. I have acclerated Video and Video Overlay. I know this from the output of xine-check. I get no dropped frames with either xine or mplayer.
I am trying specifically to install all softwares using source codes.
I have been trying every possible change to the site.def file inside the motif source but to no avail. I finally used yum to install openmotif and openmotif-devel.
Why however, does openmotif not come like other regular linux packages with a configure file? There are a thousand configuration files inside the source tree.
Hi,
Yes I finally managed to install xpdf using source codes. After I installed openmotif and openmotif-devel using yum, xpdf configured and I could successfully compile it.
However, I am still curious to know about the openmotif issue. Do they not supply linux compatible source codes with a configure file becuase of licensing issues or is it because no has seen the need to do so uptil now? I should have probably tried out lessTif as weibullguy suggested that xpdf might compile against that too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.