extension with opencv

99 views
Skip to first unread message

1992zh...@gmail.com

unread,
Jul 6, 2018, 9:14:30 AM7/6/18
to App Inventor Open Source Development
Hi,
I have built an extension with opencv libraries. it can be converted into .aix file successfully. But when I imported it into AI2 and tested it on the phone. It always has the error "runtime error: failed resolution of : lorg/opencv/core". Could anyone tell me what happen? Thanks.

Here are some screenshots for a simple test:

The 1st one is source code: in this test, i just call Mat  class in opencv to get a new variable. The 2nd one is the AI2 block, the function is to call the extension when clicking button. The 3rd one is the error information from phone. when testing. 









Evan Patton

unread,
Jul 9, 2018, 9:59:40 AM7/9/18
to App Inventor Open Source Development
The problem is due to the fact that native libraries are not supported in extensions at this time. You attempt to load the library, but when the VM attempts to link the native methods on the Core class it will fail due to the missing library.

Regards,
Evan

1992zh...@gmail.com

unread,
Jul 9, 2018, 11:22:27 AM7/9/18
to App Inventor Open Source Development
Thanks for your help. Do you know how to solve this? Thanks. 
Reply all
Reply to author
Forward
0 new messages