LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   guvcview Slackbuild error on -current (https://www.linuxquestions.org/questions/slackware-14/guvcview-slackbuild-error-on-current-4175422571/)

dr.s 08-17-2012 03:05 AM

guvcview Slackbuild error on -current
 
Tried to build guvcview lately to get it to run on -current (had no problems on 13.37) but now I'm getting compilation errors. Has anyone successfully built this package lately?
thanks

Code:

...
gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_SRC_DIR=\""."\" -DPACKAGE_DATA_DIR=\""/usr/share"\" -pthread -D_GNU_SOURCE=1 -D_REENTRANT -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/gdk-pixbuf-2.0 -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/libpng14 -I/usr/include/SDL      -D_REENTRANT -D_FILE_OFFSET_BITS=64 -Wall -O2 -march=i486 -mtune=i686 -MT v4l2_formats.o -MD -MP -MF .deps/v4l2_formats.Tpo -c -o v4l2_formats.o v4l2_formats.c
In file included from v4l2_formats.c:25:0:
/usr/include/glib-2.0/glib/gutils.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from v4l2_formats.c:26:0:
/usr/include/glib-2.0/glib/gtestutils.h:22:2: error: #error "Only <glib.h> can be included directly."
make[2]: *** [v4l2_formats.o] Error 1
make[2]: Leaving directory `/tmp/SBo/guvcview-src-1.5.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/guvcview-src-1.5.0'
make: *** [all] Error 2


willysr 08-17-2012 04:55 AM

Get the updated SlackBuild for 1.6.0 here
it works on -Current

dr.s 08-18-2012 12:05 AM

Works like a charm, marking as Solved, thanks!

willysr 08-18-2012 08:52 PM

I have just pushed update to guvcview to 1.6.1 on the same repository
the guvcview.patch is no longer needed for 1.6.1

dr.s 08-19-2012 02:25 AM

Thanks willysr, I upgraded to 1.6.1 without any problems.


All times are GMT -5. The time now is 12:09 AM.