how to fix run stagefright on ubuntu x86_64 built normally?

216 views
Skip to first unread message

callm...@gmail.com

unread,
May 2, 2019, 2:21:02 PM5/2/19
to Android Building
I'm trying to run stagefright on linux environment `x86_64`.  
I built android-9.0.0-r35 as `x86_64`, and compiled kernel with binder, ashmem configuration, but it didn't work.

My environment is Ubuntu14.04 64bit, I compiled and install new kernel 4.20.17.

According to https://source.android.com/setup/build/building , I did below first.  I set the build environment as x86_64.


$ source build/envsetup.sh
$ lunch aosp_x86_64
-eng
$ make
-j4


I Also built stagefright like below.


$ cd [AOSP sourcecode]/framework/av
$ mma
-j4



After that, I made a symbolic link for runtime-environment.


$ ln -s [AOSP sourcecode]/out/target/product/generic_x86_64/system /system



Next, I download newer version kernel, 4.20.17, and copied my original configuration file, and add options, compiled, and install it.


$ cp /boot/config-4.4.0-142-generic .config


(.config file)
...
CONFIG_ANDROID
=y
CONFIG_ANDROID_BINDER_IPC
=y
CONFIG_ASHMEM
=y
...


$ make menuconfig
$ make
-kpkg --initrd --J 4 kernel_image
$ dpkg
-i linux-image-4.20.17_4.20.17-10.00.Custom_amd64.deb
$ echo
-e "KERNEL==\"binder\", MODE=\"0666\"\nKERNEL==\"ashmem\", MODE=\"0666\"" | tee /etc/udev/rules.d/android.rules



After that process, I rebooted my VM, and tried to run the stagefright.


$ /system/bin/stagefright -s sample.mp4


(waiting until ctrl+c)



But the result is `nothing`. The process didn't stop or finish.

I just want to know how to run stagefright on x86_64 environment.
(I don't want to ARM cross compile stagefright.)

AOSP version is pie_9.0.0-r35.
Is anybody know how to fix it and run stagefright on ubuntu x86_64 normally?

Glenn Kasten

unread,
May 2, 2019, 2:27:46 PM5/2/19
to Android Building
As far as I know, the 'stagefright' shell command located in frameworks/av/cmds/stagefright
is intended for unit testing on Android only, and in any case is unsupported.
Reply all
Reply to author
Forward
0 new messages