Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/444.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript OpenCV.js安装错误:_Javascript_Opencv_Protobuf.js - Fatal编程技术网

Javascript OpenCV.js安装错误:

Javascript OpenCV.js安装错误:,javascript,opencv,protobuf.js,Javascript,Opencv,Protobuf.js,我正在尝试安装opencv.js,并遵循以下说明: 我按照emsdk的说明安装了它,并从Github克隆了OpenCV python ./platforms/js/build_js.py build_js 此命令不起作用。它抛出以下错误: ERROR:root:compiler frontend failed to generate LLVM bitcode, halting 您可以找到所有错误: ===== ===== Building OpenCV.js in asm.js =====

我正在尝试安装opencv.js,并遵循以下说明:

我按照emsdk的说明安装了它,并从Github克隆了OpenCV

python ./platforms/js/build_js.py build_js
此命令不起作用。它抛出以下错误:

ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
您可以找到所有错误:

=====
===== Building OpenCV.js in asm.js
=====
Executing: ['make', '-j', '8', 'opencv.js']
Scanning dependencies of target zlib
Scanning dependencies of target libprotobuf
[  0%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/gzclose.c.o
[  0%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/crc32.c.o
[  2%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/adler32.c.o
[  2%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/deflate.c.o
[  2%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/compress.c.o
[  3%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/gzread.c.o
[  3%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/gzlib.c.o
[  3%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.o
[  4%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arenastring.cc.o
[  4%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/gzwrite.c.o
[  4%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/inflate.c.o
[  5%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/infback.c.o
[  5%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/extension_set.cc.o
[  5%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/inftrees.c.o
[  5%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/inffast.c.o
[  6%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/trees.c.o
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.h:54:
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomic_sequence_num.h:44:12: error: 
      no matching function for call to 'NoBarrier_AtomicIncrement'
    return NoBarrier_AtomicIncrement(&word_, 1) - 1;
           ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:51:17: note: 
      candidate function not viable: no known conversion from
      'google::protobuf::internal::AtomicWord *' (aka 'long *') to 'volatile
      google::protobuf::internal::Atomic32 *' (aka 'volatile int *') for 1st
      argument
inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr,
                ^
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:154:81: error: 
      cannot initialize a parameter of type 'const volatile
      google::protobuf::internal::Atomic32 *' (aka 'const volatile int *') with
      an rvalue of type 'google::protobuf::internal::AtomicWord *'
      (aka 'long *')
  ...&blocks_));
     ^~~~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:93:57: note: 
      passing argument to parameter 'ptr' here
inline Atomic32 NoBarrier_Load(volatile const Atomic32* ptr) {
                                                        ^
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:155:45: error: 
      cannot initialize a parameter of type 'volatile
      google::protobuf::internal::Atomic32 *' (aka 'volatile int *') with an
      rvalue of type 'google::protobuf::internal::AtomicWord *' (aka 'long *')
  google::protobuf::internal::Release_Store(&blocks_, reinterpret_cast<g...
                                            ^~~~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:89:46: note: 
      passing argument to parameter 'ptr' here
inline void Release_Store(volatile Atomic32* ptr, Atomic32 value) {
                                             ^
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:158:47: error: 
      cannot initialize a parameter of type 'volatile
      google::protobuf::internal::Atomic32 *' (aka 'volatile int *') with an
      rvalue of type 'google::protobuf::internal::AtomicWord *' (aka 'long *')
    google::protobuf::internal::Release_Store(&hint_, reinterpret_cast<g...
                                              ^~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:89:46: note: 
      passing argument to parameter 'ptr' here
inline void Release_Store(volatile Atomic32* ptr, Atomic32 value) {
                                             ^
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:167:60: error: 
      cannot initialize a parameter of type 'volatile
      google::protobuf::internal::Atomic32 *' (aka 'volatile int *') with an
      rvalue of type 'google::protobuf::internal::AtomicWord *' (aka 'long *')
      google::protobuf::internal::NoBarrier_AtomicExchange(&cleanup_list_,
                                                           ^~~~~~~~~~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:46:61: note: 
      passing argument to parameter 'ptr' here
inline Atomic32 NoBarrier_AtomicExchange(volatile Atomic32* ptr,
                                                            ^
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:196:80: error: 
      cannot initialize a parameter of type 'const volatile
      google::protobuf::internal::Atomic32 *' (aka 'const volatile int *') with
      an rvalue of type 'google::protobuf::internal::AtomicWord *'
      (aka 'long *')
  ...reinterpret_cast<Block*>(google::protobuf::internal::Acquire_Load(&hint_));
                                                                       ^~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:97:55: note: 
      passing argument to parameter 'ptr' here
inline Atomic32 Acquire_Load(volatile const Atomic32* ptr) {
                                                      ^
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:218:49: error: 
      cannot initialize a parameter of type 'volatile
      google::protobuf::internal::Atomic32 *' (aka 'volatile int *') with an
      rvalue of type 'google::protobuf::internal::AtomicWord *' (aka 'long *')
    google::protobuf::internal::NoBarrier_Store(&hint_, reinterpret_cast...
                                                ^~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:77:48: note: 
      passing argument to parameter 'ptr' here
inline void NoBarrier_Store(volatile Atomic32* ptr, Atomic32 value) {
                                               ^
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:229:82: error: 
      cannot initialize a parameter of type 'const volatile
      google::protobuf::internal::Atomic32 *' (aka 'const volatile int *') with
      an rvalue of type 'const google::protobuf::internal::AtomicWord *'
      (aka 'const long *')
  ...&blocks_));
     ^~~~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:93:57: note: 
      passing argument to parameter 'ptr' here
inline Atomic32 NoBarrier_Load(volatile const Atomic32* ptr) {
                                                        ^
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:239:82: error: 
      cannot initialize a parameter of type 'const volatile
      google::protobuf::internal::Atomic32 *' (aka 'const volatile int *') with
      an rvalue of type 'const google::protobuf::internal::AtomicWord *'
      (aka 'const long *')
  ...&blocks_));
     ^~~~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:93:57: note: 
      passing argument to parameter 'ptr' here
inline Atomic32 NoBarrier_Load(volatile const Atomic32* ptr) {
                                                        ^
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:251:82: error: 
      cannot initialize a parameter of type 'const volatile
      google::protobuf::internal::Atomic32 *' (aka 'const volatile int *') with
      an rvalue of type 'const google::protobuf::internal::AtomicWord *'
      (aka 'const long *')
  ...&blocks_));
     ^~~~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:93:57: note: 
      passing argument to parameter 'ptr' here
inline Atomic32 NoBarrier_Load(volatile const Atomic32* ptr) {
                                                        ^
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:262:82: error: 
      cannot initialize a parameter of type 'const volatile
      google::protobuf::internal::Atomic32 *' (aka 'const volatile int *') with
      an rvalue of type 'google::protobuf::internal::AtomicWord *'
      (aka 'long *')
  ...&blocks_));
     ^~~~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:93:57: note: 
      passing argument to parameter 'ptr' here
inline Atomic32 NoBarrier_Load(volatile const Atomic32* ptr) {
                                                        ^
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:297:74: error: 
      cannot initialize a parameter of type 'const volatile
      google::protobuf::internal::Atomic32 *' (aka 'const volatile int *') with
      an rvalue of type 'google::protobuf::internal::AtomicWord *'
      (aka 'long *')
  ...&cleanup_list_));
     ^~~~~~~~~~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:93:57: note: 
      passing argument to parameter 'ptr' here
inline Atomic32 NoBarrier_Load(volatile const Atomic32* ptr) {
                                                        ^
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:308:80: error: 
      cannot initialize a parameter of type 'const volatile
      google::protobuf::internal::Atomic32 *' (aka 'const volatile int *') with
      an rvalue of type 'google::protobuf::internal::AtomicWord *'
      (aka 'long *')
  ...&blocks_));
     ^~~~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:97:55: note: 
      passing argument to parameter 'ptr' here
inline Atomic32 Acquire_Load(volatile const Atomic32* ptr) {
                                                      ^
13 errors generated.
ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
[  6%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/uncompr.c.o
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:63: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
[  6%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/zutil.c.o
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arenastring.cc:34:
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arenastring.h:39:
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.h:54:
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomic_sequence_num.h:44:12: error: 
      no matching function for call to 'NoBarrier_AtomicIncrement'
    return NoBarrier_AtomicIncrement(&word_, 1) - 1;
           ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:51:17: note: 
      candidate function not viable: no known conversion from
      'google::protobuf::internal::AtomicWord *' (aka 'long *') to 'volatile
      google::protobuf::internal::Atomic32 *' (aka 'volatile int *') for 1st
      argument
inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr,
                ^
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arenastring.cc:34:
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arenastring.h:40:
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/generated_message_util.h:45:
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/once.h:126:30: error: 
      cannot initialize a parameter of type 'const volatile
      google::protobuf::internal::Atomic32 *' (aka 'const volatile int *') with
      an lvalue of type 'google::protobuf::ProtobufOnceType *' (aka 'long *')
  if (internal::Acquire_Load(once) != ONCE_STATE_DONE) {
                             ^~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:97:55: note: 
      passing argument to parameter 'ptr' here
inline Atomic32 Acquire_Load(volatile const Atomic32* ptr) {
                                                      ^
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arenastring.cc:34:
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arenastring.h:40:
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/generated_message_util.h:45:
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/once.h:135:30: error: 
      cannot initialize a parameter of type 'const volatile
      google::protobuf::internal::Atomic32 *' (aka 'const volatile int *') with
      an lvalue of type 'google::protobuf::ProtobufOnceType *' (aka 'long *')
  if (internal::Acquire_Load(once) != ONCE_STATE_DONE) {
                             ^~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:97:55: note: 
      passing argument to parameter 'ptr' here
inline Atomic32 Acquire_Load(volatile const Atomic32* ptr) {
                                                      ^
3 errors generated.
ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:88: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arenastring.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arenastring.cc.o] Error 1
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/extension_set.cc:37:
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/once.h:126:30: error: 
      cannot initialize a parameter of type 'const volatile
      google::protobuf::internal::Atomic32 *' (aka 'const volatile int *') with
      an lvalue of type 'google::protobuf::ProtobufOnceType *' (aka 'long *')
  if (internal::Acquire_Load(once) != ONCE_STATE_DONE) {
                             ^~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:97:55: note: 
      passing argument to parameter 'ptr' here
inline Atomic32 Acquire_Load(volatile const Atomic32* ptr) {
                                                      ^
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/extension_set.cc:37:
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/once.h:135:30: error: 
      cannot initialize a parameter of type 'const volatile
      google::protobuf::internal::Atomic32 *' (aka 'const volatile int *') with
      an lvalue of type 'google::protobuf::ProtobufOnceType *' (aka 'long *')
  if (internal::Acquire_Load(once) != ONCE_STATE_DONE) {
                             ^~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:97:55: note: 
      passing argument to parameter 'ptr' here
inline Atomic32 Acquire_Load(volatile const Atomic32* ptr) {
                                                      ^
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/extension_set.cc:38:
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/extension_set.h:51:
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/repeated_field.h:60:
In file included from /home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.h:54:
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomic_sequence_num.h:44:12: error: 
      no matching function for call to 'NoBarrier_AtomicIncrement'
    return NoBarrier_AtomicIncrement(&word_, 1) - 1;
           ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops_internals_generic_gcc.h:51:17: note: 
      candidate function not viable: no known conversion from
      'google::protobuf::internal::AtomicWord *' (aka 'long *') to 'volatile
      google::protobuf::internal::Atomic32 *' (aka 'volatile int *') for 1st
      argument
inline Atomic32 NoBarrier_AtomicIncrement(volatile Atomic32* ptr,
                ^
[  7%] Linking C static library ../lib/libzlib.a
3 errors generated.
ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/build.make:113: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/extension_set.cc.o' failed
make[3]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/extension_set.cc.o] Error 1
CMakeFiles/Makefile2:706: recipe for target '3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all' failed
make[2]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[  7%] Built target zlib
CMakeFiles/Makefile2:1517: recipe for target 'modules/js/CMakeFiles/opencv.js.dir/rule' failed
make[1]: *** [modules/js/CMakeFiles/opencv.js.dir/rule] Error 2
Makefile:351: recipe for target 'opencv.js' failed
make: *** [opencv.js] Error 2
Traceback (most recent call last):
  File "./platforms/js/build_js.py", line 247, in <module>
    builder.build_opencvjs()
  File "./platforms/js/build_js.py", line 182, in build_opencvjs
    execute(["make", "-j", str(multiprocessing.cpu_count()), "opencv.js"])
  File "./platforms/js/build_js.py", line 19, in execute
    raise Fail("Child returned: %s" % retcode)
__main__.Fail: Child returned: 2
=====
====在asm.js中构建OpenCV.js
=====
正在执行:['make','-j','8','opencv.js']
目标zlib的扫描依赖关系
目标libprotobuf的扫描依赖项
[0%]构建C对象第三方/zlib/cmakfiles/zlib.dir/gzclose.C.o
[0%]构建C对象第三方/zlib/cmakfiles/zlib.dir/crc32.C.o
[2%]构建C对象第三方/zlib/cmakfiles/zlib.dir/adler32.C.o
[2%]构建C对象第三方/zlib/cmakfiles/zlib.dir/deflate.C.o
[2%]构建C对象第三方/zlib/cmakfiles/zlib.dir/compress.C.o
[3%]构建C对象第三方/zlib/cmakfiles/zlib.dir/gzread.C.o
[3%]构建C对象第三方/zlib/cmakfiles/zlib.dir/gzlib.C.o
[3%]构建CXX对象第三方/protobuf/cmakfiles/libprotobuf.dir/src/google/protobuf/arena.cc.o
[4%]构建CXX对象第三方/protobuf/cmakfiles/libprotobuf.dir/src/google/protobuf/arenastring.cc.o
[4%]构建C对象第三方/zlib/cmakfiles/zlib.dir/gzwrite.C.o
[4%]构建C对象第三方/zlib/cmakfiles/zlib.dir/inflate.C.o
[5%]构建C对象第三方/zlib/cmakfiles/zlib.dir/infback.C.o
[5%]构建CXX对象第三方/protobuf/cmakfiles/libprotobuf.dir/src/google/protobuf/extension_set.cc.o
[5%]构建C对象第三方/zlib/cmakfiles/zlib.dir/inftrees.C.o
[5%]构建C对象第三方/zlib/cmakfiles/zlib.dir/inffast.C.o
[6%]构建C对象第三方/zlib/cmakfiles/zlib.dir/trees.C.o
文件包括在/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:31:
文件包括在/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.h:54中:
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomic_sequence_num.h:44:12:错误:
调用“NoBarrier_AtomicIncrement”时没有匹配的函数
返回NoBarrier_原子增量(&word_,1)-1;
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops\u internals\u generic\u gcc.h:51:17:注:
候选函数不可行:没有已知的从
“google::protobuf::internal::AtomicWord*”(也称为“long*”)到“volatile”
google::protobuf::internal::Atomic32*'(也称为“volatile int*”)第一个
论点
内联原子32 NoBarrier_原子增量(挥发性原子32*ptr,
^
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:154:81:错误:
无法初始化“const volatile”类型的参数
google::protobuf::internal::Atomic32*'(也称为“const volatile int*”)带有
类型为“google::protobuf::internal::AtomicWord*”的右值
(又称“长*”)
),;
^~~~~~~~
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/stubs/atomicops\u internals\u generic\u gcc.h:93:57:注:
在此处将参数传递给参数“ptr”
内联Atomic32 NoBarrier_加载(volatile const Atomic32*ptr){
^
/home/tugba/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:155:45:错误:
无法初始化“volatile”类型的参数
带有
类型为“google::protobuf::internal::AtomicWord*”的右值(也称为“long*”)

google::protobuf::internal::Release_Store(&blocks),reinterpret_cast而不是通过源代码安装,
npm
Thread
可用于安装
OpenCV
for
Javascript

npm install opencv.js

yarn add opencv.js