1) Your advice: Can you try including the whole path ~/ti/bios_6_73_01_01/packages/ti/posix/ccs/sys instead of just sys/time.h: include "<path_to_ti>/bios_6_73_01_01/packages/ti/posix/ccs/sys"
2) Your advice: If not you should verify that ~/ti/bios_6_73_01_01/packages/ti/posix/ccs/ is added in your include directories in your project properties.
This doesn't work. I am sending my project with added in my include directories in my project properties.
As I understand you are using a custom board which I don't have, so I cannot test your project.
Hi, Yordan!
No, I'm not using a custom board. I installed "processor_sdk_rtos_c665x_5_02_00_10" and tried build my test project.
If you got the same error: <socketndk.h: Cannot open file "sys/time.h">, help me solve it.
This solution required edit source code in NDK, it's fine?
Best Regards,
George
Ok, open a NIMU example project (i.e. the NIMU_emacExample_EVMC6678C66BiosExampleProject) and check the Includes in the project. You should see the following two include directories:
<your_home_path>/ti/bios_6_73_01_01/packages/ti/posix/ccs (if you expand this you will see folder sys, in which there is time.h).
<your_home_path>/ti/ti-cgt-c6000_8.2.2/include (here you also have time.h)
If you don't have these you need to edit your include paths (right-click on the project and select properties -> in the popup under C6000 Compiler you should have Include Options).
Or you can add the full path to ~/ti/bios_6_73_01_01/packages/ti/posix/ccs/sys/time.h in your source code (\ti_8_3_0\ndk_3_40_01_01\packages\ti\ndk\inc\socketndk.h", line 48), but this is a fix to that particular error message. It is better to update your include paths in the project properties.
Best Regards,
Yordan
Hi, Yordan!
I could find a solution for my problem: I included this path <${BIOS_CG_ROOT}/packages/ti/posix/ccs> in following place: General -> tab "Products" -> "Products and Repositories" -> button "Add" -> checkbox "Select repository from file-system". This solution is normal? I could not find a solution anywhere. Maybe it is worth adding this solution to the technical documentation?
Your advice doesn't work for "socketndk.h", only for my files.
Best Regards,
Yordan