Calib3d and Features2d
gosha20777 opened this issue · 0 comments
gosha20777 commented
I'm trying to build opencv for use in my js project.
For the correct operation of the algorithm, I lack these functions:
- Point3f
- solvePnP
- Rodrigues
- findHomography
The functions I need are in these packages:
- Calib3d
- Features2d
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.
- I tried to compile it in the
LLVM
code and got the error:
wasm-ld: error: Relocations not in offset order
- 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))
- 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?