Integrating openCV in an Android project

I have just built OpenCV from source and adjusted my CMake configuration as so:

set(OpenCV_DIR "/home/ivelin/opencv/release")
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )


but I am getting this error:

Generating Android Package
  Input file: /home/ivelin/Desktop/SecureMe/smart-client/android-secureme-deployment-settings.json
  Output directory: /home/ivelin/Desktop/SecureMe/smart-client/android-build/
  Application binary: secureme
  Android build platform: android-34
  Install to device: No
The bundled library lib/ doesn't end with .so. Android only supports versionless libraries ending with the .so suffix.
make[2]: *** [CMakeFiles/secureme_make_apk.dir/build.make:71: CMakeFiles/secureme_make_apk] Error 12
make[1]: *** [CMakeFiles/Makefile2:121: CMakeFiles/secureme_make_apk.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

It is interesting why is that because I have a file and it has a symbolic link to and not the other way around, so I am confused why I get such error.

What causes this error? How can I fix it?


Yes, sorry ? I didn’t know that was a problem. I thought they are just separated platforms and I could ask separately on any

I still have no luck in solving this problem. I’d be grateful if someone could take a look!