This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

8127 RDK(V2.0.0) build problem

Hi,

I meet an Error while building the 8127 RDK project, it occurs at the label: #make mcfw_bios6. Below underline is the error info:

"/home/samba/IPNC/ti_tools/xdctools_3_22_04_46/packages/xdc/cfg/global.h", line 39: fatal error: could not open source file "/home/samba/1/ipnc_rdk/ipnc_mcfw/build/ipnc_rdk/obj/ti814x-evm/c6xdsp/release/ipnc_rdk_configuro/package/cfg/MAIN_APP_c6xdsp_pe674.h"
1 fatal error detected in the compilation of "/home/samba/IPNC/ipnc_rdk/ipnc_mcfw/build/ipnc_rdk/obj/ti814x-evm/c6xdsp/release/ipnc_rdk_configuro/package/cfg/MAIN_APP_c6xdsp_pe674.c".
Compilation terminated.

Above the red word '1' in the path should be 'IPNC', and it was defined an Micro xdc_cfg__header__ in global.h:

/* support old compiler option for naming config include file */
#ifdef xdc_cfg__header__
#define xdc_cfg__xheader__ <xdc_cfg__header__>
#endif

/* if specified, include configuration generated header */
#ifdef xdc_cfg__xheader__
#include xdc_cfg__xheader__
#endif

 

It seems automatically generated, so, how can I fix this problem ?

PS : The build platform is Ubuntu 10.04.4, RDK version is 2.0.0.

 

Thanks,

Pei Jacky.

 

  • I don't know much aboout RDK, but I remember seeing a similar problem when there was a sequence of includes:
    #include <some_header.h>
    #include <xdc/cfg/global.h>
    and the header file 'some_header.h' had a #define that would replace a part of the path specified for xdc_cfg__xheader__. In your case, 'some_header.h' would have:
    #define IPNC 1

    The workaround for such a problem would be to reorder header files:
    #include <xdc/cfg/global.h>
    #include <some_header.h>

    However, that problem would show up when compiling the application source file, not the automatically generated C file. Can you check if the generated C file also includes <xdc/cfg/global.h>? Usually it shouldn't, but there could be something about your app that requires it.

  • Pei Jacky,

    You can fix this problem by changing the build location in your machine. Currently I see that you are using:

    /home/samba/IPNC/...


    Please change the IPNC to some other name like IPNetCam and the build will go fine.

    Regards

    Rajat