Re: [FFmpeg-devel] Weird cross platform support in ffmpeg

2022-05-31 Thread Wang Bin
Nicolas George 于2022年5月31日周二 22:40写道: > Александр (12022-05-31): > > I analyzed problem a little bit. Only gcc/clang allows to use this trick. > > Msvc compiler forbidens such code (even with different enabled > > optimizations like remove unused references, whole program optimization > > etc) I

Re: [FFmpeg-devel] Weird cross platform support in ffmpeg

2022-05-31 Thread Александр
I duplicated question at another channel (users). I wrote here because I get answers on my question here. On another channel I am ready to provide any detailed information. вт, 31 мая 2022 г. в 17:40, Nicolas George : > Александр (12022-05-31): > > I analyzed problem a little bit. Only gcc/clang

Re: [FFmpeg-devel] Weird cross platform support in ffmpeg

2022-05-31 Thread Nicolas George
Александр (12022-05-31): > I analyzed problem a little bit. Only gcc/clang allows to use this trick. > Msvc compiler forbidens such code (even with different enabled > optimizations like remove unused references, whole program optimization > etc) I have made patch, which uses preprocessor #if direc

Re: [FFmpeg-devel] Weird cross platform support in ffmpeg

2022-05-31 Thread Александр
I analyzed problem a little bit. Only gcc/clang allows to use this trick. Msvc compiler forbidens such code (even with different enabled optimizations like remove unused references, whole program optimization etc) I have made patch, which uses preprocessor #if directive instead. If it will be helpf

Re: [FFmpeg-devel] Weird cross platform support in ffmpeg

2022-05-31 Thread Andreas Rheinhardt
Timo Rothenpieler: > On 31.05.2022 12:03, Александр wrote: >> I tried to build ffmpeg 4.4 library and link with it and I received >> multiple unresolved references. I came across on unusual architecture in >> ffmpeg for multiple platforms.The library has many places with code like >> this: >> >> vo

Re: [FFmpeg-devel] Weird cross platform support in ffmpeg

2022-05-31 Thread Timo Rothenpieler
On 31.05.2022 12:03, Александр wrote: I tried to build ffmpeg 4.4 library and link with it and I received multiple unresolved references. I came across on unusual architecture in ffmpeg for multiple platforms.The library has many places with code like this: void foo() { // DO SOMETHING

Re: [FFmpeg-devel] Weird cross platform support in ffmpeg

2022-05-31 Thread Nicolas George
Александр (12022-05-31): > This code leads to linker errors because there is no any stub methods for > other platforms. I observed root MakeFile, it optionally includes platform > dependent code for each library (path like $(LIB_SUBDIR)/$(ARCH)/MakeFile) > where each foo_ is defined. > > So, how d

[FFmpeg-devel] Weird cross platform support in ffmpeg

2022-05-31 Thread Александр
I tried to build ffmpeg 4.4 library and link with it and I received multiple unresolved references. I came across on unusual architecture in ffmpeg for multiple platforms.The library has many places with code like this: void foo() { // DO SOMETHING if (ARCH_MIPS) // maybe #if ARCH_MIPS (..