First time here? Check out the FAQ!

Ask Your Question
0

Error building openCV.js

asked May 31 '18

leitco gravatar image

I am trying to build OpenCV.js following the steps in this tutorial.

The process fails with the following output:

make[3]: *** [3rdparty/lib/liblibprotobuf.a] Error 1
make[2]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all] Error 2
make[1]: *** [modules/js/CMakeFiles/opencv.js.dir/rule] Error 2
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

Does anybody know what this means or how it can be resolved?

I am on macOS High Sierra and my python version is 2.7.10.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered May 31 '18

berak gravatar image

updated May 31 '18

i can't help with your build problem, but:

if you merely want to use opencv.js,- there is no need to build it locally,

you can download (the minimum required) opencv.js and utils.js from the latest opencv docs

Preview: (hide)

Comments

1

Yes I just want to use it, thank you.

leitco gravatar imageleitco (May 31 '18)edit

Question Tools

1 follower

Stats

Asked: May 31 '18

Seen: 1,062 times

Last updated: May 31 '18