Ask Your Question
0

Error building openCV.js

asked 2018-05-31 09:49:13 -0500

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2018-05-31 11:33:38 -0500

berak gravatar image

updated 2018-05-31 11:43:31 -0500

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

edit flag offensive delete link more

Comments

1

Yes I just want to use it, thank you.

leitco gravatar imageleitco ( 2018-05-31 12:29:03 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-05-31 09:49:13 -0500

Seen: 446 times

Last updated: May 31 '18