Costruire xvidcap su Ubuntu 14.04 - riferimento non definito al simbolo 'XGetWindowAttributes'

3

Sto cercando di creare xvidcap da fonti su Ubuntu 14.04 poiché nessun pacchetto è disponibile. Sono incappato in seguito a errore durante make:

gcc -Wall -g -DDBUS_SERVICE_DIR=\""/usr/local/share/dbus-1/service"\" -g -O2 -pthread -I /home/jesper/xvidcap-1.1.7 -I/home/jesper/xvidcap-1.1.7/ffmpeg/libavcodec -I/home/jesper/
xvidcap-1.1.7/ffmpeg/libavformat -I/home/jesper/xvidcap-1.1.7/ffmpeg/libavutil -I/home
/jesper/xvidcap-1.1.7/ffmpeg/libswscale -I/home/jesper/xvidcap-1.1.7/ffmpeg/libavdevice 
-export-dynamic -L/home/jesper/xvidcap-1.1.7/ffmpeg/libavcodec -L/home/jesper/xvidcap-
1.1.7/ffmpeg/libavformat -L/home/jesper/xvidcap-1.1.7/ffmpeg/libavutil -L/home/jesper
/xvidcap-1.1.7/ffmpeg/libswscale -L/home/jesper/xvidcap-1.1.7/ffmpeg/libavdevice -o 
xvidcap app_data.o capture.o codecs.o colors.o frame.o gnome_frame.o gnome_ui.o 
gnome_warning.o gnome_options.o led_meter.o main.o options.o xtoffmpeg.o xtoxwd.o job.o 
xvc_error_item.o eggtrayicon.o  -pthread -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgdk-x11-2.0 
-latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 
-lfontconfig -lgobject-2.0 -lfreetype -lgthread-2.0 -lglib-2.0    -Wl,-Bstatic -lavcodec 
-Wl,-Bdynamic -Wl,-Bstatic -lswscale -Wl,-Bdynamic -Wl,-Bstatic -lavutil -Wl,-Bdynamic  
-lm -lXdamage -lXfixes -lXmu 
/usr/bin/ld: frame.o: undefined reference to symbol 'XGetWindowAttributes'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line

Come posso risolvere questo problema?

    
posta jesper 17.08.2014 - 21:51

1 risposta

6

Prova questo: LIBS="-lX11 -ldl -lXext -lz" ./configure

    
risposta data fox 02.10.2014 - 09:46

Leggi altre domande sui tag