Any tutorial or link for remote development of a C/C++ makefile project

Hello everyone,

I am new to nsight eclipse IDE, I am looking for a starting point/tutorial in form of a video or blog for developing a C/C++ Makefile projects from a x86 linux(PC) on Aarch64 linux(Tegra Tx2) board via ssh.

Any help is appreciated, how to set up a remote ssh connect via nsight eclipse IDE to the tegra board.

Looking forward.

Regards,
Ranjan Rishi Chambial

Hi Ranjan,
I am in the same situation as you are. I am also trying to figure out the same.
I am trying to compile my code on eclipse for C/C++ with Cuda plugins and execute the code on Jetson nano.
I am able to compile the deepstream SDK sample code but unable to execute it on the nano.

The steps I have followed:

  1. Installed Cuda 10.2 Toolkit from https://developer.nvidia.com/cuda-downloads
  2. I also installed Cuda 10 Toolkit since it is used in Jetson nano https://developer.nvidia.com/cuda-downloads
  3. For cross-compilation I installed cuda-repo-cross-aarch64-10-0-local-10.0.326_1.0-1_all.deb. I found the cross-compilation deb file from the nvdia sdk manager https://docs.nvidia.com/sdk-manager/install-with-sdkm-jetson/index.html
  4. Downloaded Deepstream 4.0.1 SDK tar for Jetson from https://developer.nvidia.com/deepstream-download https://developer.nvidia.com/deepstream-401-jetson
  5. Downloaded Eclipse for C/C++ from https://www.eclipse.org/downloads/
  6. Installed Nsight Eclipse Plugin as advised https://docs.nvidia.com/cuda/nsightee-plugins-install-guide/index.html
  7. Imported the deepstream-test1 project from /opt/nvidia/deepstream/deepstream-4.0/sources/apps/sample_apps/deepstream-test1
  8. The Eclipse Nsight Project settings [img]https://devtalk.nvidia.com/cmd/default/download-comment-attachment/82472/[/img]
  9. When I try to run the project remotely I get "Exec format error" ``` Last login: Tue Dec 17 14:42:02 2019 from 192.168.1.56 echo $PWD'>' /bin/sh -c "cd \"/tmp/cuda-debug\";export LD_LIBRARY_PATH=\"/usr/local/cuda-10.0/bin\":\${LD_LIBRARY_PATH};\"/tmp/cuda-debug/deepstream-test1-app\" /opt/nvidia/deepstream/deepstream-4.0/samples/streams/sample_720p.h264";exit roy@jetson:~$ echo $PWD'>' /home/roy> roy@jetson:~$ /bin/sh -c "cd \"/tmp/cuda-debug\";export LD_LIBRARY_PATH=\"/usr/loocal/cuda-10.0/bin\":\${LD_LIBRARY_PATH};\"/tmp/cuda-debug/deepstream-test1-app\"" /opt/nvidia/deepstream/deepstream-4.0/samples/streams/sample_720p.h264";exit /bin/sh: 1: /tmp/cuda-debug/deepstream-test1-app: Exec format error logout ```
  10. I get the same error if run as root on the nano ``` Last login: Tue Dec 17 15:47:24 2019 from 192.168.1.56 echo $PWD'>' /bin/sh -c "cd \"/tmp/cuda-debug\";export LD_LIBRARY_PATH=\"/usr/local/cuda-10.0/bin\":\${LD_LIBRARY_PATH};\"/usr/local/cuda-10.0/bin/cuda-gdbserver\" --cuda-use-lockfile=0 :2345 \"/tmp/cuda-debug/deepstream-test1-app\" /opt/nvidia/deepstream/deepstream-4.0/samples/streams/sample_720p.h264";exit root@jetson:~# echo $PWD'>' /root> root@jetson:~# /bin/sh -c "cd \"/tmp/cuda-debug\";export LD_LIBRARY_PATH=\"/usr/llocal/cuda-10.0/bin\":\${LD_LIBRARY_PATH};\"/usr/local/cuda-10.0/bin/cuda-gdbservver\" --cuda-use-lockfile=0 :2345 \"/tmp/cuda-debug/deepstream-test1-app\" /opt/nnvidia/deepstream/deepstream-4.0/samples/streams/sample_720p.h264";exit Process /tmp/cuda-debug/deepstream-test1-app created; pid = 9790 Cannot exec /tmp/cuda-debug/deepstream-test1-app: Exec format error.

    Child exited with status 127
    gdbserver: Unable to determine the number of hardware watchpoints available.
    gdbserver: Unable to determine the number of hardware breakpoints available.
    No program to debug
    Exiting
    logout

    
    </li>
    
    I got hint/help from <a target='_blank' rel='noopener noreferrer' href='https://devblogs.nvidia.com/cuda-jetson-nvidia-nsight-eclipse-edition/'>https://devblogs.nvidia.com/cuda-jetson-nvidia-nsight-eclipse-edition/</a>
    </ol>
    
    ![Nsight Eclipse Settings.png|944x550](upload://qJFb80Cqv5DVoeXV1glKumKMysU.png)

Same situation here. Even simple “hello world” program would not work when I use Nsight eclipse and Jetson Nano.