Re: [FFmpeg-user] ffmpeg cross compile error
Thanks Moritz, it works now. Am 24.07.2019 um 16:04 schrieb Moritz Barsnick: On Wed, Jul 24, 2019 at 15:28:04 +0200, Thomas Schmiedl wrote: Hello, I try to cross compile ffmpeg (git) using this toolchain https://freetz.github.io/ for a MIPS-based router. My goal is to extract a single image from this mjpeg-webcam-stream http://gwm.ccshpraha.cz:8087/. Attached are the make output and config.log (contains the configure parameters) [...] CC libavdevice/alldevices.o In file included from /home/user/freetz/toolchain/build/mips_gcc-5.5.0_uClibc-1.0.14-nptl_kernel-3.10/mips-linux-uclibc/include/stdlib.h:32:0, from /home/user/freetz/toolchain/build/mips_gcc-5.5.0_uClibc-1.0.14-nptl_kernel-3.10/mips-linux-uclibc/include/bits/sched.h:116, from /home/user/freetz/toolchain/build/mips_gcc-5.5.0_uClibc-1.0.14-nptl_kernel-3.10/mips-linux-uclibc/include/sched.h:34, from /home/user/freetz/toolchain/build/mips_gcc-5.5.0_uClibc-1.0.14-nptl_kernel-3.10/mips-linux-uclibc/include/pthread.h:24, from ./libavutil/thread.h:30, from libavdevice/alldevices.c:22: ./config.h:17:19: error: expected identifier or '(' before 'void' #define getenv(x) NULL ^ ./config.h:17:19: error: expected ')' before numeric constant #define getenv(x) NULL ^ In file included from ./libavutil/internal.h:176:0, from ./libavutil/common.h:491, from ./libavutil/avutil.h:296, from ./libavutil/samplefmt.h:24, from ./libavcodec/avcodec.h:31, from ./libavformat/avformat.h:317, from ./libavformat/internal.h:27, from libavdevice/alldevices.c:23: ./libavutil/libm.h:54:32: error: static declaration of 'cbrt' follows non-static declaration static av_always_inline double cbrt(double x) ^ This looks like this: https://github.com/openwrt/packages/issues/6735 and the workaround seems to be adding "--cpu=". See https://github.com/openwrt/packages/pull/6743/commits/8067051bfc99f48d02aec52265fc9b78f8e60dee I don't know if there's a real bug in ffmpeg's source here. This here: ./config.h:17:19: error: expected identifier or '(' before 'void' #define getenv(x) NULL indicates that the NULL macro is different on MIPS, and ffmpeg's macro might have to be: #define getenv(x) (NULL) just in case?? Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] ffmpeg cross compile error
On Wed, Jul 24, 2019 at 15:28:04 +0200, Thomas Schmiedl wrote: > Hello, > > I try to cross compile ffmpeg (git) using this toolchain > https://freetz.github.io/ for a MIPS-based router. My goal is to extract > a single image from this mjpeg-webcam-stream > http://gwm.ccshpraha.cz:8087/. Attached are the make output and > config.log (contains the configure parameters) [...] > CClibavdevice/alldevices.o > In file included from > /home/user/freetz/toolchain/build/mips_gcc-5.5.0_uClibc-1.0.14-nptl_kernel-3.10/mips-linux-uclibc/include/stdlib.h:32:0, > from > /home/user/freetz/toolchain/build/mips_gcc-5.5.0_uClibc-1.0.14-nptl_kernel-3.10/mips-linux-uclibc/include/bits/sched.h:116, > from > /home/user/freetz/toolchain/build/mips_gcc-5.5.0_uClibc-1.0.14-nptl_kernel-3.10/mips-linux-uclibc/include/sched.h:34, > from > /home/user/freetz/toolchain/build/mips_gcc-5.5.0_uClibc-1.0.14-nptl_kernel-3.10/mips-linux-uclibc/include/pthread.h:24, > from ./libavutil/thread.h:30, > from libavdevice/alldevices.c:22: > ./config.h:17:19: error: expected identifier or '(' before 'void' > #define getenv(x) NULL >^ > ./config.h:17:19: error: expected ')' before numeric constant > #define getenv(x) NULL >^ > In file included from ./libavutil/internal.h:176:0, > from ./libavutil/common.h:491, > from ./libavutil/avutil.h:296, > from ./libavutil/samplefmt.h:24, > from ./libavcodec/avcodec.h:31, > from ./libavformat/avformat.h:317, > from ./libavformat/internal.h:27, > from libavdevice/alldevices.c:23: > ./libavutil/libm.h:54:32: error: static declaration of 'cbrt' follows > non-static declaration > static av_always_inline double cbrt(double x) > ^ This looks like this: https://github.com/openwrt/packages/issues/6735 and the workaround seems to be adding "--cpu=". See https://github.com/openwrt/packages/pull/6743/commits/8067051bfc99f48d02aec52265fc9b78f8e60dee I don't know if there's a real bug in ffmpeg's source here. This here: > ./config.h:17:19: error: expected identifier or '(' before 'void' > #define getenv(x) NULL indicates that the NULL macro is different on MIPS, and ffmpeg's macro might have to be: > #define getenv(x) (NULL) just in case?? Moritz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] ffmpeg cross compile error
2018-06-03 21:25 GMT+02:00, Rafael Lima : > I'm trying to cross-compile ffmpeg for android and i'm not linux/compiler > specialist so far i've spent 10 days with much effort in order to prepare > all the dependencies i need to the job > --target-os=linux \ This looks wrong. > however i'm 100% sure about the required libs being correclty compiled and > instaled under ${PREFIX} i keep getting the message: > > ERROR: libfdk_aac not found Is this the only message you see or is there something else printed? Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] ffmpeg cross compile error
I'm trying to cross-compile ffmpeg for android and i'm not linux/compiler specialist so far i've spent 10 days with much effort in order to prepare all the dependencies i need to the job all the cross-compiled dependencies are under ${PREFIX}/lib or ${PREFIX}/include and i'm using the following command to compile ffmpeg # Build - FULL version ./configure --prefix=$PREFIX \ --arch=${ARCH}\ --cpu=${CPU} \ --cross-prefix=$CROSS_PREFIX \ --enable-cross-compile \ --sysroot=$SYSROOT \ --target-os=linux \ --sysinclude=$NDK/sysroot/usr/include \ --enable-pic \ --enable-gpl \ --enable-nonfree \ \ --disable-shared \ --enable-static \ \ --enable-ffmpeg \ --disable-ffplay \ --disable-ffprobe \ \ --enable-librtmp \ --enable-zlib \ --enable-mediacodec \ --enable-libx264 \ --enable-libfdk-aac\ --enable-libfreetype\ --enable-libmp3lame\ --enable-openssl\ --enable-libfontconfig\ --enable-bsf=aac_adtstoasc \ \ --disable-doc \ however i'm 100% sure about the required libs being correclty compiled and instaled under ${PREFIX} i keep getting the message: ERROR: libfdk_aac not found and if I disable fdk_aac will complain about other lib, and other, until i disable all extra how can i tell pkg-config to look under the right folder? all the .pc files are under ${PREFIX}/lib/pkgconfig if it is not possible... how can i disable this program? thanks -- -- Rafael Lima ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".