[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem when compiling X-Programs



> I am trying to compile X-Programs, but I cannot link them. I get always the
> messages libraries "Xaw, Xmt not found".
> 
> This arise when I try to compile the last version of X-Board, but I have all
> these libraries installed in /usr/X11R6/lib.

I'll answer this one several times: 

-direct answer:
  Add "-L/usr/X11R6/lib" to the gcc commandline when linking (the last
  stage)

-somewhat more complete answer:
  Most X programmes come with an "Imakefile", that is used to generate
  a Makefile that is tailored to the local system with the "xmkmf" command,
  that knows excactly where all libraries/headerfiles/whatever are
  on the local system. Your best bet is to check if your app
  has an "Imakefile", and if it does, run "xmkmf". This
  (on any Debian system, anyway) will generate an Makefile that
  knows correctly where the X libs are.

-YetAnotherAnswer:
  Doesn't debian have an "X-Board" package (GNU something?).
  In that case, simply get the xboard files from your debian mirror,
  run "dpkg-source -x xboard*.dsc", cd to the sourcedir, and run
  "./debian/rules build". This _should_ do everything correctly,
  and if not, file a bug report against the Xboard pacakge.


-- 
joost witteveen, joostje@debian.org
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: