I happened the issue inlcude file dw folder not found and when I complied cmake path is not found.
Could you confirm first if you are able to compile your sample normally using cmake. If that works successfully, Please take a look at https://devblogs.nvidia.com/drivepx-application-development-using-nsight-eclipse-edition/
Thanks for your advice. 1st thing of 1st.
cd /usr/local/driveworks ok.
sudo cp -r samples samples-original ok.
cd samples-original ok.
sudo mkdir build-host ok.
cd build-host ok.
sudo cmake … Reuslt is sudo : cmake: command not found.
sudo make -j Result; is make: *** No targets specified and no makefile found. Stop.
I sucessfully installed the sdk, does mean cmake instlled and install cmake path?
where can I confirm?
I installed the cmake using sudo apt-get install cmake
also install some libs:
It works for me. CMake issue is solved. Thanks.
Now the only is the dw folder is not found issue.
Please check Building Driveworks Samples section(DRIVE_Software_Docs\DRIVE_Software\dav\dwx_samples_building.html) in Drive 1.0 documentation and make sure you are able to compile/cross-compile the sample before attempting via eclipse nsight to avoid errors
I am able to compile on host machine and running correctly. Before moving the eclipse, there is another step I am not clear the cross- complie for your DRIVE PX2 the portion. Is the portion still on host machine to create build-target and compile? When I type in
sudo cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks/samples-original/cmake/Toolchain-V4L.cmake -DVIBRANTE_PDK:STRING=/drive-t186ref-linux …
It pop out: Could not find toolchain file: /usr/local/driveworks/samples-original/cmake/Toolchain-V4L.cmake
Please locate the file Toolchain-V4L.cmake and give correct path in DCMAKE_TOOLCHAIN_FILE. I assume you have checked cross compilation instructions provided in the link I pointed out in previous comment.
Thanks for quick response. In 126.96.36.199 sdk, there is no more Toolchain-V4L.cmake, only Toolchain-V5L.cmake
I observed two things, sudo cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/usr/local/driveworks/samples-original/cmake/Toolchain-V5L.cmake -DVIBRANTE_PDK:STRING=/home/adasalgo/nvidia/nvidia_sdk/DRIVE/Linux/188.8.131.52/OS/DriveSDK/drive-t186ref-linux …
Although it compiled, there is warning when I enter the above code. Please see attached picture.
Could you please expain the warning meanging?
I continue the instruction you gave me, when I import the folder in, and still dw not found.
Does it mean the CMakeList needs to modify?
I found the dw path is usr/local/driveworks-1.2/include/dw
In Eclipse IDE, it is /usr/local/include which is empty in this folder.
Need to switch path?
May understanding is correct?
If so, how do I swtich it?
Please try the following things and let us know.
My question is dw path is not found on Eclipse. Becuase eclipse set path is looking for dw in /usr/local/include.
However the dw folder in in /usr/local/driveworks-1.2/include.
Where line in cmakelist file I can set /usr/local/driveworks-1.2/include instead of /usr/local/include in Eclipse?
Driveworks_INCLUDE_DIR is set in samples/cmake/findDriveworks.cmake
There is no additional changes required in eclipse apart from what is mentioned in the tutorial. Could you please share the status of the suggested methods in previous comment.
Yes, I just copy and paste the dw folder from /usr/local/driveworks-1.2 to /usr/local/include.
It works fine to me now. Able to recognize the folder and compile.