About cross compile of OpenCV with ffmpeg in emscripten

As regular problem of opencv ,I cross compiled opencv with ffmpeg in emscripten.
As today I have nothing to do.
My pc is ubuntu 16.04


Get opencv 3.2.0 from github
Only this version success .other version become runtime error.
Upper version become soft float errror.
Lower version cannot cross compile

2.Get ffmpeg from github (latest version)
3.Comple ffmpeg
emconfigure ./configure --cc=emcc --ar=emar --ranlib=emranlib --prefix=$(pwd)/…/dist --enable-cross-compile --target-os=none --arch=x86_32 --cpu=generic --disable-stripping --disable-programs --disable-asm --disable-doc --disable-pthreads --disable-w32threads --disable-debug --enable-decoder=hevc --enable-parser=hevc --enable-demuxer=hevc --enable-decoder=h264 --enable-parser=h264 --enable-demuxer=h264

make
make install
(I find this from google)

4.Comple opencv without ffmpeg and test with your code.(vodeo player sample?)
" emcmake cmake … -DCMAKE_INSTALL_PREFIX="“hogehoge”
-DCMAKE_BUILD_TYPE="“Release”"
-DCMAKE_C_FLAGS=-I${EMSCRIPTEN}/system/lib/libcxxabi/include/
-DCMAKE_CXX_FLAGS=-I${EMSCRIPTEN}/system/lib/libcxxabi/include/
-DBUILD_SHARED_LIBS=OFF
-DBUILD_DOCS=OFF
-DBUILD_EXAMPLES=OFF
-DBUILD_FAT_JAVA_LIB=OFF
-DBUILD_JASPER=OFF
-DBUILD_PACKAGE=OFF
-DBUILD_CUDA_STUBS=OFF
-DBUILD_opencv_java=OFF
-DBUILD_opencv_python=OFF
-DBUILD_opencv_apps=OFF
-DBUILD_JPEG=OFF
-DBUILD_PNG=OFF
-DBUILD_opencv_apps=OFF
-DBUILD_opencv_videoio=OFF
-DBUILD_opencv_highgui=OFF
-DBUILD_opencv_imgcodecs=OFF
-DBUILD_opencv_python2=OFF
-DENABLE_SSE=OFF
-DENABLE_SSE2=OFF
-DENABLE_SSE3=OFF
-DENABLE_SSE41=OFF
-DENABLE_SSE42=OFF
-DENABLE_SSSE3=OFF
-DENABLE_AVX=OFF
-DWITH_TIFF=OFF
-DWITH_OPENEXR=OFF
-DWITH_1394=OFF
-DWITH_JPEG=OFF
-DWITH_PNG=OFF
-DWITH_FFMPEG=OFF
-DWITH_OPENCL=OFF
-DWITH_GIGEAPI=OFF
-DWITH_CUDA=OFF
-DWITH_CUFFT=OFF
-DWITH_FFMPEG=OFF
-DWITH_GIGEAPI=OFF
-DWITH_GPHOTO2=OFF
-DWITH_GSTREAMER=OFF
-DWITH_GSTREAMER_0_10=OFF
-DWITH_JASPER=OFF
-DWITH_IMAGEIO=OFF
-DWITH_IPP=OFF
-DWITH_IPP_A=OFF
-DWITH_TBB=OFF
-DWITH_OPENNI=OFF
-DWITH_QT=OFF
-DWITH_QUICKTIME=OFF
-DWITH_V4L=OFF
-DWITH_LIBV4L=OFF
-DWITH_MATLAB=OFF
-DWITH_OPENCL=OFF
-DWITH_OPENCLCLAMDBLAS=OFF
-DWITH_OPENCLCLAMDFFT=OFF
-DWITH_OPENCL_SVM=OFF
-DWITH_WEBP=OFF
-DWITH_VTK=OFF
-DWITH_PVAPI=OFF
-DWITH_EIGEN=OFF
-DWITH_GTK=OFF
-DWITH_OPENCLAMDBLAS=OFF
-DWITH_OPENCLAMDFFT=OFF
-DBUILD_TESTS=OFF
-DBUILD_PERF_TESTS=OFF
-DWITH_PTHREAD_PF=OFF
And next I tuned this with cmake-gui.
make
make install
And set this in ofxOpencv
And compile with your code.

5.Comple opencv with ffmpeg and test with your code.
if your ffmpeg output *.a file is in AAA folder.

$ export PKG_CONFIG_LIBDIR=AAA
$ cd “your opencv make dir”
$ cmake-gui .
set WITH-FFMEG
and configure-generate
and cheke output

if you succeeded ffmpeg will be ON
you will see like this output
" Video I/O:
FFMPEG: YES
avcodec: YES (ver 58.33.100)
avformat: YES (ver 58.19.100)
avutil: YES (ver 56.19.101)
swscale: YES (ver 5.2.100)
avresample: NO

6.make
make install
if you get some errors check with cmake-gui or search in google.

I tested this with my code .
I think it is no matter.

Today I checked performance .
But not change .(a llitle changed)
What’s wrong with this?