make: g++: Command not found

Hello,

I am taking the following course: " Deployment for Intelligent Video Analytics using DeepStream" from Nvidia DLI.

on Step 6 in the course “6. Custom Parsers and Networks” you need to edit the printf statement then buld the library, but it seems there is a problem with the build:

First the command is referring to file which does not exists: nvdsparsebbox2 there is only nvdsparsebbox. If I edited that command to nvdsparsebbox I am receiving the following error message:

make: Entering directory ‘/dli/tasks/l-iv-04/task/newDS/DeepStream_Release/sources/libs/nvdsparsebbox’
g++ -o libnvdsparsebbox.so nvdsparsebbox.cpp -Wall -std=c++11 -shared -fPIC -I…/…/includes -Wl,–start-group -lnvinfer -lnvparsers -Wl,–end-group
make: g++: Command not found
Makefile:30: recipe for target ‘libnvdsparsebbox.so’ failed
make: *** [libnvdsparsebbox.so] Error 127
make: Leaving directory ‘/dli/tasks/l-iv-04/task/newDS/DeepStream_Release/sources/libs/nvdsparsebbox’

Which platform and DS version are u using?

Seems the env is not setup correctly, could you refer DeepStream Development Guide to setup your env?

Thank you. It is the Nvidia Deep learning institute Course. So it seems that this specific courrse has some bugs on it.

I had to do a few changes to the directories and installed the additional libraries:
!apt-get update
!apt-get install build-essential -y

The issue is still present even after doing these steps.
sudo apt-get update
output
Get:1 file:/var/cuda-repo-10-0-local-10.0.326 InRelease
Ign:1 file:/var/cuda-repo-10-0-local-10.0.326 InRelease
Get:2 file:/var/visionworks-repo InRelease
Ign:2 file:/var/visionworks-repo InRelease
Get:3 file:/var/visionworks-sfm-repo InRelease
Ign:3 file:/var/visionworks-sfm-repo InRelease
Get:4 file:/var/visionworks-tracking-repo InRelease
Ign:4 file:/var/visionworks-tracking-repo InRelease
Get:5 file:/var/cuda-repo-10-0-local-10.0.326 Release [574 B]
Get:6 file:/var/visionworks-repo Release [1,999 B]
Get:7 file:/var/visionworks-sfm-repo Release [2,003 B]
Get:8 file:/var/visionworks-tracking-repo Release [2,008 B]
Get:5 file:/var/cuda-repo-10-0-local-10.0.326 Release [574 B]
Get:6 file:/var/visionworks-repo Release [1,999 B]
Get:7 file:/var/visionworks-sfm-repo Release [2,003 B]
Get:8 file:/var/visionworks-tracking-repo Release [2,008 B]
Hit:10 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/arm64 InRelease
Hit:11 https://repo.download.nvidia.com/jetson/common r32.4 InRelease
Hit:12 Index of /ubuntu-ports bionic InRelease
Hit:13 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/arm64 InRelease
Hit:15 https://nvidia.github.io/nvidia-docker/ubuntu18.04/arm64 InRelease
Get:16 Index of /ubuntu-ports bionic-updates InRelease [88.7 kB]
Hit:18 https://repo.download.nvidia.com/jetson/t210 r32.4 InRelease
Hit:20 Index of /ubuntu-ports bionic-backports InRelease
Get:21 Index of /ubuntu-ports bionic-security InRelease [88.7 kB]
Fetched 177 kB in 3s (60.7 kB/s)
Reading package lists… Done

sudo apt-get install build-essential -y
output
Reading package lists… Done
Building dependency tree
Reading state information… Done
build-essential is already the newest version (12.4ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 337 not upgraded.

oot@f12f426e4f07:/opt/nvidia/deepstream/deepstream-5.0/sources/libs/nvdsinfer_cust
omparser# make all
g++ -o libnvds_infercustomparser.so nvdsinfer_custombboxparser.cpp nvdsinfer_customclassifierparser.cpp -Wall -std=c++11 -shared -fPIC -I…/…/includes -Wl,–start-group -lnvinfer -lnvparsers -Wl,–end-group
make: g++: Command not found
Makefile:40: recipe for target ‘libnvds_infercustomparser.so’ failed
make: *** [libnvds_infercustomparser.so] Error 127

Hi sk.ahmed401,

Please help to open a new topic for your issue. Thanks