[Olsr-users] Android Development - Samsung Galaxy

Fábio Almeida (spam-protected)
Wed May 11 02:35:18 CEST 2011


Hello,

I'm not really sure if my wpa_supplicant allow to set a fixed bssid or not,
because as I said, I just downloaded a modified wpa_supplicant that works in
this device.

I read the topic about implementing OLSR into Samsung Galaxy S and I
clarified some doubts that I had. Now I'm tying to compile the most recent
version of OLSR that I downloaded from the website and now I'm having some
problems.

I couldn't find the r1 of NDK so I'm using the release 4.

I already changed the Makefile.android to the path that I'm using. But when
I try to compile the source I get the following error:

(spam-protected):~/Desktop/olsrd-0.6.0$ make OS=android DEBUG=1
build_all
/home/fabioalmeida/android-ndk-r4/build/prebuilt/linux-x86/arm-eabi-4.2.1/bin/arm-eabi-gcc
-Wall -Wextra -Wold-style-definition -Wdeclaration-after-statement
-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
-Wsign-compare -Waggregate-return -Wmissing-noreturn
-Wmissing-format-attribute -Wno-multichar -Wno-deprecated-declarations
-Wendif-labels -Wwrite-strings -Wbad-function-cast -Wpointer-arith
-Wcast-qual -Wshadow -Wsequence-point -Wpointer-arith -Wcast-align
-Wnested-externs -Winline -Wdisabled-optimization
-finline-functions-called-once -funit-at-a-time -fearly-inlining
-finline-limit=350
-I/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include
-ggdb -Isrc   -DUSE_FPM -Dlinux -Dandroid -DINET_ADDRSTRLEN=16
-Dipv6mr_interface=ipv6mr_ifindex -D'IPTOS_PREC(tos)=((tos)&0xe0)'
-D'IPTOS_TOS(tos)=((tos)&0x1e)'
-DOLSRD_GLOBAL_CONF_FILE=\"/data/local/etc/olsrd.conf\" -DDEBUG    -c -o
src/linux/kernel_routes_ioctl.o src/linux/kernel_routes_ioctl.c
In file included from
/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/sys/socket.h:33,
                 from src/defs.h:48,
                 from src/linux/kernel_routes_ioctl.c:42:
/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/linux/socket.h:
In function '__cmsg_nxthdr':
/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/linux/socket.h:89:
warning: cast increases required alignment of target type
In file included from src/defs.h:51,
                 from src/linux/kernel_routes_ioctl.c:42:
/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/stdlib.h:
At top level:
/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/stdlib.h:84:
warning: declaration of 'abs' shadows a built-in function
/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/stdlib.h:88:
warning: declaration of 'labs' shadows a built-in function
/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/stdlib.h:92:
warning: declaration of 'llabs' shadows a built-in function
In file included from src/lq_packet.h:48,
                 from src/lq_plugin.h:48,
                 from src/link_set.h:49,
                 from src/routing_table.h:52,
                 from src/kernel_routes.h:46,
                 from src/linux/kernel_routes_ioctl.c:43:
src/ipcalc.h: In function 'sockaddr4_to_string':
src/ipcalc.h:160: warning: cast increases required alignment of target type
In file included from src/ipc_frontend.h:54,
                 from src/linux/kernel_routes_ioctl.c:44:
/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/unistd.h:
In function 'getpagesize':
/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/unistd.h:170:
warning: nested extern declaration of '__page_size'
/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/unistd.h:
In function '__getpageshift':
/home/fabioalmeida/android-ndk-r4/build/platforms/android-4/arch-arm/usr/include/unistd.h:174:
warning: nested extern declaration of '__page_shift'
src/linux/kernel_routes_ioctl.c: In function 'delete_all_inet_gws':
src/linux/kernel_routes_ioctl.c:90: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c:101: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c:102: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c:103: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c:104: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c:106: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c:107: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c: In function 'olsr_ioctl_add_route':
src/linux/kernel_routes_ioctl.c:141: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c:142: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c:143: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c:145: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c:150: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c:153: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c: In function 'olsr_ioctl_add_route6':
src/linux/kernel_routes_ioctl.c:193: error: storage size of 'kernel_route'
isn't known
src/linux/kernel_routes_ioctl.c:198: error: invalid application of 'sizeof'
to incomplete type 'struct in6_rtmsg'
src/linux/kernel_routes_ioctl.c:193: warning: unused variable 'kernel_route'
src/linux/kernel_routes_ioctl.c: In function 'olsr_ioctl_del_route':
src/linux/kernel_routes_ioctl.c:244: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c:245: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c:246: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c:248: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c:251: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c:257: warning: cast increases required
alignment of target type
src/linux/kernel_routes_ioctl.c: In function 'olsr_ioctl_del_route6':
src/linux/kernel_routes_ioctl.c:289: error: storage size of 'kernel_route'
isn't known
src/linux/kernel_routes_ioctl.c:294: error: invalid application of 'sizeof'
to incomplete type 'struct in6_rtmsg'
src/linux/kernel_routes_ioctl.c:289: warning: unused variable 'kernel_route'
make: *** [src/linux/kernel_routes_ioctl.o] Error 1



Any idea?

Thanks for the help,
Fabio Almeida


2011/5/5 Markus Kittenberger <(spam-protected)>

> if u have stable working adhoc connectivity than you are mostly done *G
> (does this wpa_supplicant (and your wifi dirver) allow to set a fixed bssid
> aswell?)
>
> regarding olsrd:
> pls take/create a new version, not the old precompiled binary,..
>
> some weeks ago someone built olsrd for galayx s, i think he wrote some
> short howto onthis mailinslist aswell,..
> (its afair mostly just setup android sdk and compile it,..)
>
> Markus
>
> 2011/5/5 Fábio Almeida <(spam-protected)>
>
>> Hello,
>>
>> My name is Fábio Almeida and I'm trying to implement and ad-hoc network in
>> android and I want to use OLSR protocol. I'm new in this area so I have some
>> doubts that I think that should be very simple to you.
>>
>> I want to create this network in order to create a real time network
>> between some Android devices and share information. I'm using Samsung Galaxy
>> GT-i5500 devices to do this.
>>
>> I already found a custom wpa_supplicant in xda-developers (link to the
>> thread <http://forum.xda-developers.com/showthread.php?t=781149&page=189>) that
>> ables this device to find ad-hoc networks. I already tested it creating an
>> ad-hoc network with my laptop and it seems to work ok.
>>
>> I already downloaded the pre compiled samsung android <http://www.olsr.org/releases/0.5/olsrd-0.5.6-android-samsung-galaxy.tgz>version
>> of olsrd and put it on the device.
>>
>> Now i want to know how can I test if this is working fine. It would be
>> very helpful if you can give me a simple tutorial of how to download and
>> change the source code and compile it to make it run on Samsung galaxy. What
>> are the main changes?
>>
>> After all this is working, there is any way that I create and ad-hoc
>> network with all the devices (5) and then just exchange some kind of data
>> through the network?
>>
>>
>> Thanks for the help.
>>
>> Regards,
>> Fábio Almeida
>>
>> --
>> Olsr-users mailing list
>> (spam-protected)
>> http://lists.olsr.org/mailman/listinfo/olsr-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20110511/d285a97d/attachment.html>


More information about the Olsr-users mailing list