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
196 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
2 Replies
Zulkifli_Intel
Moderator
113 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
23 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
Reply