Marcel created GUACAMOLE-217:
--------------------------------

             Summary: ffmpeg-compat.c:131:18: error: implicit declaration of 
function ‘avcodec_send_frame’ [-Werror=implicit-function-declaration]
                 Key: GUACAMOLE-217
                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-217
             Project: Guacamole
          Issue Type: Bug
          Components: guacamole-server
    Affects Versions: 0.9.12-incubating
         Environment: Ubuntu 16.10 fully updated running on XenServer 7
            Reporter: Marcel
            Priority: Blocker


Issue by request 
(https://github.com/apache/incubator-guacamole-server/pull/50#issuecomment-282116015)
 Following the official installation guide 
(https://guacamole.incubator.apache.org/doc/gug/installing-guacamole.html) I 
had to adapt 2 packages (libjpeg-turbo8-dev and libpng-dev instead of 
libjpeg62-turbo-dev and libpng12-dev) because they did not exist (by that exact 
name) on Ubuntu 16.10. This is when using the git version because the 0.9.11 
version has an other error during make I noticed got fixed in the next version.

These are the commands I used:
sudo apt -y install libcairo2-dev libjpeg-turbo8-dev libpng-dev 
libossp-uuid-dev libavcodec-dev libavutil-dev libswscale-dev libfreerdp-dev 
libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libpulse-dev 
libssl-dev libvorbis-dev libwebp-dev

git clone git://github.com/apache/incubator-guacamole-server.git
cd incubator-guacamole-server/
autoreconf -fi
./configure --with-init-dir=/etc/init.d
make

./configure went fine, all library's protocols and tools showed 'yes'.

When I run make I get this error:
make[2]: Entering directory 
'/home/guacamole/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
ffmpeg-compat.c: In function ‘guacenc_avcodec_encode_video’:
ffmpeg-compat.c:131:18: error: implicit declaration of function 
‘avcodec_send_frame’ [-Werror=implicit-function-declaration]
int result = avcodec_send_frame(video->context, frame);
^~
ffmpeg-compat.c:146:12: error: implicit declaration of function 
‘avcodec_receive_packet’ [-Werror=implicit-function-declaration]
while (avcodec_receive_packet(video->context, &packet) == 0) {
^~
cc1: all warnings being treated as errors
Makefile:729: recipe for target 'guacenc-ffmpeg-compat.o' failed
make[2]: *** [guacenc-ffmpeg-compat.o] Error 1
make[2]: Leaving directory 
'/home/guacamole/incubator-guacamole-server/src/guacenc'
Makefile:495: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/guacamole/incubator-guacamole-server'
Makefile:427: recipe for target 'all' failed
make: *** [all] Error 2
guacamole@guacamole:~/incubator-guacamole-server$

I found this 
(https://github.com/apache/incubator-guacamole-server/pull/50#issuecomment-282027636)
 on Github and posted there where I was requested to make a Jira issue.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to