cmakeを使ってMac上でコンパイルされた、動作中のC++ライブラリがあります。私は今Androidスタジオとgradleを使ってAndroid用にコンパイルしようとしています。
私はAndroidのスタジオを使用して、それをコンパイルしようとすると、私はGradleのラッパーを使用して、コマンドラインでそれをコンパイルしようとしたと、私は次のエラーを得たので、私は不可解なリンカエラーを取得しています:OpenCV for androidでライブラリを構築すると、ビルドコマンドがないため、ターゲットXXXをビルドできません。
externalNativeBuildRelease: not building target opencv_calib3d because there was no build command for it
externalNativeBuildRelease: not building target opencv_core because there was no build command for it
externalNativeBuildRelease: not building target opencv_features2d because there was no build command for it
externalNativeBuildRelease: not building target opencv_flann because there was no build command for it
externalNativeBuildRelease: not building target opencv_highgui because there was no build command for it
externalNativeBuildRelease: not building target opencv_imgcodecs because there was no build command for it
externalNativeBuildRelease: not building target opencv_imgproc because there was no build command for it
externalNativeBuildRelease: not building target opencv_ml because there was no build command for it
externalNativeBuildRelease: not building target opencv_objdetect because there was no build command for it
externalNativeBuildRelease: not building target opencv_photo because there was no build command for it
externalNativeBuildRelease: not building target opencv_shape because there was no build command for it
externalNativeBuildRelease: not building target opencv_stitching because there was no build command for it
externalNativeBuildRelease: not building target opencv_superres because there was no build command for it
externalNativeBuildRelease: not building target opencv_video because there was no build command for it
externalNativeBuildRelease: not building target opencv_videoio because there was no build command for it
externalNativeBuildRelease: not building target opencv_videostab because there was no build command for it
...
私はできませんでしたこの問題の説明を見つけてください。
私CMakelists.txtは、行が含ま:
set (OpenCV_DIR /usr/local/Cellar/opencv3/HEAD-876c2c0_4/share/OpenCV)
set (CMAKE_MODULE_PATH /usr/local/Cellar/opencv3/HEAD-876c2c0_4/share/OpenCV)
find_package(OpenCV REQUIRED)
を、それを見つけるように見えるが、それを構築することはできません。誰かがこれを解決する方法を知っているなら、私はそれを大いに感謝します。