Other Parts Discussed in Thread: CC3100, SYSBIOS, TM4C1294NCPDT
Tool/software: TI C/C++ Compiler
Hi,
I am using ccs v7, tm4c1294ncpdt. Trying to send MQTT request to the local server using cc3100 wifi. The httpget example given by the tirtos is working fine. For the same I added mqtt sources files getting from github, make correct almost errors and stopped all http functions trying only for mqtt. I think it should work fine. But compilation errors are found like,
1. #1965 cannot open source file "bits/sockaddr.h"
2. #1965 cannot open source file "sys/socket.h"
and the complication console prints:
**** Build of configuration Debug for project mqttgetCC3100_EK_TM4C1294XL_TI ****
"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
making ../src/sysbios/sysbios.aem4f ...
gmake[1]: Nothing to be done for 'all'.
'Building file: ../transport.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08/packages/ti/mw/wifi/cc3x00" --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08/packages/ti/mw/wifi/cc3x00/oslib" --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08/packages/ti/mw/wifi/cc3x00/simplelink/include" --include_path="E:/raghu/CCS-WorkSpace/mqttgetCC3100_EK_TM4C1294XL_TI" --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/TivaWare_C_Series-2.1.1.71b" --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/sysbios/posix" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=NET_SL --define=ccs --define=TIVAWARE -g --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="transport.d" --cmd_file="configPkg/compiler.opt" "../transport.c"
>> Compilation failure
subdir_rules.mk:107: recipe for target 'transport.obj' failed
"C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/ndk_2_25_00_09/packages/ti/ndk/inc/bsd/socketndk.h", line 42: fatal error #1965: cannot open source file "bits/sockaddr.h"
1 catastrophic error detected in the compilation of "../transport.c".
Compilation terminated.
gmake: *** [transport.obj] Error 1
'Building file: ../httpgetCC3100.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08/packages/ti/mw/wifi/cc3x00" --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08/packages/ti/mw/wifi/cc3x00/oslib" --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08/packages/ti/mw/wifi/cc3x00/simplelink/include" --include_path="E:/raghu/CCS-WorkSpace/mqttgetCC3100_EK_TM4C1294XL_TI" --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/TivaWare_C_Series-2.1.1.71b" --include_path="C:/ti/tirex-content/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/sysbios/posix" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=NET_SL --define=ccs --define=TIVAWARE -g --gcc --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="httpgetCC3100.d" --cmd_file="configPkg/compiler.opt" "../httpgetCC3100.c"
>> Compilation failure
subdir_rules.mk:86: recipe for target 'httpgetCC3100.obj' failed
"../httpgetCC3100.c", line 56: fatal error #1965: cannot open source file "sys/socket.h"
1 catastrophic error detected in the compilation of "../httpgetCC3100.c".
Compilation terminated.
gmake: *** [httpgetCC3100.obj] Error 1
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
Can you please help me to over come from this errors, so can run my code.
Thanks,
Regards,
Raghu DS