Hello!<br><br>My name is Poliana. I ported live 555 to Blackfin uCLinux. How can I submit it to the project?<br><br>I create a file called config.bfin_uclinux in order to configure the library to blackfin:<br><br>CROSS_COMPILER= bfin-uclinux-<br>COMPILE_OPTS = $(INCLUDES) -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -DUCLINUX<br>C = c<br>C_COMPILER = $(CROSS_COMPILER)gcc<br>C_FLAGS = $(COMPILE_OPTS) -Wall<br>CPP = cpp<br>CPLUSPLUS_COMPILER = $(CROSS_COMPILER)g++<br>CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall<br>OBJ = o<br>LINK = $(CROSS_COMPILER)g++ -Wl,-elf2flt -o
<br>LINK_OPTS = -L. <br>CONSOLE_LINK_OPTS = $(LINK_OPTS)<br>LIBRARY_LINK = $(CROSS_COMPILER)ld -o<br>LIBRARY_LINK_OPTS = $(LINK_OPTS) -r -Bstatic<br>LIB_SUFFIX = a<br>LIBS_FOR_CONSOLE_APPLICATION =<br>LIBS_FOR_GUI_APPLICATION =<br>EXE =<br><br>I edited the file GroupsockHelper.cpp<br>$ diff ./groupsock/GroupsockHelper.cpp ../live_original/groupsock/GroupsockHelper.cpp<br>33,34d32<br>< #include <net/if.h><br>< #include <sys/ioctl.h><br>553,573d550<br>< #ifdef UCLINUX<br>< netAddressBits ourSourceAddressForMulticastUclinux(UsageEnvironment& env) {<br>< int i=2;<br>< int s = socket (PF_INET, SOCK_STREAM,
0);<br><<br><<br>< struct ifreq ifr;<br>< struct sockaddr_in *sin = (struct sockaddr_in *) &ifr.ifr_addr;<br>< char *ip;<br><<br>< ifr.ifr_ifindex = i;<br>< ioctl (s, SIOCGIFNAME, &ifr);<br><<br><<br>< /* now ifr.ifr_name is set */<br>< ioctl (s, SIOCGIFADDR, &ifr);<br><<br>< return (sin->sin_addr.s_addr);<br>< }<br>< #endif<br><<br>575,577d551<br>< #ifdef UCLINUX<br>< return
ourSourceAddressForMulticastUclinux(env);<br>< #endif<br><br>Thanks in advanced!<br><BR><BR><DIV>
<DIV>
<DIV>-------------------------------------------------------------<BR><STRONG> Poliana de Moraes</STRONG> </DIV>
<DIV> cel: (12)9155-9981<BR> 4º ano Engenharia Elétrica <BR> UNESP - campus de Guaratinguetá</DIV></DIV></DIV><p> 
                <hr size=1>
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. <a href="http://us.rd.yahoo.com/mail/br/tagline/mobile_alerts/*http://br.mobile.yahoo.com/mailalertas/">Registre seu aparelho agora!</a>