Hi
In order to build the demo for the QCA4020, I followed exactly the instructions given in this post: https://developer.qualcomm.com/project/qclidemo-w-qca4020-dev-kit
Building the QCLI_demo project in Eclipse fails with the following output on the console:
build.bat t 4020 cdb 2p0
****************************************************************************
Building QCA402X QCLI Application for v2 Chipset
RTOS threadx
CHIPSET VARIANT qca4020
*****************************************************************************
Exporting Device config files....
GENERATING DEVCFG....
Building sbrk.c
Building qcli\qcli.c
Building qcli\qcli_util.c
Building qcli\pal.c
Building thread\thread_demo.c
Building zigbee\zigbee_demo.c
In file included from ..\..\src\zigbee\zigbee_demo.c:15:0:
..\..\src\zigbee\/zcl_demo.h:76:3: error: redefinition of typedef 'ZCL_Demo_Cluster_Info_t'
..\..\src\zigbee\/zcl_demo.h:27:40: note: previous declaration of 'ZCL_Demo_Cluster_Info_t' was here
Any ideas what is wrong?
Hi,
Could you please try to build this in the windows commnd line and see if the issue persisits?
C:\..\qca4020-or-3-2_qca_oem_sdk-cdb.git\target\quartz\demo\QCLI_demo\build\gcc>build.bat prepare 4020 cdb
Meanwhile, I could solve the problem. In case someone encounters the same:
There was an older version of the ARM toolchain installed on my machine. Altough I installed the GNU Arm Embedded toolchain version 6.x the older version's entry in the path variable had a higher priority which caused the build script to use this version. The solution was to move the path variable entry of version 6 in front.