On Tuesday, August 23, 2011 8:12:19 AM UTC-4, Adrien wrote: > > I'd like to use updatedd in Android. Updatedd is a tool allowing to publish > IP address changes to ovh, noip, dyndns, ... > > I managed to build it using the following: > > export PATH=<path_to_code_sourcery_toolchain>/bin > > ./configure --host=arm-none-linux-gnueabi > You should either merge your code into the android platform build or use the android ndk's gcc, perhaps with it's standalone toolchain option, to do this so that you get something built against android's unique Bionic C library. Otherwise you have to statically link in the non-android C library and everything else that you use so that you end up with an executable that only depends on the (version of) the arm Linux kernel.
sudo make install > You generally can't do that when cross compiling, as you need to install the result on the android device, not the development machine. > But now that i have copied the binaries in Android, when I launch i have a > "updatedd not found", whether i run using /system/bin/updatedd or go int > /system/bin/ and type updatedd or ./updatedd. > You would not ordinarily be able to install it there, unless you are making your own system image or you have managed to "root" a device and make the system partition writeable. It should be possible to deploy a solution to this task using an ordinary 3rd party APK without special permissions. You could implement it entirely in java if you understand what it needs to do, or to do it with a java application containing native jni subroutines (built from C/C++) which do all the real work. The hardest part may be determining the device's IP address. Bear in mind too that most mobile network providers put you behind NAT and firewalls such that your IP address is not externally reachable to external connection attempts. This would make your project likely only worthwhile in the narrow case of an android device connected to a custom local network which is willing to route external traffic to a particular client. -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting