Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6595 Discussions

Openvino build not generating libinference_engine_java_api.so

Madhini123
Beginner
328 Views

Hello ,

 

I have been trying to build openvino ( .jar) and related (.so ) for my openvino object detection android app.  The .jar is not getting generated. Hence I used the openvino-2023.0-windows-x86_64.jar from dkurt/release git repositories.  The .jar requires the libinference_engine_java_api.so internally and the app gets installed and crashes with this fatal error.

Hence I started building the openvino and openvino_contrib for arm cpu , but in vain. The below jar and .so are not getting generated . I have been stuck with this issue for past 2 months.

libinference_engine_java_api.so  
libc++_shared.so
libopenvino_arm_cpu_plugin.so
libopenvino_gapi_preproc.so
libopenvino_tensorflow_fe.so
 
and also the .jar .
 
I have attached the script file using for my build. Currently using a debian VM cloud to build my jar as the virtual VM is hanging because of low RAM .
Please find the script file for your reference.
It would be very great if someone could help me 
 
Regards,
Madhini Balaji
0 Kudos
4 Replies
Zulkifli_Intel
Moderator
246 Views

Hi Madhini123,

Thank you for contacting us.

 

The creation of the native library file libinference_engine_java_api.so generally occurs on a desktop (or server) environment, not directly within an Android application.

 

You are using Android Java, which uses Android AAR, and it will produce:

  • openvino-android.aar
  • libopenvino.so

 

 

Regards,

Zul


0 Kudos
Madhini123
Beginner
156 Views

Hi Zul,

 

Thanks for responding.  I shall build openvino on windows environment with the below cmake command

 

cmake -S %OPV_HOME_DIR%/one-tbb ^
-B %OPV_HOME_DIR%/one-tbb-build ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_PREFIX=%OPV_HOME_DIR%/one-tbb-install ^
-DCMAKE_TOOLCHAIN_FILE=%CURRENT_CMAKE_TOOLCHAIN_FILE% ^
-DANDROID_ABI=%CURRENT_ANDROID_ABI% ^
-DANDROID_PLATFORM=%CURRENT_ANDROID_PLATFORM% ^
-DANDROID_STL=%CURRENT_ANDROID_STL% ^
-DTBB_TEST=OFF ^
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--undefined-version". 

followed by 

# Build OneTBB™ project 
cmake --build $OPV_HOME_DIR/one-tbb-build --parallel
# Install OneTBB™ project 
cmake --install $OPV_HOME_DIR/one-tbb-build

 Hope this will generate the jar and libinference_java_api.so

Regards,

Madhini

0 Kudos
Zulkifli_Intel
Moderator
98 Views

Hi Madhini123,


Let us know if you can generate the files.



Regards,

Zul


0 Kudos
Madhini123
Beginner
22 Views

Hi Zul,

 

Please let me know if I should use openvino/docs/dev/build_windows.md at master · openvinotoolkit/openvino · GitHub  or 

openvino/docs/dev/build_android.md at master · openvinotoolkit/openvino · GitHub

 

When i followed the steps build_windows.md , I got the following error 

 

Done Building Project "C:\Users\madhi\Phd\openvino_android\openvino\build\samples\cpp\benchmark\sync_benchmark\ov_sampl
es.vcxproj" (default targets) -- FAILED.

Done Building Project "C:\Users\madhi\Phd\openvino_android\openvino\build\ALL_BUILD.vcxproj" (default targets) -- FAILE
D.


Build FAILED.

"C:\Users\madhi\Phd\openvino_android\openvino\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\Users\madhi\Phd\openvino_android\openvino\build\src\plugins\auto_batch\openvino_auto_batch_plugin.vcxproj" (default
target) (6) ->
"C:\Users\madhi\Phd\openvino_android\openvino\build\src\plugins\auto_batch\openvino_auto_batch_plugin_version.vcxproj"
(default target) (7) ->
"C:\Users\madhi\Phd\openvino_android\openvino\build\src\openvino.vcxproj" (default target) (9) ->
"C:\Users\madhi\Phd\openvino_android\openvino\build\src\common\transformations\openvino_transformations_obj.vcxproj" (d
efault target) (22) ->
(ClCompile target) ->
C:\Users\madhi\Phd\openvino_android\openvino\src\common\transformations\src\transformations\common_optimizations\conv
ert_quantize_dequantize.cpp(146,1): fatal error C1001: Internal compiler error. [C:\Users\madhi\Phd\openvino_android\op
envino\build\src\common\transformations\openvino_transformations_obj.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:18:39.28

 

Regards,

Madhini B

0 Kudos
Reply