AnsweredAssumed Answered

RSDK code causing build errors - RTP

Question asked by mark thompson on Dec 6, 2019

Build problems with the RSDK- the systems wants to include RTP protocol. Don't want it didn't ask for it.

Rsdk_rpt.c is causing compile errors with “void InitRtp(char *ipAddress, uint16_t port)”

   invalid use of undefined type 'struct sockaddr_in'

   error: 'AF_INET' undeclared (first use in this function)

   error: 'INADDR_ANY' undeclared (first use in this function)...etc

I’m not sure why there is a problem since the header file that defines the error symbols is included.

Rsdk_rpt.c  Line 37 ” #include "lwip/sockets.h"

 

I delete the file and it come back on the next build.

I don’t need RTP but can’t figure how to permanently disable it.

I have tried removing “USE_RTP_OVER_LWIP” from the Preprocessor setting but the system keep putting it back.

I can build without errors if i delete “USE_RTP_OVER_LWIP”, but as soon as I try to debug the systems rebuilds and puts it back into the build system.

 

Is there some menu/page that allows for RSDK configuration to control these auto generated settings  ?

How do I fix this ?

Thanks

 

Attachments

Outcomes