Closed coinhu1995 closed 4 years ago
You have to build the cpp file with android os then only you can change the logs. With ndk-build it's taking only already builded minicap.so file which is in aosp directory.
Hi @varundtsfi Is what you say in this page ?https://github.com/openstf/minicap/blob/master/jni/minicap-shared/README.md
Yes correct.
@varundtsfi Thank you
It seems that there is an answer so closing this ticket.
@varundtsfi
I ran make
in the folder minicap/jni/minicap-shared/aosp
and there is an error. Do you know how to fix it ?
Here is full log of make
command
make -j 2 mkdir -p libs/android-28/x86_64 docker run --rm \ -a stdout -a stderr \ -v /Volumes/android/android-9.0.0_r1:/aosp \ -v /Users/nhunh/workspace/source/minicap/jni/minicap-shared/aosp/:/app \ -v /Users/nhunh/workspace/source/minicap/jni/minicap-shared/aosp/libs/android-28/x86_64:/artifacts \ openstf/aosp:jdk8 /aosp.sh build aosp_x86_64-eng minicap including device/generic/car/vendorsetup.sh including device/generic/mini-emulator-arm64/vendorsetup.sh including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh including device/generic/mini-emulator-mips/vendorsetup.sh including device/generic/mini-emulator-mips64/vendorsetup.sh including device/generic/mini-emulator-x86/vendorsetup.sh including device/generic/mini-emulator-x86_64/vendorsetup.sh including device/generic/uml/vendorsetup.sh including device/google/cuttlefish/vendorsetup.sh including device/google/marlin/vendorsetup.sh including device/google/muskie/vendorsetup.sh including device/google/taimen/vendorsetup.sh including device/linaro/hikey/vendorsetup.sh including sdk/bash_completion/adb.bash
[1/1] out/soong/.minibootstrap/minibp out/soong/.bootstrap/build.ninja
[1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja FAILED: out/soong/build.ninja out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -o out/soong/build.ninja Android.bp Killed ninja: build stopped: subcommand failed. 09:47:55 soong bootstrap failed with: exit status 1 make: *** [libs/android-28/x86_64/minicap.so] Error 1
I modified minicap-shared to change the log output then run ndk-build, then I use new minicap, minicap.so but the log still same old version.