Re: SmartMonTools running in Android

Christian Franke <[email protected]>
Newsgroups gmane.linux.utilities.smartmontools
Message-ID <[email protected]>
Viswanathan, Kasi A wrote:
>
> Hi,
>
> I’ve compiled smartmontools for linux (Ubuntu 10.04) running on x86 
> processor and the binary is running fine.
>
> But, when I try to use the same binary (copying smartctl and smartd 
> into my device’s /system/bin/’), its not running.
>
> I’ve given chmod 777 to both the binaries. The device is running 
> android and its also x86 processor.
>
> How can I make it run in Android? Kindly help.
>

The android-x86 images do not include the required shared libraries 
(e.g. /usr/lib/*/libstdc++.so.VERSION).
A statically linked binary may work:
./configure 'LDFLAGS=-static' && make

I recently tested this with smartctl built on an older i686 Debian 
system. It worked using android-x86-4.0-r1-eeepc.iso image started in 
VirtualBox.

Regards,
Christian


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.