[SOLVED] Gdb shared libraries issue

Hi,
I'm working on ARM system with gdb 7.1 (i've tried 7.5 too). I'm using this tool to debug an application composed by several shared libraries.
If I debug this application on the ARM side, with gdb 7.1 i can see the shared loaded libraries (digiting "share"). Perfect!
I'm trying to do the same thing remotelly with gdb for arm on windows host and gdbserver on ARM.
So I have:
1) gdb on windows for arm v.7.4.1 (i've tried 7.3.1 too)
2) gdbserver on arm v.7.1 (i've tried 7.5 too)
On Windows I can debug everything flawless except for the shared libraries: infact, when i tried to digit "share" it says there isn't any shared loaded libraries. I'm absolutely sure that at least one library has loaded (on arm side the same situation works fine).
In gcc on arm, when i ask for shared loaded libraries ("share") it calls function solib.c:info_sharedlibrary_command with full support for solib. (and it works fine)
Instead, when i ask for the same command on gdb on windows and gdbserver on arm, it passes the command "qXfer:libraries:read:" that doesn't manage any solib, only dlls! And the dlls list is obviously empty.
Did i miss something?
Last edited by Cagnulein (2012-10-10 05:42:19)

Problem solved
http://sourceware.org/bugzilla/show_bug.cgi?id=14670

Similar Messages

  • [Solved] overall shared library issues

    Hey, I'm having some trouble. I recently borked my system and did a reinstall. I made a list of packages before I reinstalled and after reinstalling, I intalled everything from that list. However, When I did so, I forgot to enable multilib first. Now I constantly get "libXYZ.so.I was not found, no such file or directory." Is there an easy way to fix this?
    Last edited by herrflockig (2012-10-16 01:35:38)

    Alright so I wrote this little script to check for missing files in all of my packages, and nothing shows up.
    #!/bin/bash
    pacman -Qdq |
    while read package
    do
    for file in $(pkgfile -l $package | cut -f2)
    do
    if [ ! -f $file ] && [ ! -d $file ] && [ ! -L $file ]
    then
    echo $file
    fi
    done
    done
    So none of these shared libraries are actually missing. Here's a specific example: winetricks throws this error at me when I try to install vcrun2010:
    err:module:load_builtin_dll failed to load .so lib for builtin L"msxml3.dll": libxml2.so.2: cannot open shared object file: No such file or directory
    But I know for a fact the libxml2.so.2 exists in /usr/lib/ and libxml2 is installed and up to date.
    This is just one example this happens with several programs and with different shared object files each time. Any suggestions? Should I just reinstall again but properly this time?
    Last edited by herrflockig (2012-10-15 12:13:38)

  • ITunes Sharing Libraries Issue

    I have been having a serious issue sharing my main computers iTunes library over my network and have exhausted my limited networking/computer knowledge trying to fix it. Any help would be greatly appreciated.
    *My Setup:*
    My music is stored on an EHDD that is connected to a PC Desktop. I have 2 laptops and an iPhone (use as remote) that I want to share the library with. The laptops are an HP and a Macbook.
    *The Issue:*
    I have set all iTunes on all computers up to share libraries. I have named them all the computers (work laptop, macbook, desktop). All libraries show up on all other computers shared drives in iTunes. However, the sharing works bidirectionally between the HP laptop and Macbook, but nothing works bidirectionally with the Desktop. The Desktop PC can read the music on the laptops and play the songs, but the laptops can not connect to the Desktop PC.
    Secondly, this bodes true for my iPhone's remote app. It is recognized by all computers, but only works with the laptops.
    I get an error message when trying to connect any device/laptop to the PC Desktop. It seems like something is blocking the intrusion.
    *My Troubleshooting:*
    I have uninstalled and reinstalled iTunes once.
    I have reinstalled Bonjour only as well.
    I have forward the port 3689 (or whichever it is) on my router.
    I have disabled my firewalls.
    I have even connected the Desktop PC wirelessly to the network to make sure that the router isn't the issue and it didn't work.
    To no avail, I still can't connect to the Desktop PC iTunes library where all of my music is stored. It's driving me insane!! Please help me if you can.

    When I set up my home network for sharing, for some reason even though I had Windows sharing and Mac sharing all comfigured correctly, I couldn't get iTunes sharing to work everywhere until I disabled the Windows firewall on my Xp desktop and XP laptop.
    Then once itunes sharing was OK, I re-enabled Windows firewall on both XP machines, and itunes sharing still worked.

  • [SOLVED] mplayer2 missing shared libraries

    Hi there,
    After upgrading mplayer2 to version "20130428-4", I found that it cannot link to some shared libraries, including:
            libgif.so.6 => not found
            libavcodec.so.55 => not found
            libavformat.so.55 => not found
    $ ldd `which mplayer`
    linux-vdso.so.1 (0x00007fff69dfe000)
    libncursesw.so.5 => /usr/lib/libncursesw.so.5 (0x00007fdd9df1d000)
    libquvi.so.7 => /usr/lib/libquvi.so.7 (0x00007fdd9dd12000)
    libvdpau.so.1 => /usr/lib/libvdpau.so.1 (0x00007fdd9db0e000)
    libcaca.so.0 => /usr/lib/libcaca.so.0 (0x00007fdd9d840000)
    libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007fdd9d60b000)
    libz.so.1 => /usr/lib/libz.so.1 (0x00007fdd9d3f5000)
    libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x00007fdd9d1a0000)
    libgif.so.6 => not found
    libpulse.so.0 => /usr/lib/libpulse.so.0 (0x00007fdd9cf56000)
    libjack.so.0 => /usr/lib/libjack.so.0 (0x00007fdd9cd39000)
    libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fdd9cb1d000)
    libasound.so.2 => /usr/lib/libasound.so.2 (0x00007fdd9c826000)
    libbluray.so.1 => /usr/lib/libbluray.so.1 (0x00007fdd9c5fd000)
    libdvdread.so.4 => /usr/lib/libdvdread.so.4 (0x00007fdd9c3e0000)
    libcdio_paranoia.so.1 => /usr/lib/libcdio_paranoia.so.1 (0x00007fdd9c1d8000)
    libcdio_cdda.so.1 => /usr/lib/libcdio_cdda.so.1 (0x00007fdd9bfd0000)
    libcdio.so.14 => /usr/lib/libcdio.so.14 (0x00007fdd9bda7000)
    libm.so.6 => /usr/lib/libm.so.6 (0x00007fdd9baa9000)
    libass.so.4 => /usr/lib/libass.so.4 (0x00007fdd9b88e000)
    libenca.so.0 => /usr/lib/libenca.so.0 (0x00007fdd9b65b000)
    libmad.so.0 => /usr/lib/libmad.so.0 (0x00007fdd9b43b000)
    libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x00007fdd9b20e000)
    libogg.so.0 => /usr/lib/libogg.so.0 (0x00007fdd9b007000)
    libtheora.so.0 => /usr/lib/libtheora.so.0 (0x00007fdd9adb8000)
    libmpg123.so.0 => /usr/lib/libmpg123.so.0 (0x00007fdd9ab64000)
    liba52.so.0 => /usr/lib/liba52.so.0 (0x00007fdd9a952000)
    libdca.so.0 => /usr/lib/libdca.so.0 (0x00007fdd9a729000)
    libfaad.so.2 => /usr/lib/libfaad.so.2 (0x00007fdd9a4e6000)
    libavutil.so.52 => /usr/lib/libavutil.so.52 (0x00007fdd9a2b2000)
    libavcodec.so.55 => not found
    libavformat.so.55 => not found
    libswscale.so.2 => /usr/lib/libswscale.so.2 (0x00007fdd9a062000)
    libpostproc.so.52 => /usr/lib/libpostproc.so.52 (0x00007fdd99e44000)
    libavresample.so.1 => /usr/lib/libavresample.so.1 (0x00007fdd99c25000)
    libxvidcore.so.4 => /usr/lib/libxvidcore.so.4 (0x00007fdd9990d000)
    libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fdd99709000)
    libdvdnavmini.so.4 => /usr/lib/libdvdnavmini.so.4 (0x00007fdd994f5000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fdd992e3000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fdd98fa8000)
    libXss.so.1 => /usr/lib/libXss.so.1 (0x00007fdd98da4000)
    libXv.so.1 => /usr/lib/libXv.so.1 (0x00007fdd98b9e000)
    libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x00007fdd9899b000)
    libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x00007fdd98795000)
    libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x00007fdd984fd000)
    libGL.so.1 => /usr/lib/libGL.so.1 (0x00007fdd9829f000)
    liblirc_client.so.0 => /usr/lib/liblirc_client.so.0 (0x00007fdd98098000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007fdd97ceb000)
    libcurl.so.4 => /usr/lib/libcurl.so.4 (0x00007fdd97a88000)
    liblua.so.5.2 => /usr/lib/liblua.so.5.2 (0x00007fdd97856000)
    libjson-c.so.2 => /usr/lib/libjson-c.so.2 (0x00007fdd9764b000)
    libpulsecommon-4.0.so => /usr/lib/pulseaudio/libpulsecommon-4.0.so (0x00007fdd973de000)
    libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x00007fdd97197000)
    librt.so.1 => /usr/lib/librt.so.1 (0x00007fdd96f8f000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fdd9e17c000)
    libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00007fdd96c27000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007fdd9696d000)
    libfribidi.so.0 => /usr/lib/libfribidi.so.0 (0x00007fdd96754000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007fdd96518000)
    libltdl.so.7 => /usr/lib/libltdl.so.7 (0x00007fdd9630e000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fdd960ef000)
    libglapi.so.0 => /usr/lib/libglapi.so.0 (0x00007fdd95ec9000)
    libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00007fdd95cc6000)
    libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007fdd95ac0000)
    libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0x00007fdd958be000)
    libxcb-glx.so.0 => /usr/lib/libxcb-glx.so.0 (0x00007fdd956a6000)
    libxcb-dri2.so.0 => /usr/lib/libxcb-dri2.so.0 (0x00007fdd954a1000)
    libdrm.so.2 => /usr/lib/libdrm.so.2 (0x00007fdd9e34f000)
    libssh2.so.1 => /usr/lib/libssh2.so.1 (0x00007fdd95278000)
    libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00007fdd9500c000)
    libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007fdd94c02000)
    libsndfile.so.1 => /usr/lib/libsndfile.so.1 (0x00007fdd9499c000)
    libasyncns.so.0 => /usr/lib/libasyncns.so.0 (0x00007fdd94796000)
    liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007fdd94573000)
    libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007fdd94363000)
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007fdd94139000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fdd93f35000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fdd93d2f000)
    libFLAC.so.8 => /usr/lib/libFLAC.so.8 (0x00007fdd93afd000)
    libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0x00007fdd9362e000)
    libnsl.so.1 => /usr/lib/libnsl.so.1 (0x00007fdd93416000)
    libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007fdd931ff000)
    Downgrading to version "20130428-1" solved the problem.
    Anyone also encounter this? Is it a packaging issue? Thanks.
    Last edited by ffjia (2013-08-07 12:53:14)

    Sorry guys, I had a problem updating "extra" repo, and did a partial updates.
    Re-sync the repository solved the issue, thanks.

  • [Solved] Inkscape: error while loading shared libraries

    Hi! A few days ago, Inkscape started giving me this error whenever I try to launch it:
    inkscape: error while loading shared libraries: libpoppler.so.48: cannot open shared object file: No such file or directory
    I reinstalled both poppler and Inkscape, but it didn't change anything. Does anyone know why it happened and how to fix it, please?
    Last edited by Givralix (2015-02-16 18:23:12)

    karol wrote:We're using /usr/lib/libpoppler.so.49 and inkscape 0.91-3 currently and inkscape works for me on my 32-bit Arch with [testing] repos enabled.
    Check if you have the correct package versions and if /usr/lib/libpoppler.so.49 is present on your system.
    /usr/lib/libpoppler.so.49 is present and I do have inkscape 0.91-3. And the poppler package is in 0.30.0-1.
    Trilby wrote:Really, it didn't change *anything*?  How did you reinstall them?  Did you do a full upgrade (pacman -Syu), or did you just reinstalled the cached package file?  If you updated inkscape with pacman and get that exact same error message, then your mirror is horribly out of date - and apparently even out of sync with itself.
    I did a few full upgrades since the problem appeared and I used "pacman -Rcsn poppler" to remove all of its dependencies (including Inkscape) at once (probably useless, but it's too late now) and installed everything again afterwards.
    mpan wrote:
    @OP:
    Could you provide the result of the following?
    pacman -Q poppler inkscape
    which inkscape
    ldd $(which inkscape) | fgrep libpoppler
    As with Karol's case, my inkscape (0.93-3, x86_64) links to libpoppler.so.49...
    pacman -Q poppler inkscape
    poppler 0.30.0-1
    inkscape 0.91-3
    which inkscape
    /usr/local/bin/inkscape
    ldd $(which inkscape) | fgrep libpoppler
    libpoppler.so.48 => not found
    libpoppler-glib.so.8 => /usr/lib/libpoppler-glib.so.8 (0x00007fc9b67d0000)
    libpoppler.so.49 => /usr/lib/libpoppler.so.49 (0x00007fc9af851000)
    By the way, my Arch is in 64-bit ^^.

  • [SOLVED] error while loading shared libraries

    Im open mplayer and cmplaye its not start getting this error
    cmplayer: error while loading shared libraries: libhogweed.so.2: cannot open shared object file: No such file or directory
    mplayer: error while loading shared libraries: libhogweed.so.2: cannot open shared object file: No such file or directory
    How to fix it, i think update system (
    Pacman -Syyu
    ) .what about think this problam.Thankyou!
    Last edited by Layan (2015-06-04 09:17:47)

    I cant open any softwear ... pidgin ,Empaty,Vlc,etc... but opera is working

  • Shared Libraries - libncursesw.so.5? [SOLVED]

    I just upgraded a test system and there was a kernel upgrade as well.  Everything went without a hitch on my test platform until I rebooted - now when I try to login via the local TTY I am immediately logged back out (no matter what user) to the login prompt.  I had to record the error with slow motion video to be able to see what the error was that was flashing for less than a second on the screen but it looks to be along the lines of:
    error while loading shared libraries: /usr/lib/libncursesw.so
    ...and from there the screen is cut off.
    Thoughts?
    Thanks...
    Edit: use --> user
    Last edited by windexh8er (2013-03-27 17:05:20)

    windexh8er wrote:Won't I likely get the same problem there since it seems that bash is reliant on the library in question?
    It would seem so
    ewaller@odin:~ 1016 %ldd /usr/bin/bash
    linux-vdso.so.1 (0x00007fff939fe000)
    libreadline.so.6 => /usr/lib/libreadline.so.6 (0x00007f2915c65000)
    libncursesw.so.5 => /usr/lib/libncursesw.so.5 (0x00007f2915a06000)
    libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f2915802000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007f2915455000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f2915eab000)
    ewaller@odin:~ 1017 %
    Sorry about that.  zsh uses it too.  rsh doesn't
    ewaller@odin:~ 1017 %ldd /usr/bin/rsh
    linux-vdso.so.1 (0x00007f57ceb71000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007f57ce786000)
    /lib/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f57ceb73000)
    ewaller@odin:~ 1018 %
    Question is, can you work your way out of this pickle with rsh?  I don't think so.
    Edit:  You might try and see if you can invoke bash with the -noediting switch.  It causes an interactive shell to not use the readline library.  That could be what is trying to pull in libncursesw.so.
    Last edited by ewaller (2013-03-27 15:50:57)

  • Error while loading shared libraries: libxerces-c.so.26: cannot open shared

    Hi,
    I'm trying to install SRM-MDM Catalog 2.0 under SUSE_LINUX Enterprise Server 10 (x86_64).
    First to all I'm trying to install Server part. So I navigate under the CD installation: /Master_Data_Server/LINUX_X64/MDM/bin/  and then execute ./mds-r.
    The following error appears: error while loading shared libraries: libxerces-c.so.26: cannot open shared object file: No such file or directory.
    libxerces-c.so.26 is located under /Master_Data_Server/LINUX_X64/MDM/lib/
    Could you please help me?
    Thanks in advance!

    Thanks for your comment Shiv, Yes I know that MDM 5.5 is out of standard maintainence but anyway our business scenario requires SRM-MDM 2.0.
    If anyone finds the same error I mentioned, It has been solved using ldconfig -v in the library directory of choice.
    I'd like to ask another issue: Right now We have the following error after executing ./mdis-r or ./mds-r:
    Could not open language resource file "LangStrings/ImportManagerCommon.lang". Try setting the MDM_HOME environment variable.
    Could you please help me how to do if?
    Thanks in advance,
    Edited by: Guillermo Montes on May 5, 2010 4:21 PM
    Edited by: Guillermo Montes on May 5, 2010 4:22 PM

  • Panda3d 1.6.2-3 binary programs can't find shared libraries

    This was a bit of an issue for me, and I wanted to see if this was an issue for anyone else.
    Initially after installing panda3d 1.6.2-3 I had issues running the binary programs it provided, in particular punzip. punzip would complain about not finding the required shared libraries (such as libpanda.so), and adding symbolic links to the libraries in /opt/panda3d/lib tended to solve these issues. Adding /opt/panda3d/lib to /etc/ld.so.conf and running ldconfig solve this issue completely.
    I checked the PKGBUILD and noticed that a profile file (panda3d.profile) is installed into /etc/profile.d as panda3d.sh which exports /opt/panda3d/bin and /opt/panda3d/lib to the PATH and LD_LIBRARY_PATH environmental variables, respectively. When I run `echo $LD_LIBRARY_PATH ` I do get ':/opt/panda3d/lib' as the output so the path is getting exported correctly. However, I've confirmed that removing the /opt/panda3d/lib entry in /etc/ld.so.conf causes many (if not all) of the binary programs panda3d installs to loose track of their shared libraries even when /opt/panda3d/lib is clearly in the LD_LIBRARY_PATH variable.
    Am I the only one experiencing these issues? I'd be interested to know why my system isn't working as intended Obviously if this is a common issue adding a line to the PKGBUILD to add the entry to /etc/ld.so.conf might be a good solution.
    - Zaridu

    report this issue on bugtracker. seems to me that is a bug.

  • Shared Libraries and personal security

    Have there been any security issues with Shared Libraries?

    Not sure if this will help. But here is my story. We have home network with my spouse's IMac and my HP Elite Windows 7 64 PC on the network. The IMac detected the ATV and sync'd with it. My Win 7 PC would not detect it.
    Call/chats with HP, Microsoft, Apple and Costco Concierge all failed to solve this problem. HP and Apple wanted $70 to have their "experts" diagnose it.
    After fiddling with this for weeks, my spouse said "don't you know only one PC can be connected at a time?!! I learned that Apple TV can only detect or sync with one PC at a time. When the IMac was disconnected to the Apple TV, my Windows 7 PC did detect the Apple TV when I Tunes was launched. Simple solution. Glad I did not pay HP or Apple TV $70-80 to diagnose this problem.
    I told all four support lines that we had a IMac on the network and it did detect the Apple TV. But NONE of them seem to know that the ATV can connect to a local area network PC one at a time. Amazying. But now it is solved.

  • [SOLVED] Case-insensitive filesystem issue

    Dear fellas,
    I am trying to compile an AOSP rom using the following configuration:
    - Arch Linux x64
    - Latest Kernel 3.12.8-1-ARCH
    - BTRFS filesystem
    I got the following error:
    build/core/main.mk:118: You are building on a case-insensitive filesystem.
    build/core/main.mk:119: Please move your source tree to a case-sensitive filesystem.
    build/core/main.mk:120: ************************************************************
    build/core/main.mk:121: *** Case-insensitive filesystems not supported.  Stop.
    So far, I was compiling with no issue. It just starts a couple days ago. I suspect that maybe is due to some kernel change.
    Anyone already face this issue?
    Appreciate any clue.
    ========================SOLVED==========================
    Here is the solution presented by korn36 that did the magic for the main issue:
    Remove this from build/core/main.mk, then compile:
    ifneq ($(HOST_OS),windows)
    ifneq ($(HOST_OS)-$(HOST_ARCH),darwin-ppc)
    # check for a case sensitive file system
    ifneq (a,$(shell mkdir -p $(OUT_DIR) ; \
                    echo a > $(OUT_DIR)/casecheck.txt; \
                        echo B > $(OUT_DIR)/CaseCheck.txt; \
                    cat $(OUT_DIR)/casecheck.txt))
    $(warning ************************************************************)
    $(warning You are building on a case-insensitive filesystem.)
    $(warning Please move your source tree to a case-sensitive filesystem.)
    $(warning ************************************************************)
    $(error Case-insensitive filesystems not supported)
    endif
    endif
    endif
    It will disable the case-sensitivity check.
    ================edited====================
    Again thanks to korn36 for the elegant python switch solution:
    find . -name "*.py" -exec sed -i 's/\(bin\/env\ python$\|bin\/python$\)/bin\/env\ python2/g' {} \;
    Thanks to Kacper for heads me up to a typo I made.
    ===============edited=====================
    or still other script provided by Scimmia (Thanks Scimmia)
    or simply
    find . -name "*.py" -exec sed -i 's/env python$/&2/' {} \;
    Just FYI both scripts works flawlessly!
    Best Regards
    Erick
    Last edited by erickwill (2014-01-26 15:37:56)

    Here you go:
    # Only use ANDROID_BUILD_SHELL to wrap around bash.
    # DO NOT use other shells such as zsh.
    ifdef ANDROID_BUILD_SHELL
    SHELL := $(ANDROID_BUILD_SHELL)
    else
    # Use bash, not whatever shell somebody has installed as /bin/sh
    # This is repeated in config.mk, since envsetup.sh runs that file
    # directly.
    SHELL := /bin/bash
    endif
    # this turns off the suffix rules built into make
    .SUFFIXES:
    # this turns off the RCS / SCCS implicit rules of GNU Make
    % : RCS/%,v
    % : RCS/%
    % : %,v
    % : s.%
    % : SCCS/s.%
    # If a rule fails, delete $@.
    .DELETE_ON_ERROR:
    # Figure out where we are.
    #TOP := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
    #TOP := $(patsubst %/,%,$(TOP))
    # TOPDIR is the normal variable you should use, because
    # if we are executing relative to the current directory
    # it can be "", whereas TOP must be "." which causes
    # pattern matching probles when make strips off the
    # trailing "./" from paths in various places.
    #ifeq ($(TOP),.)
    #TOPDIR :=
    #else
    #TOPDIR := $(TOP)/
    #endif
    # Check for broken versions of make.
    # (Allow any version under Cygwin since we don't actually build the platform there.)
    ifeq (,$(findstring CYGWIN,$(shell uname -sm)))
    ifneq (1,$(strip $(shell expr $(MAKE_VERSION) \>= 3.81)))
    $(warning ********************************************************************************)
    $(warning * You are using version $(MAKE_VERSION) of make.)
    $(warning * Android can only be built by versions 3.81 and higher.)
    $(warning * see https://source.android.com/source/download.html)
    $(warning ********************************************************************************)
    $(error stopping)
    endif
    endif
    # Absolute path of the present working direcotry.
    # This overrides the shell variable $PWD, which does not necessarily points to
    # the top of the source tree, for example when "make -C" is used in m/mm/mmm.
    PWD := $(shell pwd)
    TOP := .
    TOPDIR :=
    BUILD_SYSTEM := $(TOPDIR)build/core
    # This is the default target. It must be the first declared target.
    .PHONY: droid
    DEFAULT_GOAL := droid
    $(DEFAULT_GOAL):
    # Used to force goals to build. Only use for conditionally defined goals.
    .PHONY: FORCE
    FORCE:
    # These goals don't need to collect and include Android.mks/CleanSpec.mks
    # in the source tree.
    dont_bother_goals := clean clobber dataclean installclean \
    help out \
    snod systemimage-nodeps \
    stnod systemtarball-nodeps \
    userdataimage-nodeps userdatatarball-nodeps \
    cacheimage-nodeps \
    vendorimage-nodeps \
    ramdisk-nodeps \
    bootimage-nodeps
    ifneq ($(filter $(dont_bother_goals), $(MAKECMDGOALS)),)
    dont_bother := true
    endif
    # Targets that provide quick help on the build system.
    include $(BUILD_SYSTEM)/help.mk
    # Set up various standard variables based on configuration
    # and host information.
    include $(BUILD_SYSTEM)/config.mk
    # This allows us to force a clean build - included after the config.mk
    # environment setup is done, but before we generate any dependencies. This
    # file does the rm -rf inline so the deps which are all done below will
    # be generated correctly
    include $(BUILD_SYSTEM)/cleanbuild.mk
    # Include the google-specific config
    -include vendor/google/build/config.mk
    VERSION_CHECK_SEQUENCE_NUMBER := 3
    -include $(OUT_DIR)/versions_checked.mk
    ifneq ($(VERSION_CHECK_SEQUENCE_NUMBER),$(VERSIONS_CHECKED))
    $(info Checking build tools versions...)
    ifneq ($(HOST_OS),windows)
    ifneq ($(HOST_OS)-$(HOST_ARCH),darwin-ppc)
    # check for a case sensitive file system
    ifneq (a,$(shell mkdir -p $(OUT_DIR) ; \
    echo a > $(OUT_DIR)/casecheck.txt; \
    echo B > $(OUT_DIR)/CaseCheck.txt; \
    cat $(OUT_DIR)/casecheck.txt))
    $(warning ************************************************************)
    $(warning You are building on a case-insensitive filesystem.)
    $(warning Please move your source tree to a case-sensitive filesystem.)
    $(warning ************************************************************)
    $(error Case-insensitive filesystems not supported)
    endif
    endif
    endif
    # Make sure that there are no spaces in the absolute path; the
    # build system can't deal with them.
    ifneq ($(words $(shell pwd)),1)
    $(warning ************************************************************)
    $(warning You are building in a directory whose absolute path contains)
    $(warning a space character:)
    $(warning $(space))
    $(warning "$(shell pwd)")
    $(warning $(space))
    $(warning Please move your source tree to a path that does not contain)
    $(warning any spaces.)
    $(warning ************************************************************)
    $(error Directory names containing spaces not supported)
    endif
    # Check for the corrent jdk
    ifneq ($(shell java -version 2>&1 | grep -i openjdk),)
    $(info ************************************************************)
    $(info You are attempting to build with an unsupported JDK.)
    $(info $(space))
    $(info You use OpenJDK but only Sun/Oracle JDK is supported.)
    $(info Please follow the machine setup instructions at)
    $(info $(space)$(space)$(space)$(space)https://source.android.com/source/download.html)
    $(info $(space))
    $(info Continue at your own peril!)
    $(info ************************************************************)
    endif
    # Check for the correct version of java
    java_version := $(shell java -version 2>&1 | head -n 1 | grep '^java .*[ "]1\.[67][\. "$$]')
    ifeq ($(strip $(java_version)),)
    $(info ************************************************************)
    $(info You are attempting to build with the incorrect version)
    $(info of java.)
    $(info $(space))
    $(info Your version is: $(shell java -version 2>&1 | head -n 1).)
    $(info The correct version is: Java SE 1.6 or 1.7.)
    $(info $(space))
    $(info Please follow the machine setup instructions at)
    $(info $(space)$(space)$(space)$(space)https://source.android.com/source/download.html)
    $(info ************************************************************)
    $(error stop)
    endif
    # Check for the correct version of javac
    javac_version := $(shell javac -version 2>&1 | head -n 1 | grep '[ "]1\.[67][\. "$$]')
    ifeq ($(strip $(javac_version)),)
    $(info ************************************************************)
    $(info You are attempting to build with the incorrect version)
    $(info of javac.)
    $(info $(space))
    $(info Your version is: $(shell javac -version 2>&1 | head -n 1).)
    $(info The correct version is: 1.6 or 1.7.)
    $(info $(space))
    $(info Please follow the machine setup instructions at)
    $(info $(space)$(space)$(space)$(space)https://source.android.com/source/download.html)
    $(info ************************************************************)
    $(error stop)
    endif
    ifndef BUILD_EMULATOR
    ifeq (darwin,$(HOST_OS))
    GCC_REALPATH = $(realpath $(shell which $(HOST_CC)))
    ifneq ($(findstring llvm-gcc,$(GCC_REALPATH)),)
    # Using LLVM GCC results in a non functional emulator due to it
    # not honouring global register variables
    $(warning ****************************************)
    $(warning * gcc is linked to llvm-gcc which will *)
    $(warning * not create a useable emulator. *)
    $(warning ****************************************)
    BUILD_EMULATOR := false
    else
    BUILD_EMULATOR := true
    endif
    else # HOST_OS is not darwin
    BUILD_EMULATOR := true
    endif # HOST_OS is darwin
    endif
    $(shell echo 'VERSIONS_CHECKED := $(VERSION_CHECK_SEQUENCE_NUMBER)' \
    > $(OUT_DIR)/versions_checked.mk)
    $(shell echo 'BUILD_EMULATOR ?= $(BUILD_EMULATOR)' \
    >> $(OUT_DIR)/versions_checked.mk)
    endif
    # These are the modifier targets that don't do anything themselves, but
    # change the behavior of the build.
    # (must be defined before including definitions.make)
    INTERNAL_MODIFIER_TARGETS := showcommands all incrementaljavac
    .PHONY: incrementaljavac
    incrementaljavac: ;
    # WARNING:
    # ENABLE_INCREMENTALJAVAC should NOT be enabled by default, because change of
    # a Java source file won't trigger rebuild of its dependent Java files.
    # You can only enable it by adding "incrementaljavac" to your make command line.
    # You are responsible for the correctness of the incremental build.
    # This may decrease incremental build time dramatically for large Java libraries,
    # such as core.jar, framework.jar, etc.
    ENABLE_INCREMENTALJAVAC :=
    ifneq (,$(filter incrementaljavac, $(MAKECMDGOALS)))
    ENABLE_INCREMENTALJAVAC := true
    MAKECMDGOALS := $(filter-out incrementaljavac, $(MAKECMDGOALS))
    endif
    # EMMA_INSTRUMENT_STATIC merges the static emma library to each emma-enabled module.
    ifeq (true,$(EMMA_INSTRUMENT_STATIC))
    EMMA_INSTRUMENT := true
    endif
    # Bring in standard build system definitions.
    include $(BUILD_SYSTEM)/definitions.mk
    # Bring in Qualcomm helper macros
    include $(BUILD_SYSTEM)/qcom_utils.mk
    # Bring in dex_preopt.mk
    include $(BUILD_SYSTEM)/dex_preopt.mk
    ifneq ($(filter user userdebug eng,$(MAKECMDGOALS)),)
    $(info ***************************************************************)
    $(info ***************************************************************)
    $(info Do not pass '$(filter user userdebug eng,$(MAKECMDGOALS))' on \
    the make command line.)
    $(info Set TARGET_BUILD_VARIANT in buildspec.mk, or use lunch or)
    $(info choosecombo.)
    $(info ***************************************************************)
    $(info ***************************************************************)
    $(error stopping)
    endif
    ifneq ($(filter-out $(INTERNAL_VALID_VARIANTS),$(TARGET_BUILD_VARIANT)),)
    $(info ***************************************************************)
    $(info ***************************************************************)
    $(info Invalid variant: $(TARGET_BUILD_VARIANT)
    $(info Valid values are: $(INTERNAL_VALID_VARIANTS)
    $(info ***************************************************************)
    $(info ***************************************************************)
    $(error stopping)
    endif
    # Variable to check java support level inside PDK build.
    # Not necessary if the components is not in PDK.
    # not defined : not supported
    # "sdk" : sdk API only
    # "platform" : platform API supproted
    TARGET_BUILD_JAVA_SUPPORT_LEVEL := platform
    # The pdk (Platform Development Kit) build
    include build/core/pdk_config.mk
    ### In this section we set up the things that are different
    ### between the build variants
    is_sdk_build :=
    ifneq ($(filter sdk win_sdk sdk_addon,$(MAKECMDGOALS)),)
    is_sdk_build := true
    endif
    ## user/userdebug ##
    user_variant := $(filter user userdebug,$(TARGET_BUILD_VARIANT))
    enable_target_debugging := true
    tags_to_install :=
    ifneq (,$(user_variant))
    # Target is secure in user builds.
    ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=1
    ifeq ($(user_variant),userdebug)
    # Pick up some extra useful tools
    tags_to_install += debug
    # Enable Dalvik lock contention logging for userdebug builds.
    ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.lockprof.threshold=500
    else
    # Disable debugging in plain user builds.
    enable_target_debugging :=
    endif
    # Turn on Dalvik preoptimization for user builds, but only if not
    # explicitly disabled and the build is running on Linux (since host
    # Dalvik isn't built for non-Linux hosts).
    ifneq (true,$(DISABLE_DEXPREOPT))
    ifeq ($(user_variant),user)
    ifeq ($(HOST_OS),linux)
    WITH_DEXPREOPT := true
    endif
    endif
    endif
    # Disallow mock locations by default for user builds
    ADDITIONAL_DEFAULT_PROPERTIES += ro.allow.mock.location=0
    else # !user_variant
    # Turn on checkjni for non-user builds.
    ADDITIONAL_BUILD_PROPERTIES += ro.kernel.android.checkjni=1
    # Set device insecure for non-user builds.
    ADDITIONAL_DEFAULT_PROPERTIES += ro.secure=0
    # Allow mock locations by default for non user builds
    ADDITIONAL_DEFAULT_PROPERTIES += ro.allow.mock.location=1
    endif # !user_variant
    ifeq (true,$(strip $(enable_target_debugging)))
    # Target is more debuggable and adbd is on by default
    ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=1
    # Include the debugging/testing OTA keys in this build.
    INCLUDE_TEST_OTA_KEYS := true
    else # !enable_target_debugging
    # Target is less debuggable and adbd is off by default
    ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=0
    endif # !enable_target_debugging
    ## eng ##
    ifeq ($(TARGET_BUILD_VARIANT),eng)
    tags_to_install := debug eng
    ifneq ($(filter ro.setupwizard.mode=ENABLED, $(call collapse-pairs, $(ADDITIONAL_BUILD_PROPERTIES))),)
    # Don't require the setup wizard on eng builds
    ADDITIONAL_BUILD_PROPERTIES := $(filter-out ro.setupwizard.mode=%,\
    $(call collapse-pairs, $(ADDITIONAL_BUILD_PROPERTIES))) \
    ro.setupwizard.mode=OPTIONAL
    endif
    endif
    ## sdk ##
    ifdef is_sdk_build
    # Detect if we want to build a repository for the SDK
    sdk_repo_goal := $(strip $(filter sdk_repo,$(MAKECMDGOALS)))
    MAKECMDGOALS := $(strip $(filter-out sdk_repo,$(MAKECMDGOALS)))
    ifneq ($(words $(filter-out $(INTERNAL_MODIFIER_TARGETS) checkbuild,$(MAKECMDGOALS))),1)
    $(error The 'sdk' target may not be specified with any other targets)
    endif
    # TODO: this should be eng I think. Since the sdk is built from the eng
    # variant.
    tags_to_install := debug eng
    ADDITIONAL_BUILD_PROPERTIES += xmpp.auto-presence=true
    ADDITIONAL_BUILD_PROPERTIES += ro.config.nocheckin=yes
    else # !sdk
    endif
    BUILD_WITHOUT_PV := true
    ## precise GC ##
    ifneq ($(filter dalvik.gc.type-precise,$(PRODUCT_TAGS)),)
    # Enabling type-precise GC results in larger optimized DEX files. The
    # additional storage requirements for ".odex" files can cause /system
    # to overflow on some devices, so this is configured separately for
    # each product.
    ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.dexopt-flags=m=y
    endif
    ADDITIONAL_BUILD_PROPERTIES += net.bt.name=Android
    # enable vm tracing in files for now to help track
    # the cause of ANRs in the content process
    ADDITIONAL_BUILD_PROPERTIES += dalvik.vm.stack-trace-file=/data/anr/traces.txt
    # Define a function that, given a list of module tags, returns
    # non-empty if that module should be installed in /system.
    # For most goals, anything not tagged with the "tests" tag should
    # be installed in /system.
    define should-install-to-system
    $(if $(filter tests,$(1)),,true)
    endef
    ifdef is_sdk_build
    # For the sdk goal, anything with the "samples" tag should be
    # installed in /data even if that module also has "eng"/"debug"/"user".
    define should-install-to-system
    $(if $(filter samples tests,$(1)),,true)
    endef
    endif
    # If they only used the modifier goals (showcommands, etc), we'll actually
    # build the default target.
    ifeq ($(filter-out $(INTERNAL_MODIFIER_TARGETS),$(MAKECMDGOALS)),)
    .PHONY: $(INTERNAL_MODIFIER_TARGETS)
    $(INTERNAL_MODIFIER_TARGETS): $(DEFAULT_GOAL)
    endif
    # Bring in all modules that need to be built.
    ifeq ($(HOST_OS)-$(HOST_ARCH),darwin-ppc)
    SDK_ONLY := true
    $(info Building the SDK under darwin-ppc is actually obsolete and unsupported.)
    $(error stop)
    endif
    ifeq ($(HOST_OS),windows)
    SDK_ONLY := true
    endif
    ifeq ($(SDK_ONLY),true)
    include $(TOPDIR)sdk/build/windows_sdk_whitelist.mk
    include $(TOPDIR)development/build/windows_sdk_whitelist.mk
    # Exclude tools/acp when cross-compiling windows under linux
    ifeq ($(findstring Linux,$(UNAME)),)
    subdirs += build/tools/acp
    endif
    else # !SDK_ONLY
    # Typical build; include any Android.mk files we can find.
    subdirs := $(TOP)
    FULL_BUILD := true
    endif # !SDK_ONLY
    # Before we go and include all of the module makefiles, stash away
    # the PRODUCT_* values so that later we can verify they are not modified.
    stash_product_vars:=true
    ifeq ($(stash_product_vars),true)
    $(call stash-product-vars, __STASHED)
    endif
    ifneq ($(ONE_SHOT_MAKEFILE),)
    # We've probably been invoked by the "mm" shell function
    # with a subdirectory's makefile.
    include $(ONE_SHOT_MAKEFILE)
    # Change CUSTOM_MODULES to include only modules that were
    # defined by this makefile; this will install all of those
    # modules as a side-effect. Do this after including ONE_SHOT_MAKEFILE
    # so that the modules will be installed in the same place they
    # would have been with a normal make.
    CUSTOM_MODULES := $(sort $(call get-tagged-modules,$(ALL_MODULE_TAGS)))
    FULL_BUILD :=
    # Stub out the notice targets, which probably aren't defined
    # when using ONE_SHOT_MAKEFILE.
    NOTICE-HOST-%: ;
    NOTICE-TARGET-%: ;
    # A helper goal printing out install paths
    .PHONY: GET-INSTALL-PATH
    GET-INSTALL-PATH:
    @$(foreach m, $(ALL_MODULES), $(if $(ALL_MODULES.$(m).INSTALLED), \
    echo 'INSTALL-PATH: $(m) $(ALL_MODULES.$(m).INSTALLED)';))
    else # ONE_SHOT_MAKEFILE
    ifneq ($(dont_bother),true)
    # Include all of the makefiles in the system
    # Can't use first-makefiles-under here because
    # --mindepth=2 makes the prunes not work.
    subdir_makefiles := \
    $(shell build/tools/findleaves.py --prune=$(OUT_DIR) --prune=.repo --prune=.git $(subdirs) Android.mk)
    ifneq ($(HIDE_MAKEFILE_INCLUDES),y)
    $(foreach mk, $(subdir_makefiles), $(info including $(mk) ...)$(eval include $(mk)))
    else
    $(foreach mk, $(subdir_makefiles), $(eval include $(mk)))
    endif
    endif # dont_bother
    endif # ONE_SHOT_MAKEFILE
    # Now with all Android.mks loaded we can do post cleaning steps.
    include $(BUILD_SYSTEM)/post_clean.mk
    ifeq ($(stash_product_vars),true)
    $(call assert-product-vars, __STASHED)
    endif
    include $(BUILD_SYSTEM)/legacy_prebuilts.mk
    ifneq ($(filter-out $(GRANDFATHERED_ALL_PREBUILT),$(strip $(notdir $(ALL_PREBUILT)))),)
    $(warning *** Some files have been added to ALL_PREBUILT.)
    $(warning *)
    $(warning * ALL_PREBUILT is a deprecated mechanism that)
    $(warning * should not be used for new files.)
    $(warning * As an alternative, use PRODUCT_COPY_FILES in)
    $(warning * the appropriate product definition.)
    $(warning * build/target/product/core.mk is the product)
    $(warning * definition used in all products.)
    $(warning *)
    $(foreach bad_prebuilt,$(filter-out $(GRANDFATHERED_ALL_PREBUILT),$(strip $(notdir $(ALL_PREBUILT)))),$(warning * unexpected $(bad_prebuilt) in ALL_PREBUILT))
    $(warning *)
    $(error ALL_PREBUILT contains unexpected files)
    endif
    # All module makefiles have been included at this point.
    # Fix up CUSTOM_MODULES to refer to installed files rather than
    # just bare module names. Leave unknown modules alone in case
    # they're actually full paths to a particular file.
    known_custom_modules := $(filter $(ALL_MODULES),$(CUSTOM_MODULES))
    unknown_custom_modules := $(filter-out $(ALL_MODULES),$(CUSTOM_MODULES))
    CUSTOM_MODULES := \
    $(call module-installed-files,$(known_custom_modules)) \
    $(unknown_custom_modules)
    # Define dependencies for modules that require other modules.
    # This can only happen now, after we've read in all module makefiles.
    # TODO: deal with the fact that a bare module name isn't
    # unambiguous enough. Maybe declare short targets like
    # APPS:Quake or HOST:SHARED_LIBRARIES:libutils.
    # BUG: the system image won't know to depend on modules that are
    # brought in as requirements of other modules.
    define add-required-deps
    $(1): | $(2)
    endef
    $(foreach m,$(ALL_MODULES), \
    $(eval r := $(ALL_MODULES.$(m).REQUIRED)) \
    $(if $(r), \
    $(eval r := $(call module-installed-files,$(r))) \
    $(eval t_m := $(filter $(TARGET_OUT_ROOT)/%, $(ALL_MODULES.$(m).INSTALLED))) \
    $(eval h_m := $(filter $(HOST_OUT_ROOT)/%, $(ALL_MODULES.$(m).INSTALLED))) \
    $(eval t_r := $(filter $(TARGET_OUT_ROOT)/%, $(r))) \
    $(eval h_r := $(filter $(HOST_OUT_ROOT)/%, $(r))) \
    $(if $(t_m), $(eval $(call add-required-deps, $(t_m),$(t_r)))) \
    $(if $(h_m), $(eval $(call add-required-deps, $(h_m),$(h_r)))) \
    t_m :=
    h_m :=
    t_r :=
    h_r :=
    # Resolve the dependencies on shared libraries.
    $(foreach m,$(TARGET_DEPENDENCIES_ON_SHARED_LIBRARIES), \
    $(eval p := $(subst :,$(space),$(m))) \
    $(eval r := $(filter $(TARGET_OUT_ROOT)/%,$(call module-installed-files,\
    $(subst $(comma),$(space),$(lastword $(p)))))) \
    $(eval $(call add-required-deps,$(word 2,$(p)),$(r))))
    $(foreach m,$(HOST_DEPENDENCIES_ON_SHARED_LIBRARIES), \
    $(eval p := $(subst :,$(space),$(m))) \
    $(eval r := $(filter $(HOST_OUT_ROOT)/%,$(call module-installed-files,\
    $(subst $(comma),$(space),$(lastword $(p)))))) \
    $(eval $(call add-required-deps,$(word 2,$(p)),$(r))))
    m :=
    r :=
    p :=
    add-required-deps :=
    # Figure out our module sets.
    # Of the modules defined by the component makefiles,
    # determine what we actually want to build.
    ifdef FULL_BUILD
    # The base list of modules to build for this product is specified
    # by the appropriate product definition file, which was included
    # by product_config.make.
    product_MODULES := $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES)
    # Filter out the overridden packages before doing expansion
    product_MODULES := $(filter-out $(foreach p, $(product_MODULES), \
    $(PACKAGES.$(p).OVERRIDES)), $(product_MODULES))
    $(call expand-required-modules,product_MODULES,$(product_MODULES))
    product_FILES := $(call module-installed-files, $(product_MODULES))
    ifeq (0,1)
    $(info product_FILES for $(TARGET_DEVICE) ($(INTERNAL_PRODUCT)):)
    $(foreach p,$(product_FILES),$(info : $(p)))
    $(error done)
    endif
    else
    # We're not doing a full build, and are probably only including
    # a subset of the module makefiles. Don't try to build any modules
    # requested by the product, because we probably won't have rules
    # to build them.
    product_FILES :=
    endif
    eng_MODULES := $(sort \
    $(call get-tagged-modules,eng) \
    $(call module-installed-files, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_ENG)) \
    debug_MODULES := $(sort \
    $(call get-tagged-modules,debug) \
    $(call module-installed-files, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_DEBUG)) \
    tests_MODULES := $(sort \
    $(call get-tagged-modules,tests) \
    $(call module-installed-files, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_TESTS)) \
    # TODO: Remove the 3 places in the tree that use ALL_DEFAULT_INSTALLED_MODULES
    # and get rid of it from this list.
    # TODO: The shell is chosen by magic. Do we still need this?
    modules_to_install := $(sort \
    $(ALL_DEFAULT_INSTALLED_MODULES) \
    $(product_FILES) \
    $(foreach tag,$(tags_to_install),$($(tag)_MODULES)) \
    $(call get-tagged-modules, shell_$(TARGET_SHELL)) \
    $(CUSTOM_MODULES) \
    # Some packages may override others using LOCAL_OVERRIDES_PACKAGES.
    # Filter out (do not install) any overridden packages.
    overridden_packages := $(call get-package-overrides,$(modules_to_install))
    ifdef overridden_packages
    # old_modules_to_install := $(modules_to_install)
    modules_to_install := \
    $(filter-out $(foreach p,$(overridden_packages),$(p) %/$(p).apk), \
    $(modules_to_install))
    endif
    #$(error filtered out
    # $(filter-out $(modules_to_install),$(old_modules_to_install)))
    # Don't include any GNU targets in the SDK. It's ok (and necessary)
    # to build the host tools, but nothing that's going to be installed
    # on the target (including static libraries).
    ifdef is_sdk_build
    target_gnu_MODULES := \
    $(filter \
    $(TARGET_OUT_INTERMEDIATES)/% \
    $(TARGET_OUT)/% \
    $(TARGET_OUT_DATA)/%, \
    $(sort $(call get-tagged-modules,gnu)))
    $(info Removing from sdk:)$(foreach d,$(target_gnu_MODULES),$(info : $(d)))
    modules_to_install := \
    $(filter-out $(target_gnu_MODULES),$(modules_to_install))
    # Ensure every module listed in PRODUCT_PACKAGES* gets something installed
    # TODO: Should we do this for all builds and not just the sdk?
    $(foreach m, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES), \
    $(if $(strip $(ALL_MODULES.$(m).INSTALLED)),,\
    $(error $(ALL_MODULES.$(m).MAKEFILE): Module '$(m)' in PRODUCT_PACKAGES has nothing to install!)))
    $(foreach m, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_DEBUG), \
    $(if $(strip $(ALL_MODULES.$(m).INSTALLED)),,\
    $(warning $(ALL_MODULES.$(m).MAKEFILE): Module '$(m)' in PRODUCT_PACKAGES_DEBUG has nothing to install!)))
    $(foreach m, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_ENG), \
    $(if $(strip $(ALL_MODULES.$(m).INSTALLED)),,\
    $(warning $(ALL_MODULES.$(m).MAKEFILE): Module '$(m)' in PRODUCT_PACKAGES_ENG has nothing to install!)))
    $(foreach m, $(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_PACKAGES_TESTS), \
    $(if $(strip $(ALL_MODULES.$(m).INSTALLED)),,\
    $(warning $(ALL_MODULES.$(m).MAKEFILE): Module '$(m)' in PRODUCT_PACKAGES_TESTS has nothing to install!)))
    endif
    # build/core/Makefile contains extra stuff that we don't want to pollute this
    # top-level makefile with. It expects that ALL_DEFAULT_INSTALLED_MODULES
    # contains everything that's built during the current make, but it also further
    # extends ALL_DEFAULT_INSTALLED_MODULES.
    ALL_DEFAULT_INSTALLED_MODULES := $(modules_to_install)
    include $(BUILD_SYSTEM)/Makefile
    modules_to_install := $(sort $(ALL_DEFAULT_INSTALLED_MODULES))
    ALL_DEFAULT_INSTALLED_MODULES :=
    # These are additional goals that we build, in order to make sure that there
    # is as little code as possible in the tree that doesn't build.
    modules_to_check := $(foreach m,$(ALL_MODULES),$(ALL_MODULES.$(m).CHECKED))
    # If you would like to build all goals, and not skip any intermediate
    # steps, you can pass the "all" modifier goal on the commandline.
    ifneq ($(filter all,$(MAKECMDGOALS)),)
    modules_to_check += $(foreach m,$(ALL_MODULES),$(ALL_MODULES.$(m).BUILT))
    endif
    # for easier debugging
    modules_to_check := $(sort $(modules_to_check))
    #$(error modules_to_check $(modules_to_check))
    # This is used to to get the ordering right, you can also use these,
    # but they're considered undocumented, so don't complain if their
    # behavior changes.
    .PHONY: prebuilt
    prebuilt: $(ALL_PREBUILT)
    # An internal target that depends on all copied headers
    # (see copy_headers.make). Other targets that need the
    # headers to be copied first can depend on this target.
    .PHONY: all_copied_headers
    all_copied_headers: ;
    $(ALL_C_CPP_ETC_OBJECTS): | all_copied_headers
    # All the droid stuff, in directories
    .PHONY: files
    files: prebuilt \
    $(modules_to_install) \
    $(INSTALLED_ANDROID_INFO_TXT_TARGET)
    .PHONY: checkbuild
    checkbuild: $(modules_to_check)
    ifeq (true,$(ANDROID_BUILD_EVERYTHING_BY_DEFAULT)$(filter $(MAKECMDGOALS),checkbuild))
    droid: checkbuild
    else
    # ANDROID_BUILD_EVERYTHING_BY_DEFAULT not set, or checkbuild is one of the cmd goals.
    checkbuild: droid
    endif
    .PHONY: ramdisk
    ramdisk: $(INSTALLED_RAMDISK_TARGET)
    .PHONY: factory_ramdisk
    factory_ramdisk: $(INSTALLED_FACTORY_RAMDISK_TARGET)
    .PHONY: factory_bundle
    factory_bundle: $(INSTALLED_FACTORY_BUNDLE_TARGET)
    .PHONY: systemtarball
    systemtarball: $(INSTALLED_SYSTEMTARBALL_TARGET)
    .PHONY: boottarball
    boottarball: $(INSTALLED_BOOTTARBALL_TARGET)
    .PHONY: userdataimage
    userdataimage: $(INSTALLED_USERDATAIMAGE_TARGET)
    ifneq (,$(filter userdataimage, $(MAKECMDGOALS)))
    $(call dist-for-goals, userdataimage, $(BUILT_USERDATAIMAGE_TARGET))
    endif
    .PHONY: userdatatarball
    userdatatarball: $(INSTALLED_USERDATATARBALL_TARGET)
    .PHONY: cacheimage
    cacheimage: $(INSTALLED_CACHEIMAGE_TARGET)
    .PHONY: vendorimage
    vendorimage: $(INSTALLED_VENDORIMAGE_TARGET)
    .PHONY: bootimage
    bootimage: $(INSTALLED_BOOTIMAGE_TARGET)
    # phony target that include any targets in $(ALL_MODULES)
    .PHONY: all_modules
    ifndef BUILD_MODULES_IN_PATHS
    all_modules: $(ALL_MODULES)
    else
    # BUILD_MODULES_IN_PATHS is a list of paths relative to the top of the tree
    module_path_patterns := $(foreach p, $(BUILD_MODULES_IN_PATHS),\
    $(if $(filter %/,$(p)),$(p)%,$(p)/%))
    my_all_modules := $(sort $(foreach m, $(ALL_MODULES),$(if $(filter\
    $(module_path_patterns), $(addsuffix /,$(ALL_MODULES.$(m).PATH))),$(m))))
    all_modules: $(my_all_modules)
    endif
    # Build files and then package it into the rom formats
    .PHONY: droidcore
    droidcore: files \
    systemimage \
    $(INSTALLED_BOOTIMAGE_TARGET) \
    $(INSTALLED_RECOVERYIMAGE_TARGET) \
    $(INSTALLED_USERDATAIMAGE_TARGET) \
    $(INSTALLED_CACHEIMAGE_TARGET) \
    $(INSTALLED_VENDORIMAGE_TARGET) \
    $(INSTALLED_FILES_FILE)
    # dist_files only for putting your library into the dist directory with a full build.
    .PHONY: dist_files
    ifneq ($(TARGET_BUILD_APPS),)
    # If this build is just for apps, only build apps and not the full system by default.
    unbundled_build_modules :=
    ifneq ($(filter all,$(TARGET_BUILD_APPS)),)
    # If they used the magic goal "all" then build all apps in the source tree.
    unbundled_build_modules := $(foreach m,$(sort $(ALL_MODULES)),$(if $(filter APPS,$(ALL_MODULES.$(m).CLASS)),$(m)))
    else
    unbundled_build_modules := $(TARGET_BUILD_APPS)
    endif
    # Dist the installed files if they exist.
    apps_only_installed_files := $(foreach m,$(unbundled_build_modules),$(ALL_MODULES.$(m).INSTALLED))
    $(call dist-for-goals,apps_only, $(apps_only_installed_files))
    # For uninstallable modules such as static Java library, we have to dist the built file,
    # as <module_name>.<suffix>
    apps_only_dist_built_files := $(foreach m,$(unbundled_build_modules),$(if $(ALL_MODULES.$(m).INSTALLED),,\
    $(if $(ALL_MODULES.$(m).BUILT),$(ALL_MODULES.$(m).BUILT):$(m)$(suffix $(ALL_MODULES.$(m).BUILT)))))
    $(call dist-for-goals,apps_only, $(apps_only_dist_built_files))
    ifeq ($(EMMA_INSTRUMENT),true)
    $(EMMA_META_ZIP) : $(apps_only_installed_files)
    $(call dist-for-goals,apps_only, $(EMMA_META_ZIP))
    endif
    $(PROGUARD_DICT_ZIP) : $(apps_only_installed_files)
    $(call dist-for-goals,apps_only, $(PROGUARD_DICT_ZIP))
    .PHONY: apps_only
    apps_only: $(unbundled_build_modules)
    droid: apps_only
    # Combine the NOTICE files for a apps_only build
    $(eval $(call combine-notice-files, \
    $(target_notice_file_txt), \
    $(target_notice_file_html), \
    "Notices for files for apps:", \
    $(TARGET_OUT_NOTICE_FILES), \
    $(apps_only_installed_files)))
    else # TARGET_BUILD_APPS
    $(call dist-for-goals, droidcore, \
    $(INTERNAL_UPDATE_PACKAGE_TARGET) \
    $(INTERNAL_OTA_PACKAGE_TARGET) \
    $(SYMBOLS_ZIP) \
    $(INSTALLED_FILES_FILE) \
    $(INSTALLED_BUILD_PROP_TARGET) \
    $(BUILT_TARGET_FILES_PACKAGE) \
    $(INSTALLED_ANDROID_INFO_TXT_TARGET) \
    $(INSTALLED_RAMDISK_TARGET) \
    $(INSTALLED_FACTORY_RAMDISK_TARGET) \
    $(INSTALLED_FACTORY_BUNDLE_TARGET) \
    # Put a copy of the radio/bootloader files in the dist dir.
    $(foreach f,$(INSTALLED_RADIOIMAGE_TARGET), \
    $(call dist-for-goals, droidcore, $(f)))
    ifneq ($(TARGET_BUILD_PDK),true)
    $(call dist-for-goals, droidcore, \
    $(APPS_ZIP) \
    $(INTERNAL_EMULATOR_PACKAGE_TARGET) \
    $(PACKAGE_STATS_FILE) \
    endif
    ifeq ($(EMMA_INSTRUMENT),true)
    $(EMMA_META_ZIP) : $(INSTALLED_SYSTEMIMAGE)
    $(call dist-for-goals, dist_files, $(EMMA_META_ZIP))
    endif
    # Building a full system-- the default is to build droidcore
    droid: droidcore dist_files
    endif # TARGET_BUILD_APPS
    .PHONY: docs
    docs: $(ALL_DOCS)
    .PHONY: sdk
    ALL_SDK_TARGETS := $(INTERNAL_SDK_TARGET)
    sdk: $(ALL_SDK_TARGETS)
    $(call dist-for-goals,sdk win_sdk, \
    $(ALL_SDK_TARGETS) \
    $(SYMBOLS_ZIP) \
    $(INSTALLED_BUILD_PROP_TARGET) \
    # umbrella targets to assit engineers in verifying builds
    .PHONY: java native target host java-host java-target native-host native-target \
    java-host-tests java-target-tests native-host-tests native-target-tests \
    java-tests native-tests host-tests target-tests
    # some synonyms
    .PHONY: host-java target-java host-native target-native \
    target-java-tests target-native-tests
    host-java : java-host
    target-java : java-target
    host-native : native-host
    target-native : native-target
    target-java-tests : java-target-tests
    target-native-tests : native-target-tests
    .PHONY: lintall
    .PHONY: samplecode
    sample_MODULES := $(sort $(call get-tagged-modules,samples))
    sample_APKS_DEST_PATH := $(TARGET_COMMON_OUT_ROOT)/samples
    sample_APKS_COLLECTION := \
    $(foreach module,$(sample_MODULES),$(sample_APKS_DEST_PATH)/$(notdir $(module)))
    $(foreach module,$(sample_MODULES),$(eval $(call \
    copy-one-file,$(module),$(sample_APKS_DEST_PATH)/$(notdir $(module)))))
    sample_ADDITIONAL_INSTALLED := \
    $(filter-out $(modules_to_install) $(modules_to_check) $(ALL_PREBUILT),$(sample_MODULES))
    samplecode: $(sample_APKS_COLLECTION)
    @echo -e ${PRT_TGT}"Collect sample code apks:"${CL_RST}" $^"
    # remove apks that are not intended to be installed.
    rm -f $(sample_ADDITIONAL_INSTALLED)
    .PHONY: findbugs
    findbugs: $(INTERNAL_FINDBUGS_HTML_TARGET) $(INTERNAL_FINDBUGS_XML_TARGET)
    .PHONY: clean
    clean:
    @rm -rf $(OUT_DIR)
    @echo -e ${PRT_TGT}"Entire build directory removed."${CL_RST}
    .PHONY: clobber
    clobber: clean
    # The rules for dataclean and installclean are defined in cleanbuild.mk.
    #xxx scrape this from ALL_MODULE_NAME_TAGS
    .PHONY: modules
    modules:
    @echo -e ${PRT_TGT}"Available sub-modules:"${CL_RST}
    @echo "$(call module-names-for-tag-list,$(ALL_MODULE_TAGS))" | \
    tr -s ' ' '\n' | sort -u | $(COLUMN)
    .PHONY: showcommands
    showcommands:
    @echo >/dev/null
    .PHONY: nothing
    nothing:
    @echo Successfully read the makefiles.

  • Shared Libraries Won't Play

    I can see the shared libraries on the other 2 Macs on my home WiFi network, but the songs won't play.
    Also - one of the Mac's libraries won't show on the others, even though library sharing is turned on.
    Any help?

    It has to do with how I was transscoding the videos. Handbrake tags the videos in a way that makes it impossible to play in Windows. Retagging with a program like MetaX will solve the issue.

  • Windows iTunes won't play video from shared libraries

    Hey guys.
    There are 4 computers with itunes in my house. I have a MBP and a Mac Mini with 10.6.4. Also, my brothers have 2 PCs with Windows 7.
    I store my media on the Mac, but would like to share it with them thru iTunes on the other PCs. So, we all set up library sharing and updated to iTunes on all machines to 10.0.1.
    Problem is: The windows PCs can't play any shared video.
    Whether it's from Mac or PC, iTunes on the Windows PCs can't stream any videos from any of the other 3 shared libraries. The Macs do it fine from the other sources, Windows PCs don't.
    All that being said, the Windows PCs do play video in their own libraries. Just not Shared ones.
    As I said, all 4 PCs have the latest OSs, iTunes and QT. Any ideas?

    It has to do with how I was transscoding the videos. Handbrake tags the videos in a way that makes it impossible to play in Windows. Retagging with a program like MetaX will solve the issue.

  • Itunes Sharing Libraries- Assistance Required

    I have just had one of my computers upgraded and I now cannot share the libraries as I could in the past- all settings are correct ie both computers preferences are to look for shared libraries.
    The issue is firstly that visibility of the shared library in itunes is intermittent. I have attempted to work with the firewall settings but I cannot solve this.
    Secondly when it is visible, and you click on the library, it starts to load and then before it completes the library disappears and is not visible again.
    Any thoughts on the matter?
      Windows XP  

    From a networking point of view, there are two basic things that happen. First, the serving computer sends a muticast message advertising its presence. That's a UDP packet containing its Library information to the multicast address 224.0.0.251 on port 5353. It doesn't send these packets often. There's some algorithm which decreases the frequency of these packets over time, to avoid excess chattiness on the network. You could be experiencing that. Try stopping and starting Tunes on the serving computer.
    The second thing that happens is that the client computer establishes a connection to the server computer on port 3689. If you have a firewall, you need to open up this port. It does seem wrong not to get an error message when the connection fails. Sounds like a bug. But I'll wager that's what's happening, and why the link disappears. I suppose it could also be a password error, check the Keychain for old iTunes passwords.
    God luck. Sometimes it requires a reboot on the client computer to get things working.

  • Error while loading shared libraries: librt.so.1: cannot open shared object

    error while loading shared libraries: librt.so.1: cannot open shared object
    I cant run my apache server v2.2.3.
    Can someone help me?
    thanks in advance

    That could be an accessibility issue. Check the user with whom you installed Apache server. Check the user has permissions to access the libraries.
    -Mahendra.

Maybe you are looking for

  • Integrating a link to .swf (on same computer) from powerpoint?

    This is a bit "off base," but I thought someone here may be able to help. I am working on some interactive animations for an upcoming meeting. Ideally, I would love to be able to have an interactive slide within powerpoint, however – don't think that

  • .Class file not updating

    Hi all, I am working on an applet that requires the use of a .class file. So, when I make changes to test.java, I want the changes to move over to test.class, however they are not moving over there. In a sense, my .class file is outdated and is not u

  • Photosmart E317 Camera - Memory Card

    There is clearly a lack of available information about the E317 and although it is older  - it is still quite suitable for our particular need. I want to increase the memory but am finding it difficult locating a memory card. At the moment the card i

  • Is my StageR12 folder good enough???

    Hi Experts, I tried many times to install EBS R 12.1.1 on Windows Server 2003 and also on 2008. Now I am installing on 2008. I just want to make sure my Stage area is good?? Below are the details....... Stage_EBSR12 |---> oraAppDB -----------> Disk1

  • Safari loads like snail mail after upgrading to MS Office 2008 SVP1

    I installed the latest Microsoft update to office today. Immediately after that Safari came to a grinding halt. It takes forever to get to any page. Anyone seen similar problem?