OpenCv 3.4.3 in emscripten cannot work

I want to compile my code with ofxOpenCV. in emscripten
But now OpenCV for emscripten(I get this from apothecary) is version 3.1.0
As this version cannot cross compile with ffmpeg(I don’t know how todo it in this version)
So I get opencv opencv 3.4.3 from github(as this version can crosscompile )
and compile
and set it in ofxopencv .
and built my code.
But it out put compile warning.
my code’s compile log is this

warning: unresolved symbol: _Z7cvFloorRKN2cv10softdoubleE
warning: unresolved symbol: _Z7cvRoundRKN2cv10softdoubleE
warning: unresolved symbol: _Z7cvRoundRKN2cv9softfloatE
warning: unresolved symbol: _Z7cvTruncRKN2cv9softfloatE
warning: unresolved symbol: _Z9cvRound64RKN2cv10softdoubleE
warning: unresolved symbol: _ZN15ofURLFileLoaderC1Ev
warning: unresolved symbol: _ZN2cv10softdoubleC1Ei
warning: unresolved symbol: _ZN2cv10softdoubleC1Ex
warning: unresolved symbol: _ZN2cv12mulSpectrumsERKNS_11_InputArrayES2_RKNS_12_OutputArrayEib
warning: unresolved symbol: _ZN2cv17getOptimalDFTSizeEi
warning: unresolved symbol: _ZN2cv3dftERKNS_11_InputArrayERKNS_12_OutputArrayEii
warning: unresolved symbol: _ZN2cv3expERKNS_10softdoubleE
warning: unresolved symbol: _ZN2cv3hal5DFT2D6createEiiiiiii
warning: unresolved symbol: ZN2cv3powERKNS_10softdoubleES2
warning: unresolved symbol: _ZN2cv4cbrtERKNS_9softfloatE
warning: unresolved symbol: ZN2cv6mulAddERKNS_10softdoubleES2_S2
warning: unresolved symbol: ZN2cv6mulAddERKNS_9softfloatES2_S2
warning: unresolved symbol: _ZN2cv9softfloatC1Ei
warning: unresolved symbol: _ZNK2cv10softdoublecvNS_9softfloatEEv
warning: unresolved symbol: ZNK2cv10softdoubledvERKS0
warning: unresolved symbol: ZNK2cv10softdoubleeqERKS0
warning: unresolved symbol: ZNK2cv10softdoubleleERKS0
warning: unresolved symbol: ZNK2cv10softdoublemiERKS0
warning: unresolved symbol: ZNK2cv10softdoublemlERKS0
warning: unresolved symbol: ZNK2cv10softdoubleplERKS0
warning: unresolved symbol: _ZNK2cv9softfloatcvNS_10softdoubleEEv
warning: unresolved symbol: ZNK2cv9softfloatdvERKS0
warning: unresolved symbol: ZNK2cv9softfloatgtERKS0
warning: unresolved symbol: ZNK2cv9softfloatltERKS0
warning: unresolved symbol: ZNK2cv9softfloatmiERKS0
warning: unresolved symbol: ZNK2cv9softfloatmlERKS0
warning: unresolved symbol: ZNK2cv9softfloatplERKS0

All warning is about softfloat /and softdouble ,Do you know how to remove this?

This warning is serious ,
As it cause runtime error
Why does emscripten miss softfloat ?
If I compile in 3.1.0
My code is working .as if don’t support softfloat.
Do you know how to NOP this?

1 Like