[prev in list] [next in list] [prev in thread] [next in thread]
List: mms
Subject: Re: cxfe and xorg?
From: Anders Rune Jensen <anders () gnulinux ! dk>
Date: 2004-09-27 19:52:26
Message-ID: 1096314746.3075.9.camel () big-mojn
[Download RAW message or body]
[Attachment #2 (multipart/mixed)]
On Thu, 2004-08-12 at 05:17 +0200, Anders Rune Jensen wrote:
> On Thu, 2004-08-12 at 00:36 +0000, Bernard Kerckenaere wrote:
> > is it possible cxfe can't handle xorg? or am i doing something wrong?
> >
> > ./configure says:
> >
> > <snip>
> > checking for main in -lX11... no
> > checking for main in -lXext... no
> > </snip>
> >
> >
> > make says:
> >
> > gcc -Wall `xine-config --libs` -lX11 -lxine -lncurses -lm
> > -llirc_client cxfe.o termio/getch2.o -o cxfe
> > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld:
> > cannot find -lX11
> > collect2: ld returned 1 exit status
> > make: *** [cxfe] Error 1
> >
> > the readme mentions i need x and x11 dev libs, but since i compiled
> > xorg myself (gentoo), i should have all i need right?
>
>
> Very strange I have to problem with xorg-x11 here on Gentoo. Not really
> sure about the configure part, since it seems to be written with
> autoconf, but could you try changing Makefile line 18 to:
>
> LDFLAGS = `xine-config --libs` -L/usr/X11R6/lib -lX11 -lxine -lncurses -
> lm -llirc_client
I just had the same problem. Only happens if you have not installed x11
before installing xorg I guess. The problem is that the linker can't
find the library x11 in it's standard path so you have to help it a
little :) Btw. gaim has some automagic to automaticly detect this.
Please consider the patch attached for inclusion in cxfe. It fixes this
and makes the Makefile a little nicer.
> Or maybe:
>
> LDFLAGS = `xine-config --libs` -L/usr/X11R6/lib -lxine -lncurses -lm -
> llirc_client
>
> And let me know if it helps?
>
> Thanx
>
>
--
Anders Rune Jensen
http://www.cs.auc.dk/~arj/
PGP/GnuPG key: 1024D/62C2D7F0 @ pgp.mit.edu
Fingerprint: 6A03 907E 92E1 47EB 4EAB 76B6 068A ACD1 62C2 D7F0
["Makefile-fix.patch" (Makefile-fix.patch)]
--- Makefile.in 2004-08-15 01:11:43.000000000 +0200
+++ ../cxfe-edited/Makefile.in 2004-09-25 10:56:21.820612240 +0200
@@ -1,7 +1,7 @@
SHELL = /bin/sh
VPATH = @srcdir@
-subdirs = @subdirs@
+subdirs = .
top_srcdir = @top_srcdir@
srcdir = @srcdir@
prefix = @prefix@
@@ -13,9 +13,9 @@
CC = @CC@ -Wall
CPPFLAGS = @CPPFLAGS@
-CFLAGS = $(CPPFLAGS) @CFLAGS@ `xine-config --cflags`
+CFLAGS = $(CPPFLAGS) @CFLAGS@ `xine-config --cflags` -I/usr/X11R6/include
LIBS = @LIBS@
-LDFLAGS = `xine-config --libs` @LDFLAGS@ -lX11 @LIBS@
+LDFLAGS = `xine-config --libs` -L/usr/X11R6/lib -lX11 -lXext @LDFLAGS@ @LIBS@
INSTALL = @INSTALL@
#CC=gcc -Wall -g -O2
@@ -29,15 +29,20 @@
cxfe: cxfe.o termio/getch2.o
clean:
- rm cxfe.o cxfe termio/*.o
+ @if test -f cxfe.o ; then rm cxfe.o ; fi
+ @if test -f cxfe ; then rm cxfe termio/*.o ; fi
+ @if test -f termio/getch2.o ; then rm cxfe termio/*.o ; fi
install:
- cp cxfe $(bindir)/cxfe
- chmod 755 $(bindir)/cxfe
- if test ! -d $(prefix)/share/cxfe ; then mkdir -p $(prefix)/share/cxfe ;
-fi
- cp lircrc-example $(prefix)/share/cxfe/lircrc
+ @echo "Installing cxfe to:" $(bindir)/cxfe
+ @chmod +x cxfe
+ @cp cxfe $(bindir)/cxfe
+ @if test ! -d $(prefix)/share/cxfe ; \
+ then mkdir -p $(prefix)/share/cxfe ; \
+ fi
+ @echo "Installing lirc example to:" $(prefix)/share/cxfe/lircrc
+ @cp lircrc-example $(prefix)/share/cxfe/lircrc
uninstall:
- rm -f $(bindir)/cxfe
- rm -Rf $(prefix)/share/cxfe
+ @rm -f $(bindir)/cxfe
+ @rm -Rf $(prefix)/share/cxfe
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic