AndroidBuild
Opened this issue · 22 comments
Hello,
I have some problems, could you please help me out?
I finish your tutorial and go to the next step AndroidBuild
I run
"lunch"
and it appears the menu like this
" 1. full-eng
2. full_x86-eng
3. vbox_x86-eng
"- only 3 options.
I chose 1 (also check with 2 and 3)
However, when I run "make clean && make ..."
the error shows
" PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
Checking build tools versions...
make: *** No rule to make target `opentee-engine'. Stop.
"
The "no rule to make target...." error appears when the Android.mk files of opentee-engine are not visible in the android source tree you have.
Have you done the symlink step mentioned in the android tutorial?
The goal is to have the following directory structure
android_sourcetree/
------------------------->opentee/
------------------------------------->emulator/
------------------------------------->libtee/
etc....
The android make searches in all the subdirectories in it's root dir to find the makefiles for the specific modules mentioned.
Thanks for your reply,
I make a link already
I saw Android.mk in the following directory structure
(Android_Envi is the source)
/home/user/Android_Envi/Open-TEE
In my system, the directory structure look likes your mention:
Android_Envi
- Open-TEE
-emulator
- libtee
-Android.mk
etc.
I check and run it again. But it is still not work
This is weird.
- Are you running all the commands from bash or from zsh? Only bash is compatible with the android build system for now.
- Have you setup the following environment variables?
export ANDROID_ROOT="$HOME/Android_Envi"
$ANDROID_ROOT/prebuilts/misc/linux-x86/ccache/ccache -M 50G
source "$ANDROID_ROOT/build/envsetup.sh"
-
It seems weird that your sourcetree has only 3 lunch targets. Usually the official AOSP has >5 available. Have you tried with the AOSP tree as well?
-
I'm assuming you have synced opentee with the latest changes in the repos?
Thank you very much,
I have done all things which you mentioned but it still not working
I will re-setup my system, and do it again. I really want to work on TEE
Hello I am experiencing the following issue when I invoke make clean && make opentee-engine libManagerApi libInternalApi libLauncherApi libCommonApi libta_conn_test_app conn_test_app libtee
Which results in the following error:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: unknown target 'opentee-engine'
build/core/ninja.mk:123: recipe for target 'ninja.intermediate' failed
make: *** [ninja.intermediate] Error 1
When I run lunch
it outputs:
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
Which would you like? [aosp_arm-eng]
I have made a Symlink to Open-TEE project as opentee
in my android_source folder. As mentioned above I have also set the environment variables inside of bash.
Any suggestions would be much appreciated.
Thanks.
For some reason it cannot find the Android.mk make file that contains the opentee-engine module. This file is in emulator/opentee-main/Android.mk
and in each directory from $ANDROID_SOURCE_ROOT till opentee-main/ there should be an Android.mk file that instructs the build to continue to all subdirectories.
Can you do ls -la
in your android_source/ folder and then ls -laR android_source/Open-TEE/
so that the full structure is visible? If you just try to make libtee
does it still fail?
I assume you run the lunch
and make
commands inside the android_source directory.
ls -la
produces:
jorden@Phantom:~/Android/android_source$ ls -al
total 120
drwxrwxr-x 29 jorden jorden 4096 Sep 29 19:43 .
drwxrwxr-x 5 jorden jorden 4096 Sep 29 16:37 ..
drwxrwxr-x 3 jorden jorden 4096 Sep 29 12:03 abi
lrwxrwxrwx 1 jorden jorden 19 Sep 29 12:03 Android.bp -> build/soong/root.bp
drwxrwxr-x 19 jorden jorden 4096 Sep 29 12:03 art
drwxrwxr-x 12 jorden jorden 4096 Sep 29 12:03 bionic
drwxrwxr-x 3 jorden jorden 4096 Sep 29 12:03 bootable
lrwxrwxrwx 1 jorden jorden 26 Sep 29 12:03 bootstrap.bash -> build/soong/bootstrap.bash
drwxrwxr-x 10 jorden jorden 4096 Sep 29 12:03 build
drwxrwxr-x 18 jorden jorden 4096 Sep 29 15:31 .ccache
drwxrwxr-x 12 jorden jorden 4096 Sep 29 12:03 cts
drwxrwxr-x 10 jorden jorden 4096 Sep 29 12:03 dalvik
drwxrwxr-x 6 jorden jorden 4096 Sep 29 12:03 developers
drwxrwxr-x 21 jorden jorden 4096 Sep 29 12:03 development
drwxrwxr-x 11 jorden jorden 4096 Sep 29 12:03 device
drwxrwxr-x 3 jorden jorden 4096 Sep 29 12:03 docs
drwxrwxr-x 217 jorden jorden 4096 Sep 29 12:04 external
drwxrwxr-x 17 jorden jorden 4096 Sep 29 12:04 frameworks
drwxrwxr-x 13 jorden jorden 4096 Sep 29 12:04 hardware
drwxrwxr-x 17 jorden jorden 4096 Sep 29 12:04 libcore
drwxrwxr-x 5 jorden jorden 4096 Sep 29 12:04 libnativehelper
-r--r--r-- 1 jorden jorden 87 Sep 29 12:03 Makefile
drwxrwxr-x 8 jorden jorden 4096 Sep 29 12:04 ndk
lrwxrwxrwx 1 jorden jorden 29 Sep 29 19:43 Open-TEE -> /home/jorden/Android/Open-TEE
drwxrwxr-x 4 jorden jorden 4096 Sep 29 16:43 out
drwxrwxr-x 9 jorden jorden 4096 Sep 29 12:04 packages
drwxrwxr-x 6 jorden jorden 4096 Sep 29 12:04 pdk
drwxrwxr-x 19 jorden jorden 4096 Sep 29 12:05 prebuilts
drwxrwxr-x 7 jorden jorden 4096 Sep 29 12:03 .repo
drwxrwxr-x 25 jorden jorden 4096 Sep 29 12:05 sdk
drwxrwxr-x 24 jorden jorden 4096 Sep 29 12:05 system
drwxrwxr-x 3 jorden jorden 4096 Sep 29 12:05 toolchain
drwxrwxr-x 3 jorden jorden 4096 Sep 29 12:05 tools
Then running ls -laR android_source/Open-TEE/
shows me the full structure as expected. I can post the output if you want but is large.
Yes I am running in the android_source folder. I have run lunch
then make clean
then make libtee
I then get the following error:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: unknown target 'libtee', did you mean 'libfec'?
build/core/ninja.mk:123: recipe for target 'ninja.intermediate' failed
make: *** [ninja.intermediate] Error 1
#### make failed to build some targets (23 seconds) ####
Any thoughts on why this might not build?
When I download the project with repo
I did not use the -m developer.xml
would this make a difference?
I always use the -m developer.xml
option but it shouldn't make any difference. It's the same tree.
The Android.mk files in Open-TEE/ and Open-TEE/emulator should have
LOCAL_PATH := $(my-dir)
include $(call all-makefiles-under,$(LOCAL_PATH))
in them.
Both Android.mk have the exact content as shown above. The includes are when running make libtee
are:
Checking build tools versions...
including ./abi/cpp/Android.mk ...
including ./art/Android.mk ...
including ./bionic/Android.mk ...
including ./bootable/recovery/Android.mk ...
including ./build/libs/host/Android.mk ...
including ./build/target/board/Android.mk ...
including ./build/target/product/security/Android.mk ...
including ./build/tools/Android.mk ...
including ./cts/Android.mk ...
including ./dalvik/Android.mk ...
including ./development/apps/BluetoothDebug/Android.mk ...
including ./development/apps/BuildWidget/Android.mk ...
including ./development/apps/CustomLocale/Android.mk ...
including ./development/apps/Development/Android.mk ...
including ./development/apps/DevelopmentSettings/Android.mk ...
including ./development/apps/Fallback/Android.mk ...
including ./development/apps/GestureBuilder/Android.mk ...
including ./development/apps/NinePatchLab/Android.mk ...
including ./development/apps/OBJViewer/Android.mk ...
including ./development/apps/SdkSetup/Android.mk ...
including ./development/apps/SettingInjectorSample/Android.mk ...
including ./development/apps/WidgetPreview/Android.mk ...
including ./development/apps/launchperf/Android.mk ...
including ./development/build/Android.mk ...
including ./development/cmds/monkey/Android.mk ...
including ./development/host/windows/prebuilt/usb/Android.mk ...
including ./development/ndk/Android.mk ...
including ./development/perftests/panorama/Android.mk ...
including ./development/samples/AccelerometerPlay/Android.mk ...
including ./development/samples/ActionBarCompat/Android.mk ...
including ./development/samples/AliasActivity/Android.mk ...
including ./development/samples/AndroidBeamDemo/Android.mk ...
including ./development/samples/ApiDemos/Android.mk ...
including ./development/samples/AppNavigation/Android.mk ...
including ./development/samples/BackupRestore/Android.mk ...
including ./development/samples/BasicGLSurfaceView/Android.mk ...
including ./development/samples/BluetoothChat/Android.mk ...
including ./development/samples/BluetoothHDP/Android.mk ...
including ./development/samples/BusinessCard/Android.mk ...
including ./development/samples/Compass/Android.mk ...
including ./development/samples/ContactManager/Android.mk ...
including ./development/samples/CubeLiveWallpaper/Android.mk ...
including ./development/samples/FixedGridLayout/Android.mk ...
including ./development/samples/HeavyWeight/Android.mk ...
including ./development/samples/HelloActivity/Android.mk ...
including ./development/samples/HelloEffects/Android.mk ...
including ./development/samples/Home/Android.mk ...
including ./development/samples/HoneycombGallery/Android.mk ...
including ./development/samples/JetBoy/Android.mk ...
including ./development/samples/KeyChainDemo/Android.mk ...
including ./development/samples/LunarLander/Android.mk ...
including ./development/samples/MultiResolution/Android.mk ...
including ./development/samples/MySampleRss/Android.mk ...
including ./development/samples/NotePad/Android.mk ...
including ./development/samples/Obb/Android.mk ...
including ./development/samples/RSSReader/Android.mk ...
including ./development/samples/RandomMusicPlayer/Android.mk ...
including ./development/samples/RenderScript/Android.mk ...
including ./development/samples/SampleSyncAdapter/Android.mk ...
including ./development/samples/SearchableDictionary/Android.mk ...
including ./development/samples/SimpleJNI/Android.mk ...
including ./development/samples/SipDemo/Android.mk ...
including ./development/samples/SkeletonApp/Android.mk ...
including ./development/samples/Snake/Android.mk ...
including ./development/samples/SoftKeyboard/Android.mk ...
including ./development/samples/SpellChecker/Android.mk ...
including ./development/samples/StackWidget/Android.mk ...
including ./development/samples/Support13Demos/Android.mk ...
including ./development/samples/Support4Demos/Android.mk ...
including ./development/samples/Support7Demos/Android.mk ...
including ./development/samples/SupportAppNavigation/Android.mk ...
including ./development/samples/SupportDesignDemos/Android.mk ...
including ./development/samples/SupportLeanbackDemos/Android.mk ...
including ./development/samples/ToyVpn/Android.mk ...
including ./development/samples/TtsEngine/Android.mk ...
including ./development/samples/USB/Android.mk ...
including ./development/samples/UiAutomator/Android.mk ...
including ./development/samples/Vault/Android.mk ...
including ./development/samples/VoiceRecognitionService/Android.mk ...
including ./development/samples/VoicemailProviderDemo/Android.mk ...
including ./development/samples/WeatherListWidget/Android.mk ...
including ./development/samples/WiFiDirectDemo/Android.mk ...
including ./development/samples/WiFiDirectServiceDiscovery/Android.mk ...
including ./development/samples/Wiktionary/Android.mk ...
including ./development/samples/WiktionarySimple/Android.mk ...
including ./development/samples/XmlAdapters/Android.mk ...
including ./development/samples/training/NsdChat/Android.mk ...
including ./development/testrunner/Android.mk ...
including ./development/tools/apkcheck/Android.mk ...
including ./development/tools/emulator/test-apps/SmokeTests/Android.mk ...
including ./development/tools/etc1tool/Android.mk ...
including ./development/tools/hosttestlib/Android.mk ...
including ./development/tools/idegen/Android.mk ...
including ./development/tools/line_endings/Android.mk ...
including ./development/tools/mkstubs/Android.mk ...
including ./development/tools/recovery_l10n/Android.mk ...
including ./development/tools/rmtypedefs/Android.mk ...
including ./development/tools/yuv420sp2rgb/Android.mk ...
including ./development/tutorials/MoarRam/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv1/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv1Solution/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv2/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv2Solution/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv3/Android.mk ...
including ./development/tutorials/NotepadCodeLab/Notepadv3Solution/Android.mk ...
including ./development/tutorials/ReverseDebug/Android.mk ...
including ./device/asus/deb/dumpstate/Android.mk ...
including ./device/asus/deb/self-extractors/Android.mk ...
including ./device/asus/flo/Android.mk ...
including ./device/asus/fugu/Android.mk ...
including ./device/asus/grouper/Android.mk ...
including ./device/asus/tilapia/recovery/Android.mk ...
including ./device/asus/tilapia/self-extractors/Android.mk ...
including ./device/generic/goldfish/audio/Android.mk ...
including ./device/generic/goldfish/camera/Android.mk ...
including ./device/generic/goldfish/gps/Android.mk ...
including ./device/generic/goldfish/lights/Android.mk ...
including ./device/generic/goldfish/opengl/Android.mk ...
including ./device/generic/goldfish/power/Android.mk ...
including ./device/generic/goldfish/qemu-props/Android.mk ...
including ./device/generic/goldfish/qemud/Android.mk ...
including ./device/generic/goldfish/sensors/Android.mk ...
including ./device/generic/goldfish/vibrator/Android.mk ...
including ./device/google/accessory/arduino/Android.mk ...
including ./device/google/accessory/demokit/Android.mk ...
including ./device/google/atv/LeanbackSampleApp/Android.mk ...
including ./device/google/atv/sdk/Android.mk ...
including ./device/htc/flounder/Android.mk ...
including ./device/lge/hammerhead/Android.mk ...
including ./device/lge/mako/Android.mk ...
including ./device/moto/shamu/Android.mk ...
including ./device/sample/Android.mk ...
including ./device/samsung/manta/Android.mk ...
including ./docs/source.android.com/Android.mk ...
including ./external/aac/Android.mk ...
including ./external/android-clat/Android.mk ...
including ./external/ant-glob/Android.mk ...
including ./external/antlr/Android.mk ...
including ./external/apache-harmony/Android.mk ...
including ./external/apache-xml/Android.mk ...
including ./external/avahi/Android.mk ...
including ./external/bison/Android.mk ...
including ./external/blktrace/Android.mk ...
including ./external/boringssl/Android.mk ...
including ./external/bouncycastle/Android.mk ...
including ./external/bsdiff/Android.mk ...
including ./external/bzip2/Android.mk ...
including ./external/c-ares/Android.mk ...
including ./external/cblas/Android.mk ...
including ./external/ceres-solver/Android.mk ...
including ./external/chromium-libpac/Android.mk ...
including ./external/chromium_org/Android.mk ...
including ./external/clang/Android.mk ...
including ./external/compiler-rt/Android.mk ...
including ./external/conscrypt/Android.mk ...
including ./external/cryptsetup/Android.mk ...
including ./external/curl/Android.mk ...
including ./external/dbus-binding-generator/Android.mk ...
including ./external/dbus/Android.mk ...
including ./external/deqp/Android.mk ...
including ./external/dexmaker/Android.mk ...
including ./external/dhcpcd-6.8.2/Android.mk ...
including ./external/dhcpcd/Android.mk ...
including ./external/dnsmasq/Android.mk ...
including ./external/doclava/Android.mk ...
including ./external/droiddriver/Android.mk ...
including ./external/e2fsprogs/Android.mk ...
including ./external/easymock/Android.mk ...
including ./external/eclipse-windowbuilder/propertysheet/Android.mk ...
including ./external/eigen/Android.mk ...
including ./external/elfutils/Android.mk ...
including ./external/emma/Android.mk ...
including ./external/expat/Android.mk ...
including ./external/eyes-free/Android.mk ...
including ./external/f2fs-tools/Android.mk ...
including ./external/fdlibm/Android.mk ...
including ./external/fec/Android.mk ...
including ./external/fio/Android.mk ...
including ./external/flac/Android.mk ...
including ./external/freetype/Android.mk ...
including ./external/fsck_msdos/Android.mk ...
including ./external/gemmlowp/Android.mk ...
including ./external/giflib/Android.mk ...
including ./external/glide/Android.mk ...
including ./external/gmock/Android.mk ...
including ./external/google-breakpad/Android.mk ...
including ./external/google-fonts/carrois-gothic-sc/Android.mk ...
including ./external/google-fonts/coming-soon/Android.mk ...
including ./external/google-fonts/cutive-mono/Android.mk ...
including ./external/google-fonts/dancing-script/Android.mk ...
including ./external/google-tv-pairing-protocol/Android.mk ...
including ./external/gtest/Android.mk ...
including ./external/guava/Android.mk ...
including ./external/hamcrest/Android.mk ...
including ./external/harfbuzz_ng/Android.mk ...
including ./external/icu/Android.mk ...
including ./external/iproute2/Android.mk ...
including ./external/ipsec-tools/Android.mk ...
including ./external/iptables/Android.mk ...
including ./external/iputils/Android.mk ...
including ./external/iw/Android.mk ...
including ./external/jarjar/Android.mk ...
including ./external/javasqlite/Android.mk ...
including ./external/javassist/Android.mk ...
including ./external/jdiff/Android.mk ...
including ./external/jemalloc/Android.mk ...
including ./external/jhead/Android.mk ...
including ./external/jmdns/Android.mk ...
including ./external/jpeg/Android.mk ...
including ./external/jsilver/Android.mk ...
including ./external/jsmn/Android.mk ...
including ./external/jsoncpp/Android.mk ...
including ./external/jsr305/Android.mk ...
including ./external/junit/Android.mk ...
including ./external/ksoap2/Android.mk ...
including ./external/libavc/Android.mk ...
including ./external/libcap-ng/Android.mk ...
including ./external/libcap/Android.mk ...
including ./external/libchrome/Android.mk ...
including ./external/libchromeos/Android.mk ...
including ./external/libcxx/Android.mk ...
including ./external/libcxxabi/Android.mk ...
including ./external/libdaemon/Android.mk ...
including ./external/libdivsufsort/Android.mk ...
including ./external/libedit/Android.mk ...
including ./external/libevent/Android.mk ...
including ./external/libexif/Android.mk ...
including ./external/libgsm/Android.mk ...
including ./external/libhevc/Android.mk ...
including ./external/liblzf/Android.mk ...
including ./external/libmicrohttpd/Android.mk ...
including ./external/libmpeg2/Android.mk ...
including ./external/libnfc-nci/Android.mk ...
including ./external/libnfc-nxp/Android.mk ...
including ./external/libnl/Android.mk ...
including ./external/libogg/Android.mk ...
including ./external/libopus/Android.mk ...
including ./external/libpcap/Android.mk ...
including ./external/libphonenumber/Android.mk ...
including ./external/libpng/Android.mk ...
including ./external/libselinux/Android.mk ...
including ./external/libunwind/Android.mk ...
including ./external/libunwind_llvm/Android.mk ...
including ./external/libutf/Android.mk ...
including ./external/libvorbis/Android.mk ...
including ./external/libvpx/Android.mk ...
including ./external/libvterm/Android.mk ...
including ./external/libweave/libweave/Android.mk ...
including ./external/libxml2/Android.mk ...
including ./external/libyuv/Android.mk ...
including ./external/linux-tools-perf/Android.mk ...
including ./external/littlemock/Android.mk ...
including ./external/lldb/Android.mk ...
including ./external/llvm/Android.mk ...
including ./external/lohit-fonts/Android.mk ...
including ./external/ltrace/Android.mk ...
including ./external/lvm2/Android.mk ...
including ./external/lz4/Android.mk ...
including ./external/lzma/C/Android.mk ...
including ./external/lzma/xz-embedded/Android.mk ...
including ./external/markdown/Android.mk ...
including ./external/mdnsresponder/Android.mk ...
including ./external/mesa3d/Android.mk ...
including ./external/messageformat/Android.mk ...
including ./external/minijail/Android.mk ...
including ./external/mksh/Android.mk ...
including ./external/mockito/Android.mk ...
including ./external/mockwebserver/Android.mk ...
including ./external/modp_b64/Android.mk ...
including ./external/mp4parser/Android.mk ...
including ./external/mtpd/Android.mk ...
including ./external/nanohttpd/Android.mk ...
including ./external/nanopb-c/Android.mk ...
including ./external/naver-fonts/Android.mk ...
including ./external/netcat/Android.mk ...
including ./external/netperf/Android.mk ...
including ./external/neven/Android.mk ...
including ./external/nfacct/Android.mk ...
including ./external/nist-pkits/Android.mk ...
including ./external/noto-fonts/Android.mk ...
including ./external/oauth/core/src/main/java/Android.mk ...
including ./external/objenesis/Android.mk ...
including ./external/okhttp/Android.mk ...
including ./external/opencv/Android.mk ...
including ./external/opencv3/Android.mk ...
including ./external/owasp/sanitizer/Android.mk ...
including ./external/pcre/Android.mk ...
including ./external/pdfium/core/Android.mk ...
including ./external/pdfium/fpdfsdk/Android.mk ...
including ./external/ppp/pppd/Android.mk ...
including ./external/proguard/Android.mk ...
including ./external/protobuf/Android.mk ...
including ./external/regex-re2/Android.mk ...
including ./external/replicaisland/Android.mk ...
including ./external/rmi4utils/Android.mk ...
including ./external/robolectric/Android.mk ...
including ./external/rootdev/Android.mk ...
including ./external/safe-iop/Android.mk ...
including ./external/scrypt/Android.mk ...
including ./external/selinux/Android.mk ...
including ./external/sepolicy/Android.mk ...
including ./external/sfntly/Android.mk ...
including ./external/skia/Android.mk ...
including ./external/smali/baksmali/Android.mk ...
including ./external/smali/deodexerant/Android.mk ...
including ./external/smali/dexlib2/Android.mk ...
including ./external/smali/smali/Android.mk ...
including ./external/sonivox/Android.mk ...
including ./external/speex/Android.mk ...
including ./external/sqlite/android/Android.mk ...
including ./external/sqlite/dist/Android.mk ...
including ./external/squashfs-tools/Android.mk ...
including ./external/srtp/Android.mk ...
including ./external/stlport/Android.mk ...
including ./external/strace/Android.mk ...
including ./external/svox/Android.mk ...
including ./external/tagsoup/Android.mk ...
including ./external/tcpdump/Android.mk ...
including ./external/tinyalsa/Android.mk ...
including ./external/tinycompress/Android.mk ...
including ./external/tinyxml/Android.mk ...
including ./external/tinyxml2/Android.mk ...
including ./external/tlsdate/Android.mk ...
including ./external/toybox/Android.mk ...
including ./external/tremolo/Android.mk ...
including ./external/v8/Android.mk ...
including ./external/valgrind/Android.mk ...
including ./external/vixl/Android.mk ...
including ./external/vogar/Android.mk ...
including ./external/webp/Android.mk ...
including ./external/webrtc/Android.mk ...
including ./external/wpa_supplicant_8/Android.mk ...
including ./external/xmlrpcpp/Android.mk ...
including ./external/xmp_toolkit/Android.mk ...
including ./external/zlib/Android.mk ...
including ./external/zopfli/Android.mk ...
including ./external/zxing/Android.mk ...
including ./frameworks/av/camera/Android.mk ...
including ./frameworks/av/cmds/screenrecord/Android.mk ...
including ./frameworks/av/cmds/stagefright/Android.mk ...
including ./frameworks/av/drm/common/Android.mk ...
including ./frameworks/av/drm/drmserver/Android.mk ...
including ./frameworks/av/drm/libdrmframework/Android.mk ...
including ./frameworks/av/drm/mediadrm/plugins/clearkey/Android.mk ...
including ./frameworks/av/drm/mediadrm/plugins/mock/Android.mk ...
including ./frameworks/av/media/common_time/Android.mk ...
including ./frameworks/av/media/img_utils/Android.mk ...
including ./frameworks/av/media/libcpustats/Android.mk ...
including ./frameworks/av/media/libeffects/downmix/Android.mk ...
including ./frameworks/av/media/libeffects/factory/Android.mk ...
including ./frameworks/av/media/libeffects/loudness/Android.mk ...
including ./frameworks/av/media/libeffects/lvm/lib/Android.mk ...
including ./frameworks/av/media/libeffects/lvm/wrapper/Android.mk ...
including ./frameworks/av/media/libeffects/preprocessing/Android.mk ...
including ./frameworks/av/media/libeffects/proxy/Android.mk ...
including ./frameworks/av/media/libeffects/visualizer/Android.mk ...
including ./frameworks/av/media/libmedia/Android.mk ...
including ./frameworks/av/media/libmediaplayerservice/Android.mk ...
including ./frameworks/av/media/libnbaio/Android.mk ...
including ./frameworks/av/media/libstagefright/Android.mk ...
including ./frameworks/av/media/mediaserver/Android.mk ...
including ./frameworks/av/media/mtp/Android.mk ...
including ./frameworks/av/media/ndk/Android.mk ...
including ./frameworks/av/services/audioflinger/Android.mk ...
including ./frameworks/av/services/audiopolicy/Android.mk ...
including ./frameworks/av/services/camera/libcameraservice/Android.mk ...
including ./frameworks/av/services/medialog/Android.mk ...
including ./frameworks/av/services/soundtrigger/Android.mk ...
including ./frameworks/av/soundtrigger/Android.mk ...
including ./frameworks/av/tools/resampler_tools/Android.mk ...
including ./frameworks/base/Android.mk ...
including ./frameworks/compile/libbcc/Android.mk ...
including ./frameworks/compile/mclinker/Android.mk ...
including ./frameworks/compile/slang/Android.mk ...
including ./frameworks/ex/camera2/Android.mk ...
including ./frameworks/ex/common/Android.mk ...
including ./frameworks/ex/framesequence/Android.mk ...
including ./frameworks/ex/variablespeed/Android.mk ...
including ./frameworks/minikin/libs/minikin/Android.mk ...
including ./frameworks/minikin/sample/Android.mk ...
including ./frameworks/ml/Android.mk ...
including ./frameworks/multidex/Android.mk ...
including ./frameworks/native/cmds/atrace/Android.mk ...
including ./frameworks/native/cmds/bugreport/Android.mk ...
including ./frameworks/native/cmds/dumpstate/Android.mk ...
including ./frameworks/native/cmds/dumpsys/Android.mk ...
including ./frameworks/native/cmds/flatland/Android.mk ...
including ./frameworks/native/cmds/installd/Android.mk ...
including ./frameworks/native/cmds/ip-up-vpn/Android.mk ...
including ./frameworks/native/cmds/rawbu/Android.mk ...
including ./frameworks/native/cmds/service/Android.mk ...
including ./frameworks/native/cmds/servicemanager/Android.mk ...
including ./frameworks/native/libs/binder/Android.mk ...
including ./frameworks/native/libs/diskusage/Android.mk ...
including ./frameworks/native/libs/gui/Android.mk ...
including ./frameworks/native/libs/input/Android.mk ...
including ./frameworks/native/libs/ui/Android.mk ...
including ./frameworks/native/opengl/libagl/Android.mk ...
including ./frameworks/native/opengl/libs/Android.mk ...
including ./frameworks/native/opengl/tests/Android.mk ...
including ./frameworks/native/services/batteryservice/Android.mk ...
including ./frameworks/native/services/inputflinger/Android.mk ...
including ./frameworks/native/services/powermanager/Android.mk ...
including ./frameworks/native/services/sensorservice/Android.mk ...
including ./frameworks/native/services/surfaceflinger/Android.mk ...
including ./frameworks/opt/bitmap/Android.mk ...
including ./frameworks/opt/bluetooth/Android.mk ...
including ./frameworks/opt/calendar/Android.mk ...
including ./frameworks/opt/chips/Android.mk ...
including ./frameworks/opt/colorpicker/Android.mk ...
including ./frameworks/opt/datetimepicker/Android.mk ...
including ./frameworks/opt/emoji/Android.mk ...
including ./frameworks/opt/inputmethodcommon/Android.mk ...
including ./frameworks/opt/mms/Android.mk ...
including ./frameworks/opt/net/ethernet/Android.mk ...
including ./frameworks/opt/net/ims/Android.mk ...
including ./frameworks/opt/net/voip/Android.mk ...
including ./frameworks/opt/net/wifi/service/Android.mk ...
including ./frameworks/opt/photoviewer/Android.mk ...
including ./frameworks/opt/setupwizard/navigationbar/Android.mk ...
including ./frameworks/opt/telephony/Android.mk ...
including ./frameworks/opt/timezonepicker/Android.mk ...
including ./frameworks/opt/vcard/Android.mk ...
including ./frameworks/rs/Android.mk ...
including ./frameworks/support/Android.mk ...
FindEmulator: find: `frameworks/support/design/dummy': No such file or directory
FindEmulator: find: `frameworks/support/v17/leanback/dummy': No such file or directory
including ./frameworks/volley/Android.mk ...
including ./frameworks/webview/Android.mk ...
including ./frameworks/wilhelm/src/Android.mk ...
including ./frameworks/wilhelm/tests/Android.mk ...
including ./hardware/akm/AK8975_FS/akmdfs/Android.mk ...
including ./hardware/akm/AK8975_FS/libsensors/Android.mk ...
including ./hardware/broadcom/libbt/Android.mk ...
including ./hardware/broadcom/wlan/bcmdhd/Android.mk ...
including ./hardware/intel/audio_media/hdmi/Android.mk ...
including ./hardware/intel/bootstub/Android.mk ...
including ./hardware/intel/common/libmix/Android.mk ...
including ./hardware/intel/common/libstagefrighthw/Android.mk ...
including ./hardware/intel/common/libva/Android.mk ...
including ./hardware/intel/common/libwsbm/src/Android.mk ...
including ./hardware/intel/common/omx-components/Android.mk ...
including ./hardware/intel/common/utils/ISV/Android.mk ...
including ./hardware/intel/common/utils/ituxd/Android.mk ...
including ./hardware/intel/common/wrs_omxil_core/Android.mk ...
including ./hardware/intel/img/hwcomposer/Android.mk ...
including ./hardware/intel/img/libdrm/Android.mk ...
including ./hardware/intel/img/psb_headers/Android.mk ...
including ./hardware/intel/img/psb_video/Android.mk ...
including ./hardware/invensense/Android.mk ...
including ./hardware/libhardware/Android.mk ...
including ./hardware/libhardware_legacy/Android.mk ...
including ./hardware/qcom/audio/Android.mk ...
including ./hardware/qcom/bt/Android.mk ...
including ./hardware/qcom/display/Android.mk ...
including ./hardware/qcom/gps/Android.mk ...
including ./hardware/qcom/keymaster/Android.mk ...
including ./hardware/qcom/media/Android.mk ...
including ./hardware/qcom/power/Android.mk ...
including ./hardware/qcom/wlan/qcwcn/Android.mk ...
including ./hardware/ril/libril/Android.mk ...
including ./hardware/ril/librilutils/Android.mk ...
including ./hardware/ril/reference-ril/Android.mk ...
including ./hardware/ril/rild/Android.mk ...
including ./hardware/samsung_slsi/exynos5/Android.mk ...
including ./hardware/ti/omap3/Android.mk ...
including ./hardware/ti/omap4-aah/Android.mk ...
including ./hardware/ti/omap4xxx/Android.mk ...
including ./libcore/Android.mk ...
including ./libnativehelper/Android.mk ...
including ./ndk/Android.mk ...
including ./packages/apps/BasicSmsReceiver/Android.mk ...
including ./packages/apps/Bluetooth/Android.mk ...
including ./packages/apps/Browser2/Android.mk ...
including ./packages/apps/Calculator/Android.mk ...
including ./packages/apps/Calendar/Android.mk ...
including ./packages/apps/Camera/Android.mk ...
including ./packages/apps/Camera2/Android.mk ...
including ./packages/apps/CellBroadcastReceiver/Android.mk ...
including ./packages/apps/CertInstaller/Android.mk ...
including ./packages/apps/Contacts/Android.mk ...
including ./packages/apps/ContactsCommon/Android.mk ...
including ./packages/apps/DeskClock/Android.mk ...
including ./packages/apps/Dialer/Android.mk ...
including ./packages/apps/Email/Android.mk ...
including ./packages/apps/Exchange/Android.mk ...
including ./packages/apps/FMRadio/Android.mk ...
including ./packages/apps/Gallery/Android.mk ...
including ./packages/apps/Gallery2/Android.mk ...
including ./packages/apps/HTMLViewer/Android.mk ...
including ./packages/apps/KeyChain/Android.mk ...
including ./packages/apps/Launcher2/Android.mk ...
including ./packages/apps/Launcher3/Android.mk ...
including ./packages/apps/LegacyCamera/Android.mk ...
including ./packages/apps/ManagedProvisioning/Android.mk ...
including ./packages/apps/Mms/Android.mk ...
including ./packages/apps/Music/Android.mk ...
including ./packages/apps/MusicFX/Android.mk ...
including ./packages/apps/Nfc/Android.mk ...
including ./packages/apps/OneTimeInitializer/Android.mk ...
including ./packages/apps/PackageInstaller/Android.mk ...
including ./packages/apps/PhoneCommon/Android.mk ...
including ./packages/apps/Protips/Android.mk ...
including ./packages/apps/Provision/Android.mk ...
including ./packages/apps/QuickSearchBox/Android.mk ...
including ./packages/apps/Settings/Android.mk ...
including ./packages/apps/SoundRecorder/Android.mk ...
including ./packages/apps/SpareParts/Android.mk ...
including ./packages/apps/SpeechRecorder/Android.mk ...
including ./packages/apps/Stk/Android.mk ...
including ./packages/apps/Tag/Android.mk ...
including ./packages/apps/Terminal/Android.mk ...
including ./packages/apps/TvSettings/QuickSettings/Android.mk ...
including ./packages/apps/TvSettings/Settings/Android.mk ...
including ./packages/apps/UnifiedEmail/Android.mk ...
including ./packages/experimental/Android.mk ...
including ./packages/inputmethods/LatinIME/Android.mk ...
including ./packages/inputmethods/OpenWnn/Android.mk ...
including ./packages/providers/BookmarkProvider/Android.mk ...
including ./packages/providers/CalendarProvider/Android.mk ...
including ./packages/providers/ContactsProvider/Android.mk ...
including ./packages/providers/DownloadProvider/Android.mk ...
including ./packages/providers/MediaProvider/Android.mk ...
including ./packages/providers/PartnerBookmarksProvider/Android.mk ...
including ./packages/providers/TelephonyProvider/Android.mk ...
including ./packages/providers/TvProvider/Android.mk ...
including ./packages/providers/UserDictionaryProvider/Android.mk ...
including ./packages/screensavers/Basic/Android.mk ...
including ./packages/screensavers/PhotoTable/Android.mk ...
including ./packages/screensavers/WebView/Android.mk ...
including ./packages/services/Mms/Android.mk ...
including ./packages/services/Telecomm/Android.mk ...
including ./packages/services/Telephony/Android.mk ...
including ./packages/wallpapers/Basic/Android.mk ...
including ./packages/wallpapers/Galaxy4/Android.mk ...
including ./packages/wallpapers/HoloSpiral/Android.mk ...
including ./packages/wallpapers/LivePicker/Android.mk ...
including ./packages/wallpapers/MagicSmoke/Android.mk ...
including ./packages/wallpapers/MusicVisualization/Android.mk ...
including ./packages/wallpapers/NoiseField/Android.mk ...
including ./packages/wallpapers/PhaseBeam/Android.mk ...
including ./pdk/apps/HelloPDK/Android.mk ...
including ./pdk/apps/TestingCamera/Android.mk ...
including ./pdk/apps/TestingCamera2/Android.mk ...
including ./prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/Android.mk ...
including ./prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/Android.mk ...
including ./prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/Android.mk ...
including ./prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/Android.mk ...
including ./prebuilts/misc/Android.mk ...
including ./prebuilts/ndk/Android.mk ...
including ./prebuilts/qemu-kernel/x86/pc-bios/Android.mk ...
including ./prebuilts/sdk/Android.mk ...
including ./prebuilts/tools/Android.mk ...
FindEmulator: find: `prebuilts/tools/android-arm': No such file or directory
including ./sdk/annotations/Android.mk ...
including ./sdk/avdlauncher/Android.mk ...
including ./sdk/dumpeventlog/Android.mk ...
including ./sdk/emulator/mksdcard/Android.mk ...
including ./sdk/eventanalyzer/Android.mk ...
including ./sdk/find_java/Android.mk ...
including ./sdk/find_lock/Android.mk ...
including ./sdk/hierarchyviewer/etc/Android.mk ...
including ./sdk/hierarchyviewer/src/Android.mk ...
including ./sdk/sdklauncher/Android.mk ...
including ./system/bt/Android.mk ...
including ./system/ca-certificates/Android.mk ...
including ./system/connectivity/apmanager/Android.mk ...
including ./system/connectivity/shill/Android.mk ...
including ./system/core/Android.mk ...
including ./system/extras/Android.mk ...
including ./system/firewalld/Android.mk ...
including ./system/gatekeeper/Android.mk ...
including ./system/keyguard/Android.mk ...
including ./system/keymaster/Android.mk ...
including ./system/media/audio_route/Android.mk ...
including ./system/media/audio_utils/Android.mk ...
including ./system/media/camera/src/Android.mk ...
including ./system/media/camera/tests/Android.mk ...
including ./system/nativepower/Android.mk ...
including ./system/netd/client/Android.mk ...
including ./system/netd/server/Android.mk ...
including ./system/peerd/Android.mk ...
including ./system/security/keystore-engine/Android.mk ...
including ./system/security/keystore/Android.mk ...
including ./system/security/softkeymaster/Android.mk ...
including ./system/tools/aidl/Android.mk ...
including ./system/update_engine/Android.mk ...
including ./system/vold/Android.mk ...
including ./system/weaved/Android.mk ...
including ./system/webservd/Android.mk ...
including ./tools/external/fat32lib/Android.mk ...
No sign of Open-TEE being included. So the Android.mk files in Open-TEE and Open-TEE/emulator are not being picked up by make.
Also my environment variables I set are:
export ANDROID_ROOT="$HOME/Android/android_source"
export USE_CCACHE=1
export CCACHE_DIR="$HOME/Android/android_source/.ccache"
$ANDROID_ROOT/prebuilts/misc/linux-x86/ccache/ccache -M 50G
source "$HOME/Android/android_source/build/envsetup.sh"
I'm really not sure what might be causing this. Could you rename your Open-TEE folder to just "opentee" ? It's a longshot but it might have an issue with caps or symbols like dash. I always named it just "opentee".
Deleted the symlink and recreated with name "opentee". I then run make clean
then lunch
then make libtee
and it gave the following error:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: unknown target 'libtee', did you mean 'libfec'?
build/core/ninja.mk:123: recipe for target 'ninja.intermediate' failed
make: *** [ninja.intermediate] Error 1
#### make failed to build some targets (34 seconds) ####
Again from inspecting the output from running make, "opentee" does not appear.
I have tried to run and build this all on another machine of mine. It has a fresh install of Ubuntu 14.04 on and it still results in the same error as above when running make libtee
. Any ideas?
I have it building and running just now. It appears that doing a symlink to opentee for me did not work. Instead I cloned Open-TEE directly into my android_source
directory. Appears to be building. Weird...
It would be far-fetched but could you try with the cyanogenmod android tree? https://github.com/CyanogenMod/android
Here are some guides https://wiki.cyanogenmod.org/w/Development
Also try to run ./build/envsetup.sh
from the android_source directory before doing lunch
and make...
. In case it doesn't recognize $HOME somehow.
If nothing works I'll redo the whole setup on my local machine during the weekend cause I'm busy now and try to debug this.
I tried to run envsetup.sh
and place the symlink back but for me it didn't work. Currently pulling down the cyanogenMod source and I will try. I'll keep you posted.
Thank you for all your support so far it is very much appreciated :D
What operating system and shell are you building on? I know that I had problems when I used zsh instead of bash in a similar case so I had to default to that. I always built on an Ubuntu x86_64 14.04 VM.
Ubuntu 14.04 LTS, 64-bit with Bash shell. Native install not on a VM but won't make a difference I am sure. Will let you know the result of CM and I am happy to debug / try things for you if you need any assistance. :)
I have always had issues with symlinks in the Android tree once it is
outside of 'croot'. For small standalone projects it seems to work, but
when there are dependencies to other sub-projects within a project it seems
to fail. I have not really studied which pass and why, it is more of an
observation. So the "safe" option is to copy not link.
On Thu, Oct 1, 2015 at 5:09 PM, Jorden Whitefield notifications@github.com
wrote:
Ubuntu 14.04 LTS, 64-bit with Bash shell. Native install not on a VM but
won't make a difference I am sure. Will let you know the result of CM and I
am happy to debug / try things for you if you need any assistance. :)—
Reply to this email directly or view it on GitHub
#7 (comment).
@uberspot I have tried the same with CyanogenMod 12.1 and using the sym link it results in the same issue. It does work if I copy opentee in to the android_source root.
Hello everyone,
Like thinhlevinh I'm trying to build Open tee on Android but I'm using an Ubuntu 14.04 virtualbox.
I have some trouble during make command :
VirtualBox:~/android_source$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
2. full_x86-eng
3. vbox_x86-eng
I chose the third
then make clean && make opentee-engine pass without problem
But when I start to build libraries (libManagerApi libInternalApi libLauncherApi libCommonApi libta_conn_test_app) I have some issues :
VirtualBox:~/android_source$ make libManagerApi
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=vbox_x86
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=x86
TARGET_ARCH_VARIANT=x86
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
target C: libManagerApi <= Open-TEE/emulator/manager/ext_storage_stream_api_posix.c
target C: libManagerApi <= Open-TEE/emulator/manager/opentee_manager_storage_api.c
target C: libManagerApi <= Open-TEE/emulator/manager/../internal_api/opentee_storage_common.c
target C: libManagerApi <= Open-TEE/emulator/manager/io_thread.c
target C: libManagerApi <= Open-TEE/emulator/manager/logic_thread.c
target C: libManagerApi <= Open-TEE/emulator/manager/mainloop.c
target C: libManagerApi <= Open-TEE/emulator/manager/ta_dir_watch.c
target C: libManagerApi <= Open-TEE/emulator/manager/shm_mem.c
Open-TEE/emulator/manager/shm_mem.c: In function 'generate_random_path':
Open-TEE/emulator/manager/shm_mem.c:51: error: 'CLOCK_BOOTTIME' undeclared (first use in this function)
Open-TEE/emulator/manager/shm_mem.c:51: error: (Each undeclared identifier is reported only once
Open-TEE/emulator/manager/shm_mem.c:51: error: for each function it appears in.)
make: *** [out/target/product/vbox_x86/obj/SHARED_LIBRARIES/libManagerApi_intermediates/shm_mem.o] error 1
VirtualBox:~/android_source$
I have search on the web but nothing helped me.
Do you have an idea ?
shall take a look at it next week
okay, it looks like those definitions have moved from libc/include/time.h to libc/kernel/common/linux/time.h
I don't have a proper dev env up at the moment so it'll take a little bit before I can try a fix. If anyone else feels up to the task please do :p