You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by JiWei Liu <lj...@gmail.com> on 2016/07/26 06:16:41 UTC

Re: Centos7 build fails with guacenc enabled.

# pwd
/tmp/incubator-guacamole-server
# grep -Rn 'pedantic' . | grep guacenc
./src/guacenc/Makefile.in:429:    -Werror -Wall -pedantic \
./src/guacenc/Makefile.am:82:    -Werror -Wall -pedantic \
./src/guacenc/Makefile:429:    -Werror -Wall -pedantic \


remove the line with "-Werror -Wall -pedantic" work in my case

Keith <ke...@scott-land.net>于2016年6月3日周五 下午7:06写道:

> Hi, I am unable to build Guacamole with "guacenc" enabled on my Centos7
> server and wondered if anyone can help ?
>
> Thanks
> Keith.
>
> ./configure --prefix=/opt/guacamole
> --with-init-dir=/opt/guacamole/etc/init.d/
> guacamole-server version 0.9.9
>     Library status:
>       freerdp ............. yes
>       pango ............... yes
>       libavcodec .......... yes
>       libavutil ........... yes
>       libssh2 ............. yes
>       libssl .............. yes
>       libswscale .......... yes
>       libtelnet ........... yes
>       libVNCServer ........ yes
>       libvorbis ........... yes
>       libpulse ............ yes
>       libwebp ............. yes
>     Protocol support:
>        RDP ....... yes
>        SSH ....... yes
>        Telnet .... yes
>        VNC ....... yes
>     Services / tools:
>        guacd ...... yes
>        guacenc .... yes
>
> sed -e 's,[@]sbindir[@],/opt/guacamole/sbin,g' < init.d/guacd.in >
> init.d/guacd
> chmod +x init.d/guacd
> make[2]: Leaving directory
> `/root/Guacamole-Install-New/incubator-guacamole-server/src/guacd'
> Making all in src/guacenc
> make[2]: Entering directory
> `/root/Guacamole-Install-New/incubator-guacamole-server/src/guacenc'
>    CC       guacenc-buffer.o
>    CC       guacenc-display.o
>    CC       guacenc-display-buffers.o
>    CC       guacenc-display-image-streams.o
>    CC       guacenc-display-flatten.o
>    CC       guacenc-display-layers.o
>    CC       guacenc-display-sync.o
>    CC       guacenc-encode.o
>    CC       guacenc-ffmpeg-compat.o
> In file included from /usr/include/ffmpeg/libavutil/imgutils.h:31:0,
>                   from ffmpeg-compat.c:27:
> /usr/include/ffmpeg/libavutil/pixdesc.h:34:5: error: type of bit-field
> âplaneâ is a GCC extension [-Werror=pedantic]
>       uint16_t plane        : 2;
>       ^
> /usr/include/ffmpeg/libavutil/pixdesc.h:40:5: error: type of bit-field
> âstep_minus1â is a GCC extension [-Werror=pedantic]
>       uint16_t step_minus1  : 3;
>       ^
> /usr/include/ffmpeg/libavutil/pixdesc.h:46:5: error: type of bit-field
> âoffset_plus1â is a GCC extension [-Werror=pedantic]
>       uint16_t offset_plus1 : 3;
>       ^
> /usr/include/ffmpeg/libavutil/pixdesc.h:52:5: error: type of bit-field
> âshiftâ is a GCC extension [-Werror=pedantic]
>       uint16_t shift        : 3;
>       ^
> /usr/include/ffmpeg/libavutil/pixdesc.h:57:5: error: type of bit-field
> âdepth_minus1â is a GCC extension [-Werror=pedantic]
>       uint16_t depth_minus1 : 4;
>       ^
> cc1: all warnings being treated as errors
> make[2]: *** [guacenc-ffmpeg-compat.o] Error 1
> make[2]: Leaving directory
> `/root/Guacamole-Install-New/incubator-guacamole-server/src/guacenc'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/root/Guacamole-Install-New/incubator-guacamole-server'
> make: *** [all] Error 2
>
>