Eclipse with nsight plugin throwing "field ... could not be resolved", even though the project builds and debugs successfully

Hello guys,

I have set up my Eclipse with nsight plugin, as FabianWeise suggested in here https://devtalk.nvidia.com/default/topic/1058080/general/nsight-with-cuda-10-0-nvidia-drive-trade-software-9-0-linux-building-issue/.

My project builds and I can run the debugger from the NVIDIA Learn website, but I am having issues with Eclipse “Field … could not be resolved” messages.

Eclipse complained that it can’t find anything that starts with either dw or dwvisualization, which I solved by adding /usr/local/driveworks-2.0/targets/x86_64-Linux/include to project Properties -> C/C++ General -> Paths and Symbols -> Includes tab. I added it to all configurations and all languages and a portion of the unresolved includes disappeared.

Eclipse also complained that it can’t find some functions such as to_string(), which I solved by following the instructions in this post: https://stackoverflow.com/questions/17131744/eclipse-cdt-indexer-does-not-know-c11-containers

However, I am still having unresolved includes, which you can find below:

Description	Resource	Path	Location	Type
Field 'frameCaptureGlobalTimeStamp' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 497	Semantic Error
Field 'frameSequenceNumber' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 495	Semantic Error
Field 'imageInformation' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 495	Semantic Error
Field 'imageInformation' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 497	Semantic Error
Function 'NvMediaIPPManagerSetEventCallback' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 257	Semantic Error
Symbol 'NVMEDIA_IPP_EVENT_ERROR_CSI_INPUT_STREAM_FAILURE' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 508	Semantic Error
Symbol 'NVMEDIA_IPP_EVENT_ERROR_I2C_TRANSMISSION_FAILURE' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 514	Semantic Error
Symbol 'NVMEDIA_IPP_EVENT_ERROR_INTERNAL_FAILURE' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 501	Semantic Error
Symbol 'NVMEDIA_IPP_EVENT_INFO_EOF' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 511	Semantic Error
Symbol 'NVMEDIA_IPP_EVENT_INFO_FRAME_CAPTURE' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 513	Semantic Error
Symbol 'NVMEDIA_IPP_EVENT_INFO_PROCESSING_DONE' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 512	Semantic Error
Symbol 'NVMEDIA_IPP_EVENT_WARNING_CAPTURE_FRAME_DROP' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 492	Semantic Error
Symbol 'NVMEDIA_IPP_EVENT_WARNING_CSI_FRAME_DISCONTINUITY' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 505	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 123	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 130	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 131	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 147	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 174	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 176	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 191	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 203	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 246	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 247	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 256	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 266	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 279	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 281	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 368	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 372	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 376	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 390	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 393	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 411	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 417	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 421	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 425	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 431	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 446	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 450	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 454	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 457	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 460	Semantic Error
Symbol 'runtime_error' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 463	Semantic Error
Type 'NvMediaIPPComponent' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 482	Semantic Error
Type 'NvMediaIPPComponentType' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 481	Semantic Error
Type 'NvMediaIPPEventData' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 484	Semantic Error
Type 'NvMediaIPPEventType' could not be resolved	main.cpp	/Samples Nsight Cross Compile/samples/src/sensors/camera/camera_gmsl	line 483	Semantic Error

What do I need to include to solve these unresolved include errors? Again, I can build the project without problems, but these fake errors are clouding real errors that could arise. Should I just ignore those?

Thank you in advance,
Mislav

Dear mislav,
As you can see they are semantic errors shown by Eclipse editior. Could you check disabling Properties -> C/C++ General -> code Analysis -> Syntax and Semantic Errors. Please check this (https://stackoverflow.com/questions/8148235/eclipse-cdt-shows-semantic-errors-but-compilation-is-ok)

I can do that, but that way I won’t be able to see any errors at all. I will use this since it eliminates all of the fake errors, but I don’t think it is a viable long-term solution.