Completes configure but doesnt then build
gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""."\" -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -g -DDBUS_SERVICE_DIR=\""/usr/local/share/dbus-1/service"\" -g -O2 -pthread -I /root/xvidcap-1.1.7 -I/root/xvidcap-1.1.7/ffmpeg/libavcodec -I/root/xvidcap-1.1.7/ffmpeg/libavformat -I/root/xvidcap-1.1.7/ffmpeg/libavutil -I/root/xvidcap-1.1.7/ffmpeg/libswscale -I/root/xvidcap-1.1.7/ffmpeg/libavdevice -MT capture.o -MD -MP -MF .deps/capture.Tpo -c -o capture.o capture.c
capture.c:68:35: error: X11/extensions/shmstr.h: No such file or directory
capture.c: In function ‘paintMousePointer’:
capture.c:320: warning: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’
capture.c:352: warning: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’
capture.c:568: warning: ‘return’ with a value, in function returning void
capture.c: In function ‘XGetZPixmapSHM’:
capture.c:668: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
capture.c:668: error: ‘req’ undeclared (first use in this function)
capture.c:668: error: (Each undeclared identifier is reported only once
capture.c:668: error: for each function it appears in.)
capture.c:669: error: ‘xShmGetImageReply’ undeclared (first use in this function)
capture.c:669: error: expected ‘;’ before ‘rep’
capture.c:675: error: ‘sz_xShmGetImageReq’ undeclared (first use in this function)
capture.c:675: error: ‘xShmGetImageReq’ undeclared (first use in this function)
capture.c:675: error: expected expression before ‘)’ token
capture.c:675: error: ‘X_ShmGetImage’ undeclared (first use in this function)
capture.c:693: error: ‘rep’ undeclared (first use in this function)
capture.c: In function ‘commonCapture’:
capture.c:1137: warning: unused variable ‘shm_error_base’
capture.c:1137: warning: unused variable ‘shm_event_base’
capture.c:1137: warning: unused variable ‘shm_opcode’
make[3]: *** [capture.o] Error 1
make[3]: Leaving directory `/root/xvidcap-1.1.7/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/xvidcap-1.1.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/xvidcap-1.1.7'
make: *** [all] Error 2
[root@jonspc xvidcap-1.1.7]# whereis shmstr.h
shmstr:
The solution is to comment this line
//#include <X11/extensions/shmstr.h>
and put
#include <X11/extensions/shmproto.h>
in capture.c
Could configure not pick this up. Something along the lines of ...
if [ -f /usr/include/X11/extensions/shmproto ]; then
REDHATSHM="REDHATSHM"
fi
gcc BLA BLA -D $REDHATSHM
code
#ifdef REDHATSHM
#include <X11/extensions/shmproto.h>
#else
#include <X11/extensions/shmstr.>
#endif