Starting from the svn, I tried to compile it with ./configure, but there was no ./configure
./autogen.sh however did create something.
That compiled, but failed with:
make[2]: Entering directory /home/benito/opt/xvidcap-code/src'
make all-am
make[3]: Entering directory
/home/benito/opt/xvidcap-code/src'
gcc -Wall -g -DDBUS_SERVICE_DIR=\""/usr/local/share/dbus-1/service"\" -g -O2 -pthread -I /home/benito/opt/xvidcap-code -I/home/benito/opt/xvidcap-code/ffmpeg/libavcodec -I/home/benito/opt/xvidcap-code/ffmpeg/libavformat -I/home/benito/opt/xvidcap-code/ffmpeg/libavutil -I/home/benito/opt/xvidcap-code/ffmpeg/libswscale -I/home/benito/opt/xvidcap-code/ffmpeg/libavdevice -export-dynamic -L/home/benito/opt/xvidcap-code/ffmpeg/libavcodec -L/home/benito/opt/xvidcap-code/ffmpeg/libavformat -L/home/benito/opt/xvidcap-code/ffmpeg/libavutil -L/home/benito/opt/xvidcap-code/ffmpeg/libswscale -L/home/benito/opt/xvidcap-code/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 dbus-server-object.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 -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -Wl,-Bstatic -lavdevice -Wl,-Bdynamic -Wl,-Bstatic -lavformat -Wl,-Bdynamic -Wl,-Bstatic -lavcodec -Wl,-Bdynamic -Wl,-Bstatic -lswscale -Wl,-Bdynamic -Wl,-Bstatic -lavutil -Wl,-Bdynamic -lmp3lame -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
Manually adding -lX11 -ldl -lXext -lz to this, fixed this.
Just to clarify,
after un-tarring/downloading the xvidcap source, edit the rules file in the debian subdirectory.
Change the CFLAGS line to say;
Then use dpkg-buildpackage -rfakeroot to build a Debian package.
If you're a user and want a simple solution:
LIBS="-lXext -lX11" ./configure (any options here)
make
make install
@John: But ./configure does not exist (in http://sourceforge.net/p/xvidcap/code/HEAD/tree/trunk/)
If I'm not mistaken, executing ./autogen.sh will generate the configure file from configure.in. In fact, autogen.sh will run configure itself, but I believe my trick won't work with autogen.sh. It will then work with the newly generated configure though.
The autogen.sh procedure is quite common when downloading from repositories (as opposed in tar.gz format, where the configure is already generated)
Last edit: John Coppens 2014-10-24