[Live-devel] port Live 555 to Blackfin uClinux
Poliana Moraes
poli_moraes at yahoo.com.br
Mon Sep 4 12:32:26 PDT 2006
Hello!
My name is Poliana. I ported live 555 to Blackfin uCLinux. How can I submit it to the project?
I create a file called config.bfin_uclinux in order to configure the library to blackfin:
CROSS_COMPILER= bfin-uclinux-
COMPILE_OPTS = $(INCLUDES) -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -DUCLINUX
C = c
C_COMPILER = $(CROSS_COMPILER)gcc
C_FLAGS = $(COMPILE_OPTS) -Wall
CPP = cpp
CPLUSPLUS_COMPILER = $(CROSS_COMPILER)g++
CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall
OBJ = o
LINK = $(CROSS_COMPILER)g++ -Wl,-elf2flt -o
LINK_OPTS = -L.
CONSOLE_LINK_OPTS = $(LINK_OPTS)
LIBRARY_LINK = $(CROSS_COMPILER)ld -o
LIBRARY_LINK_OPTS = $(LINK_OPTS) -r -Bstatic
LIB_SUFFIX = a
LIBS_FOR_CONSOLE_APPLICATION =
LIBS_FOR_GUI_APPLICATION =
EXE =
I edited the file GroupsockHelper.cpp
$ diff ./groupsock/GroupsockHelper.cpp ../live_original/groupsock/GroupsockHelper.cpp
33,34d32
< #include <net/if.h>
< #include <sys/ioctl.h>
553,573d550
< #ifdef UCLINUX
< netAddressBits ourSourceAddressForMulticastUclinux(UsageEnvironment& env) {
< int i=2;
< int s = socket (PF_INET, SOCK_STREAM, 0);
<
<
< struct ifreq ifr;
< struct sockaddr_in *sin = (struct sockaddr_in *) &ifr.ifr_addr;
< char *ip;
<
< ifr.ifr_ifindex = i;
< ioctl (s, SIOCGIFNAME, &ifr);
<
<
< /* now ifr.ifr_name is set */
< ioctl (s, SIOCGIFADDR, &ifr);
<
< return (sin->sin_addr.s_addr);
< }
< #endif
<
575,577d551
< #ifdef UCLINUX
< return ourSourceAddressForMulticastUclinux(env);
< #endif
Thanks in advanced!
-------------------------------------------------------------
Poliana de Moraes
cel: (12)9155-9981
4º ano Engenharia Elétrica
UNESP - campus de Guaratinguetá
---------------------------------
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20060904/b2138b31/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.bfin_uclinux
Type: application/octet-stream
Size: 560 bytes
Desc: pat73094434
Url : http://lists.live555.com/pipermail/live-devel/attachments/20060904/b2138b31/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GroupsockHelper.cpp
Type: text/x-c++src
Size: 22704 bytes
Desc: pat307279412
Url : http://lists.live555.com/pipermail/live-devel/attachments/20060904/b2138b31/attachment-0001.bin
More information about the live-devel
mailing list