Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


This forum has not been maintained for a long time and will probably get deleted in the near future.
For faster responses to your questions, please use StackOverflow instead and tag your questions with "FFmpeg".
If you need a backup of the posts from this forum, please contact me directly.

Compile breaking on libavformat/rtmpdh

Troubleshooting compilation problems on all platforms.

Compile breaking on libavformat/rtmpdh

Postby Sasquatch » Thu Dec 29, 2016 11:43 am

I keep getting this error;
Code: Select all
CC      libavformat/rsodec.o
CC      libavformat/rsoenc.o
CC      libavformat/rtmpcrypt.o
libavformat/rtmpcrypt.c: In function ‘rtmpe_write’:
libavformat/rtmpcrypt.c:304:36: warning: passing argument 2 of ‘av_rc4_crypt’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
         av_rc4_crypt(&rt->key_out, buf, buf, size, NULL, 1);
                                    ^
In file included from libavformat/rtmpcrypt.c:32:0:
./libavutil/rc4.h:60:6: note: expected ‘uint8_t * {aka unsigned char *}’ but argument is of type ‘const uint8_t * {aka const unsigned char *}’
 void av_rc4_crypt(struct AVRC4 *d, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt);
      ^
CC      libavformat/rtmpdh.o
libavformat/rtmpdh.c: In function ‘ff_dh_init’:
libavformat/rtmpdh.c:277:14: error: dereferencing pointer to incomplete type ‘FF_DH {aka struct dh_st}’
     bn_new(dh->g);
              ^
libavformat/rtmpdh.c:188:37: note: in definition of macro ‘bn_new’
 #define bn_new(bn)                  bn = BN_new()
                                     ^
CC      libavformat/rtmpdh.o
libavformat/rtmpdh.c: In function ‘ff_dh_init’:
libavformat/rtmpdh.c:277:14: error: dereferencing pointer to incomplete type ‘FF_DH {aka struct dh_st}’
     bn_new(dh->g);
              ^
libavformat/rtmpdh.c:188:37: note: in definition of macro ‘bn_new’
 #define bn_new(bn)                  bn = BN_new()
                                     ^
AR      libavdevice/libavdevice.a
make: *** No rule to make target 'libavformat/rtmpdh.o', needed by 'libavformat/libavformat.so.57'.  Stop.


This is the configure script I used, if it helps point to any problems;
Code: Select all
# build.sh

export CFLAGS="-march=native -O1"
export CXXFLAGS="${CFLAGS}"
export LD_LIBRARY_PATH="/usr/local/ssl/lib:/usr/local/lib:/usr/local"

./configure --prefix=/usr        \
       --extra-cflags="-I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include/opus" \
       --extra-ldflags="-L/usr/local/ssl/lib -lssl -L/usr/local/lib -lesd -lopus -lvpx -lm -lfdk-aac -lvorbis -lvorbisenc -lvorbisfile -lx264 -logg" \
            --enable-gpl         \
            --enable-version3    \
            --enable-nonfree     \
            --disable-debug      \
            --enable-libass      \
            --enable-shared \
            --enable-zlib \
            --enable-gray \
            --enable-libfdk-aac  \
            --enable-libfreetype \
            --enable-libmp3lame  \
            --enable-libopus     \
            --enable-libtheora   \
            --enable-libvorbis   \
            --enable-libvpx      \
            --enable-libx264     \
            --enable-x11grab     \
            --enable-openssl    \
            --arch=x86_64 \
            --yasmexe=/usr/bin/yasm \
            --docdir=/usr/share/doc/ffmpeg-3.2.2


I had more flags, but I've been deleting some to see if that solved the problem. What I don't understand is that I already have 3.2.2 installed with this script. I'm just recompiling after adding OpenSSL support. Well, I did also clean up the extra flags since the ones I started with were pretty questionable. I don't know if I changed something or if I have a flag enabling something that isn't installed. Or maybe I'm missing a flag. That's the problem with patching things together with information from a dozen different sources. All I'm trying to do is get a functional YouTube viewer which requires OpenSSL and ffmpeg. So there may be stuff here I don't really need. But I figure it never hurts to have more stuff enabled just in case it becomes essential at some point. Anyhow, I'm hoping somebody here can decode what's going wrong so I can fix it. I can provide more information if needed.
Sasquatch
 
Posts: 1
Joined: Thu Dec 29, 2016 11:04 am

Re: Compile breaking on libavformat/rtmpdh

Postby bagger » Tue Feb 21, 2017 8:31 am

Run this command
Code: Select all
ldconfig

Go to this directory
Code: Select all
/etc/ld.so.conf

And edit it according to the libraries.
Choose to upgrade C ++
Code: Select all
aptitude install c++
bagger
 
Posts: 9
Joined: Sun Feb 19, 2017 12:48 am


Return to Compiling FFmpeg

Who is online

Users browsing this forum: No registered users and 3 guests