Cannot build a project on Jetsot TX2

Hey Guys,
I am working on running a project (project was generated in MatlabGPUCoder) on TX2 but i am difficulty compiling this project in the TX2. But I have problems.

nvidia@tegra-ubuntu:~/codegen/lib/mandelbrot_count$ make -f
nvcc -ccbin /bin/aarch64-linux-gnu-g++ -rdc=true -Xcompiler -fPIC -I/include -Xcudafe "--diag_suppress=unsigned_compare_with_zero" -c -Xcompiler -MMD,-MP -O2 -arch sm_62 -DMODEL=mandelbrot_count -DHAVESTDIO -DUSE_RTMODEL -DUNIX -I/home/thm-1/gpucoderdemo_mandelbrot/codegen/lib/mandelbrot_count -I/home/thm-1/gpucoderdemo_mandelbrot -I/usr/local/MATLAB/R2017b/extern/include -I/usr/local/MATLAB/R2017b/simulink/include -I/usr/local/MATLAB/R2017b/rtw/c/src -I/usr/local/MATLAB/R2017b/rtw/c/src/ext_mode/common -I/usr/local/MATLAB/R2017b/rtw/c/ert -o mandelbrot_count_initialize.o
/bin/aarch64-linux-gnu-g++: No such file or directory recipe for target 'mandelbrot_count_initialize.o' failed
make: *** [mandelbrot_count_initialize.o] Error 1


I don’t know an answer, but typically one would not name the full path plus architecture of g++ unless doing cross compile for a different architecture. Do you have “/usr/bin/g++”? What happens if you run “sudo apt-get install g++”?


As linuxdev said, compiler is located at /usr/bin/ rather than /bin/.
Please modify the command into the correct location.