5 Build upnp 1.9
5.1 Histroy
- 2014-03-31, rayoslee, release V0.0.1
5.2 FAQ
How to build upnp in S605-32’s kernel?
- tar -xzvf miniupnpc-1.9.tar.gz in your BSP (like as yourBSP/applications)
- export INSTALLPREFIX=~/468_AcSipGit/MyLocalSite/skyeye_bsp/initramfs/usr
- export AR=/usr/local/arm_linux_4.2/bin/arm-linux-ar
- export CC=/usr/local/arm_linux_4.2/bin/arm-linux-gcc
How to fix link error - “undefined reference to ‘in6addr_any’”?
/* reception */
memset(&sockudp_r, 0, sizeof(struct sockaddr_storage));
if(ipv6) {
struct sockaddr_in6 * p = (struct sockaddr_in6 *)&sockudp_r;
/* 20140331, rayoslee@acsip, add it */
struct in6_addr in6addr = IN6ADDR_ANY_INIT;
/* rayoslee */
p->sin6_family = AF_INET6;
if(sameport)
p->sin6_port = htons(PORT);
/* 20140331, rayoslee@acsip, change it */
/* --- p->sin6_addr = in6addr_any; */ /* in6addr_any is not available with MinGW32 3.4.2 */
p->sin6_addr = in6addr;
/* rayoslee */
}else {