strukturag / libde265.js

JavaScript-only version of libde265 HEVC/H.265 decoder.
GNU Lesser General Public License v3.0
601 stars 163 forks source link

issue while building library with emscripten #24

Open gawadeavinash opened 4 years ago

gawadeavinash commented 4 years ago

Following errors occurred during compilation of library with emscripten,

emsdk-master/fastcomp/emscripten/system/include/libcxx/memory:2148:9: error: cannot initialize a member subobject of type 'int *' with an rvalue of type 'long' : _value(_VSTD::forward<_Up>(__u)) ^ ~~~~~~~~

emsdk-master/fastcomp/emscripten/system/include/libcxx/memory:2148:9: error: cannot initialize a member subobject of type 'option_base **' with an rvalue of type 'long' : _value(_VSTD::forward<_Up>(__u)) ^ ~~~~~~~~

emsdk-master/fastcomp/emscripten/system/include/libcxx/memory:2148:9: error: cannot initialize a member subobject of type 'std::2::basic_string *' with an rvalue of type 'long' : _value(_VSTD::forward<_Up>(u)) ^ ~~~~~~~~

emsdk-master/fastcomp/emscripten/system/include/libcxx/memory:2251:9: error: no matching constructor for initialization of 'compressed_pair_elem<std::2::basic_string *, 0>' : _Base1(std::forward<_U1>(t1)), _Base2(std::forward<_U2>(t2)) {} ^ ~~~~~~~

emsdk-master/fastcomp/emscripten/system/include/libcxx/memory:2241:9: error: no matching constructor for initialization of 'compressed_pair_elem<std::2::basic_string *, 0>' : _Base1(std::forward<_Tp>(__t)), _Base2() {} ^ ~~~~~~

emsdk-master/fastcomp/emscripten/system/include/libcxx/memory:2251:9: error: no matching constructor for initialization of '__compressed_pair_elem<option_base **, 0>' : _Base1(std::forward<_U1>(t1)), _Base2(std::forward<_U2>(t2)) {} ^ ~~~~~~~

attached the complete logs of build.sh libde265_build_logs.txt

Please check the attached log file for the above mentioned errors.

Thanks in advance

bunnyc1986 commented 2 years ago

I am facing the same the error. Help needed.

EssLi commented 1 year ago

me too

cochiachang commented 6 months ago

try to upgrade the libde265 version from 1.0.2 to 1.0.15, and it can resolve