Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Issue compiling rtmpdump (librtmp) for ARM processorHi,
I am trying to compile librtmp so I can build FFmpeg with RTMP support for ARM processor. I already have the toolchain, and solo build of FFmpeg was also successful, and testing from inside the ARM processor was success as well. My understanding: Code:
- Ffmpeg |__ Librtmp |___Openssl |___zlib So far I have built openssl for ARM, and zlib for ARM, and, I can see it is located in right ARM output folder. Prerequisites: Code:
export LD_LIBRARY_PATH=/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/lib/ export CCPREFIX="/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/bin/arm-unknown-linux-uclibcgnueabi-" export CFLAGS="-I/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/include" export LDFLAGS="-L/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/lib/" Code:
CC=arm-linux-gcc ./configure --prefix=/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr make make install 2- Steps to build openssl: Code:
export cross=arm-linux- ./Configure dist --prefix=/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr make CC="${cross}gcc" AR="${cross}ar r" RANLIB="${cross}ranlib" make install 3- Steps to build librtmp: Code:
make CROSS_COMPILE=arm-linux- INC=-I/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/include LIB=-L/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/lib Code:
make CROSS_COMPILE=arm-linux- INC=-I/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/include LIB=-L/opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/lib make[1]: Entering directory '/home/user/Downloads/ip_code/rtmpdump/librtmp' arm-linux-gcc -shared -Wl,-soname,librtmp.so.1 -o librtmp.so.1 rtmp.o log.o amf.o hashswf.o parseurl.o -lssl -lcrypto -lz /opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/bin/../lib/gcc/arm-unknown-linux-uclibcgnueabi/4.4.0/../../../../arm-unknown-linux-uclibcgnueabi/bin/ld: cannot find -lssl /opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/bin/../lib/gcc/arm-unknown-linux-uclibcgnueabi/4.4.0/../../../../arm-unknown-linux-uclibcgnueabi/bin/ld: cannot find -lcrypto /opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/bin/../lib/gcc/arm-unknown-linux-uclibcgnueabi/4.4.0/../../../../arm-unknown-linux-uclibcgnueabi/bin/ld: cannot find -lz collect2: ld returned 1 exit status Makefile:92: recipe for target 'librtmp.so.1' failed make[1]: *** [librtmp.so.1] Error 1 make[1]: Leaving directory '/home/user/Downloads/ip_code/rtmpdump/librtmp' Makefile:76: recipe for target 'librtmp/librtmp.a' failed make: *** [librtmp/librtmp.a] Error 2 Code:
[user@localhost rtmpdump]$ cd /opt/toolchain_gnueabi-4.4.0_ARMv5TE/usr/lib [user@localhost lib]$ ls bin libavcodec.a libgmp.so.10.0.2 libz.so certs libavdevice.a libiberty.a libz.so.1 engines libavfilter.a libmpfr.la libz.so.1.2.11 gcc libavformat.a libmpfr.so man include libavutil.a libmpfr.so.4 misc ldscripts libcrypto.a libmpfr.so.4.0.1 openssl.cnf lib libfakeroot-0.so libpostproc.a pkgconfig libaacplus.a libfakeroot.la libssl.a private libaacplus.la libfakeroot.so libswresample.a share libaacplus.so libgmp.la libswscale.a libaacplus.so.2 libgmp.so libx264.a libaacplus.so.2.0.2 libgmp.so.10 libz.a [user@localhost lib]$ Thanks |
#3
|
|||
|
|||
Re: Issue compiling rtmpdump (librtmp) for ARM processorDiá»…n Ä‘?*n tốt nh?° n?*y m?* b??y h m?¬nh má»›i bi??t
|
Tags: librtmp ffmpeg |
Thread Tools | |
Display Modes | |
|
|