LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 07-26-2007, 10:33 AM   #1
shivkiyer
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 162

Rep: Reputation: 15
Dependency issue while installing xpdf


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?

Thanks in advance.
 
Old 07-26-2007, 12:24 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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.
 
Old 07-26-2007, 11:17 PM   #3
shivkiyer
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 162

Original Poster
Rep: Reputation: 15
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.
 
Old 07-27-2007, 09:57 AM   #4
shivkiyer
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 162

Original Poster
Rep: Reputation: 15
Sorry weibullguy for the late reply but I live in completely different timezone and just got back to my home computer.

I tried to compile motif using make World >& World.log and I ran into the following error:

rm -f dainput
gcc -o dainput -O2 -fno-strength-reduce -ansi -pedantic -L../../../exports/lib -L../../../impor
ts/x11/lib dainput.o dainput_dlg.o dainput_ui.o -lXm -lXt -lSM -lICE -lXp -lXext -lX11 -L/compilati
ons/dt/lib -Wl,-rpath,/compilations/dt/lib
/usr/bin/ld: cannot find -lXm
collect2: ld returned 1 exit status
make[4]: *** [dainput] Error 1

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.

What does -lXm mean? What do I need to install?
 
Old 07-27-2007, 10:26 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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).
 
Old 07-27-2007, 10:43 AM   #6
shivkiyer
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 162

Original Poster
Rep: Reputation: 15
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.
 
Old 07-27-2007, 11:04 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can get openmotif and openmotif-devel rpms for CentOS 5 from here or by doing
Code:
#yum install openmotif openmotif-devel
 
Old 07-27-2007, 11:53 AM   #8
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
xpdf will also build against lesstif if you are having problems with motif.
 
Old 07-27-2007, 01:01 PM   #9
cnzhannet
LQ Newbie
 
Registered: Jul 2007
Posts: 12

Rep: Reputation: 0
Why not try "yum install xpdf"?
 
Old 07-27-2007, 01:15 PM   #10
shivkiyer
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 162

Original Poster
Rep: Reputation: 15
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.

Thanks for the help.
 
Old 07-27-2007, 01:21 PM   #11
cnzhannet
LQ Newbie
 
Registered: Jul 2007
Posts: 12

Rep: Reputation: 0
hi, shivkiyer.
Have you successfully installed xpdf by using source code after you yum installed openmotif?

cnzhannet
 
Old 07-28-2007, 01:24 AM   #12
shivkiyer
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu, Slackware
Posts: 162

Original Poster
Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Aptitude capable of installing local .deb package and resolve dependency issue? Akhran Debian 3 07-06-2009 05:05 PM
About problem encountered on installing xpdf satimis *BSD 1 06-05-2007 02:16 PM
Problems Installing/uninstalling MySQL On Fedora Fc4 (library dependency issue) donraja Linux - Software 2 05-26-2006 01:06 AM
Firefox Dependency issue? synth42 Slackware 4 03-17-2006 04:25 AM
Installing RH Linux 9. Keeps returning package install. error with xpdf-2.01-8. booda Linux - General 0 03-18-2004 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration