Hi, I think wireless tools "talk" to wireless kernel extension. So you need to allow wireless extension in the kernel. Your network driver should support it as well. Android runtime has libc that supposes to be enough for wireless tools.
Hope this helps. On Dec 13, 5:32 pm, "massa rubens" <mrmas...@gmail.com> wrote: > Hi, > > I wonder what I need to port it. > > This is what I have done: > 1.compiled it with static option(=BUILD_STATIC) > 2.confirmed it works with normal userland and Android kernel > 3.tried the command with Android platform on the emulator and an actual > target -> got the error > > I've recognized no -static option at the compile. When adding -static, I got > the following warnings. Need to compile glibc? > arm-none-linux-gnueabi-gcc -static -Os -W -Wall -Wstrict-prototypes > -Wmissing-prototypes -Wshadow -Wpointer-arith -Wcast-qual -Winline -I. > -MMD -DWE_NOLIBM=y -DWE_ESSENTIAL=y -o ifrename ifrename.o libiw.a > libiw.a(iwlib.so): In function `iw_in_inet': > iwlib.c:(.text+0xc48): warning: Using 'gethostbyname' in statically linked > applications requires at runtime the shared libraries from the glibc version > used for linking > iwlib.c:(.text+0xc04): warning: Using 'getnetbyname' in statically linked > applications requires at runtime the shared libraries from the glibc version > used for linking > > On Sun, Dec 14, 2008 at 7:57 AM, dimitr...@android.com < > > > > dimitr...@android.com> wrote: > > > Hi, > > > You need to port them and to compile. It is not an issue. > > The main question is what are you trying to achieve ? > > > On Dec 13, 4:03 am, mrmas...@gmail.com wrote: > > > Hi, > > > > I am trying to excute wireless tools to enable an WiFi module. > > > But I got an error. > > > > #./iwconfig > > > ./iwconfig: not found > > > > Uncoment the following option in Makefile when compile wireless > > > tools29. > > > BUILD_STATIC = y > > > BUILD_NOLIBM = y > > > BUILD_WE_ESSENTIAL = y > > > > Has anyone succeeded compile it for Android?- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---