RTSP camera access frame issue

Hi DaneLLL,

Please find the changes below:

APP:= deepstream-app

#TARGET_DEVICE = $(shell gcc -dumpmachine | cut -f1 -d -)
TARGET_DEVICE = $(shell g++ -dumpmachine | cut -f1 -d -)

NVDS_VERSION:=4.0

LIB_INSTALL_DIR?=/opt/nvidia/deepstream/deepstream-$(NVDS_VERSION)/lib/

ifeq ($(TARGET_DEVICE),aarch64)
  CFLAGS:= -DPLATFORM_TEGRA
endif

CUDA_VER:=10.0

SRCS:= $(wildcard *.c)
SRCS+= $(wildcard ../../apps-common/src/*.c)

INCS:= $(wildcard *.h)

PKGS:= gstreamer-1.0 gstreamer-video-1.0 x11 opencv

OBJS:= $(SRCS:.c=.o)
CC := g++
  
CFLAGS+= -I../../apps-common/includes -I../../../includes -I/home/edgetensor/Documents/external/curl/include -I/usr/src/nvidia/tegra_multimedia_api/include/ -I/usr/local/cuda-10.0/targets/aarch64-linux/include/  /usr/local/cuda-$(CUDA_VER)/include -I/home/edgetensor/Documents/external/libjpeg/ -I/home/edgetensor/Documents/external/libjpeg/build  -DDS_VERSION_MINOR=0 -DDS_VERSION_MAJOR=4 -fpermissive -Wnarrowing 

LIBS+= -L$(LIB_INSTALL_DIR) -L/home/edgetensor/Documents/external/curl/build/lib -L/usr/local/cuda-10.0/targets/aarch64-linux/lib -L/home/edgetensor/Documents/external/libjpeg/build  -L/usr/local/cuda-$(CUDA_VER)/lib64/  -lcudart -ljpeg  -lnppicc -lnvdsgst_meta -lnvbufsurface -lnvbufsurftransform -lnvds_meta -lnvdsgst_helper -lnvds_utils -lm -lcurl \
       -lgstrtspserver-1.0 -Wl,-rpath,$(LIB_INSTALL_DIR)

CFLAGS+= `pkg-config --cflags $(PKGS)`

LIBS+= `pkg-config --libs $(PKGS)`

all: $(APP)

%.o: %.c $(INCS) Makefile
	$(CC) -c -o $@ $(CFLAGS) $<

$(APP): $(OBJS) Makefile
	$(CC) -o $(APP) $(OBJS) $(LIBS)

clean:
	rm -rf $(OBJS) $(APP)

Thanks.

1 Like