3

I needed screenrecord application in android L to record longer videos. I followed advice from this question and decided to build android. How to increase time limit of ADB screen record of Android Kitkat

After many attempts I haven't succeded, because screenrecorder binary extracted from build doesn't work. When I push screenrecord file to ANDROID and after chmod and starting screenrecord this is communicate I'm getting:

CANNOT LINK EXECUTABLE: empty/missing DT_HASH in "./screenrecord" (built with --hash-style=gnu?)

I am using Ubuntu 14 and lunch configuration hammerhead as I am testing this on Nexus 5.

How can i fix it?

Community
  • 1
  • 1
user2186425
  • 465
  • 2
  • 5
  • 13

2 Answers2

5

One option is to add "LOCAL_LDFLAGS := -Wl,--hash-style=sysv" at screenrecord Android.mk though I am sure there is a less hacky method of doing so..

NadavRub
  • 2,520
  • 27
  • 63
  • Adding "LOCAL_LDFLAGS := -Wl" leads to compilation error: Wl: No such file or directory Adding just "--hash-style = gnu" / "--hash-style = sysv" into Android.mk, compilation goes fine but the error still persists when run the application (built with --hash-style=gnu?) – Madara Feb 09 '16 at 10:21
0

I don't know the limit for Android L, but 180 seconds is the max limit for KitKat, I run multi time ( 3min each) and combine it together.

see this thread: android : merge two videos

Community
  • 1
  • 1
promenade
  • 107
  • 1
  • 7