Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Add mediandk dependency for Android #64

Open
wants to merge 1 commit into
base: release/4.3.0
Choose a base branch
from

Conversation

CAMOBAP
Copy link
Contributor

@CAMOBAP CAMOBAP commented Oct 22, 2020

To avoid link error

  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:180: error: undefined reference to 'AMediaExtractor_new'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:184: error: undefined reference to 'AMediaExtractor_setDataSourceFd'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:191: error: undefined reference to 'AMediaExtractor_getTrackCount'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:195: error: undefined reference to 'AMediaExtractor_getTrackFormat'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:199: error: undefined reference to 'AMediaFormat_toString'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:202: error: undefined reference to 'AMediaFormat_getString'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:206: error: undefined reference to 'AMediaFormat_getInt32'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:207: error: undefined reference to 'AMediaFormat_getInt32'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:210: error: undefined reference to 'AMediaExtractor_selectTrack'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:213: error: undefined reference to 'AMediaCodec_createDecoderByType'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:217: error: undefined reference to 'AMediaCodec_configure'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:222: error: undefined reference to 'AMediaCodec_start'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:0: error: undefined reference to 'AMEDIAFORMAT_KEY_MIME'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:0: error: undefined reference to 'AMEDIAFORMAT_KEY_WIDTH'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:0: error: undefined reference to 'AMEDIAFORMAT_KEY_HEIGHT'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:33: error: undefined reference to 'AMediaExtractor_delete'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:42: error: undefined reference to 'AMediaFormat_delete'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:37: error: undefined reference to 'AMediaCodec_stop'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:38: error: undefined reference to 'AMediaCodec_delete'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:66: error: undefined reference to 'AMediaCodec_dequeueInputBuffer'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:70: error: undefined reference to 'AMediaCodec_getInputBuffer'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:71: error: undefined reference to 'AMediaExtractor_readSampleData'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:77: error: undefined reference to 'AMediaExtractor_getSampleTime'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:79: error: undefined reference to 'AMediaCodec_queueInputBuffer'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:81: error: undefined reference to 'AMediaExtractor_advance'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:87: error: undefined reference to 'AMediaCodec_dequeueOutputBuffer'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:90: error: undefined reference to 'AMediaCodec_getOutputFormat'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:91: error: undefined reference to 'AMediaFormat_getInt32'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:92: error: undefined reference to 'AMediaFormat_getInt32'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:94: error: undefined reference to 'AMediaCodec_getOutputBuffer'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:104: error: undefined reference to 'AMediaCodec_releaseOutputBuffer'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:109: error: undefined reference to 'AMediaCodec_getOutputFormat'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:110: error: undefined reference to 'AMediaFormat_toString'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:111: error: undefined reference to 'AMediaFormat_delete'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:0: error: undefined reference to 'AMEDIAFORMAT_KEY_WIDTH'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:0: error: undefined reference to 'AMEDIAFORMAT_KEY_HEIGHT'
  /Users/camobap/.conan/data/opencv/4.3.0/conan/stable/build/97969ad04b29c8c414a0da216a9e4c302969bc90/source_subfolder/modules/videoio/src/cap_android_mediandk.cpp:0: error: undefined reference to 'AMEDIAFORMAT_KEY_COLOR_FORMAT'

@Croydon
Copy link
Contributor

Croydon commented Nov 22, 2020

opencv/4.5.0 is now in the Conan Center Index. Please re-open a new PR there if the changes are still desired

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants