Comment #6 on issue 61 by
nful...@google.com: Running Android Benchmarks
https://code.google.com/p/vogar/issues/detail?id=61
Ok. We've made progress: you have the latest vogar.
I suspect from the change you had to make in 2 that an assumption I made
about your dev environment was incorrect.
vogar has determined that you are not using an Android SDK. I had assumed
the same.
Vogar has two modes based on where the "adb" in your path lives: if it
thinks you are using an SDK it works differently. I can see from the
pastebin that it either picked up "adb" in a directory other than
platform-tools, or it couldn't find it at all.
To get adb, make sure you run the sdk-manager and download platform-tools.
If adb is not in your path (as suggested by your change in 2) it falls back
to assuming you have a full AOSP dev environment.
So, given your path in 2 above, execute this:
export PATH=$PATH:~/android-sdk/platform-tools
and vogar should detect the adb is in the platform-tools directory and
should switch to compiling against the android framework.jar (which
contains java.lang, etc.). vogar requires adb in your path later in the
process as well, so this is needed anyway.
If you do that you can/should also undo your change in 2: the script makes
the same assumption.
--------------------
In the case you _are_ using vogar with a full AOSP tree....
The next step is to make sure the libraries referenced exist. The immediate
complaint is that it cannot find java.lang.
That is supposed to be here:
out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar
This jar is built as a side effect of various rules on Android. I typically
build / flash my devices so I typically have these libs already built (and
with root access to the device).
To get a full android build (i.e. one that you can push to a device), you
would do:
$ make all
(usually with a -j flag like -j16 to make it threaded, e.g. make -j16 all).
*However*, that takes a long time and some setup
(
https://source.android.com/source/initializing.html).
If you just need the libraries vogar wants for compilation you just need:
$ make -j<whatever> core-libart
The other libraries listed in your pastebin are required depending on the
nature of the tests you want to run. core-libart contains the java.*
libraries. Some of the networking code needs conscrypt and bouncycastle for
secure sockets / crypto. The process is the same (take the name before
_intermediates and you have the name of the build target).