Ask Your Question
1

How to run "build_sdk.py" for Android SDK

asked 2015-10-21 11:11:25 -0600

alexiosk gravatar image

I have cloned OpenCV (git clone git://code.opencv.org/opencv.git). Following the instructions on http://code.opencv.org/projects/openc... I built the libraries and modules. Now how can I run "build_sdk.py" in "opencv3/platforms/android/build_sdk.py" to create the SDK? Runnning "python build_sdk.py" requires the following arguments:

usage: build_sdk.py [-h] [--ndk_path NDK_PATH] [--sdk_path SDK_PATH] [--sign_with SIGN_WITH] [--build_doc] [--no_ccache] [--extra_pack EXTRA_PACK] work_dir opencv_dir

Are the any examples on how to use this script?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-10-22 05:01:33 -0600

mshabunin gravatar image

updated 2017-07-24 06:31:16 -0600

You can take a look at the buildbot logs: choose the latest build of master_pack-android and take a look at the build_sdk step logs. Generally it should look like this:

python ../opencv/platforms/android/build_sdk.py <dir-to-store-result> ../opencv

Don't forget to provide paths to Android SDK and NDK via environment (example for *nix):

export ANDROID_SDK=...
export ANDROID_NDK=...

or using script parameters --ndk_path, --sdk_path

edit flag offensive delete link more

Comments

broken link ;(

berak gravatar imageberak ( 2015-10-22 05:36:49 -0600 )edit

thanks for pointing, I've fixed the link

mshabunin gravatar imagemshabunin ( 2015-10-22 06:52:53 -0600 )edit

^ link is now broken, again.

g3org3 gravatar imageg3org3 ( 2017-07-14 14:35:46 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2015-10-21 11:11:25 -0600

Seen: 2,841 times

Last updated: Jul 24 '17