peterbraden / node-opencv

OpenCV Bindings for node.js
MIT License
4.37k stars 858 forks source link

Calib3d and Features2d #655

Open gosha20777 opened 5 years ago

gosha20777 commented 5 years ago

I'm trying to build opencv for use in my js project.

For the correct operation of the algorithm, I lack these functions:

The functions I need are in these packages:

But on the Internet I did not find the pre-compiled library with the functionality I needed. For this reason, I decided to build everything myself.

When assembling I am guided by https://docs.opencv.org/3.4/d5/d10/tutorial_js_root.html.

Compilation of the library was successful(!), but failed to build it.

  1. I tried to compile it in the LLVM code and got the error:
wasm-ld: error: Relocations not in offset order
  1. Next, I tried to compile it into *.so files, but to no avail: This assembly option is prohibited:
emscripten / cmake / Modules / Platform / Emscripten.cmake: set_property (GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE))
  1. The build method using static libraries in the *. ar archives format also ended with an error:
error: undefined symbol: fp $ _ZN2TH11THFile_freeEPNS

I know for sure that these packages can be compiled in some way. Can you give me a guide or pin js file with pre-compiled modules?