# Faciallandmark TAO app

**URL:** <https://forums.developer.nvidia.com/t/faciallandmark-tao-app/317337>\
**Category:** TAO Toolkit\
**Tags:** deepstream, jetson\
**Created:** [December 18, 2024, 2:29pm UTC](https://forums.developer.nvidia.com/t/faciallandmark-tao-app/317337 "2024-12-18T14:29:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mainak1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mainak1](https://forums.developer.nvidia.com/u/mainak1)\
**Post date:** [December 18, 2024, 2:29pm UTC](https://forums.developer.nvidia.com/t/faciallandmark-tao-app/317337/1 "2024-12-18T14:29:49Z")

</div>

Please provide the following information when requesting support.

• Hardware (T4/V100/Xavier/Nano/etc) : 4070ti  
• Network Type (Detectnet\_v2/Faster\_rcnn/Yolo\_v4/LPRnet/Mask\_rcnn/Classification/etc) : facenet, fpenet  
• TLT Version (Please run “tlt info --verbose” and share “docker\_tag” here): 5.5.0

Hi,  
I’ve compiled the code using the following make file:

```auto
CUDA_VER?=
ifeq ($(CUDA_VER),)
  $(error "CUDA_VER is not set")
endif

APP:= FR-APP
CC = g++
TARGET_DEVICE = $(shell gcc -dumpmachine | cut -f1 -d -)

NVDS_VERSION:=6.3

LIB_INSTALL_DIR?=/opt/nvidia/deepstream/deepstream-$(NVDS_VERSION)/lib/
APP_INSTALL_DIR?=/opt/nvidia/deepstream/deepstream-$(NVDS_VERSION)/bin/
FACIAL_LANDMARKS_LIB_DIR?=/opt/nvidia/deepstream/deepstream-$(NVDS_VERSION)/lib/cvcore_lib/

#SRCS:= $(wildcard *.cpp)
SRCS:=src/fr_app.cpp src/fr_meta.cpp src/ds_yml_parse.cpp

#INCS:= $(wildcard *.hpp)

PKGS:= gstreamer-1.0 gstreamer-rtsp-server-1.0

OBJS:= $(SRCS:.cpp=.o)

CFLAGS+=-I/opt/nvidia/deepstream/deepstream-$(NVDS_VERSION)/sources/includes \
		-I/opt/nvidia/deepstream/deepstream-$(NVDS_VERSION)/sources/includes/cvcore_headers \
        -I/usr/local/cuda-$(CUDA_VER)/include \
		-I/opt/nvidia/deepstream/deepstream-$(NVDS_VERSION)/sources/apps/apps-common/includes/ \
		-I ../common \
		-I./inc/ -I/usr/include/opencv4/ -I/usr/local/include -I/home/eegrab/TensorRT/include/

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

CFLAGS+= -D_GLIBCXX_USE_CXX11_ABI=1 -Wno-sign-compare -Wno-deprecated-declarations

LIBS:= $(shell pkg-config --libs $(PKGS))

LIBS+=-L/usr/local/cuda-$(CUDA_VER)/lib64/ -lcudart -lnvdsgst_helper -lm \
		-L$(LIB_INSTALL_DIR) -lnvdsgst_meta -lstdc++ -lyaml-cpp -lnvds_meta -lnvds_yml_parser \
		-lnvbufsurface -lnvbufsurftransform -lnvds_batch_jpegenc \
		-lopencv_core -lopencv_highgui -lopencv_imgproc\
		-lcuda -Wl,-rpath,$(LIB_INSTALL_DIR)\
		-lpaho-mqttpp3 -lpaho-mqtt3c \
		-L/opt/nvidia/deepstream/deepstream-$(NVDS_VERSION)/lib/cvcore_libs
       	 

LIBS+=-L$(FACIAL_LANDMARKS_LIB_DIR) -lnvcv_faciallandmarks -lnvcv_core -lnvcv_tensorops -lnvcv_trtbackend

# LIBS+= -lpaho-mqtt3c -lpaho-mqtt3as

all: $(APP)

%.o: %.cpp $(INCS) Makefile
	$(CC) -c -g -o $@ $(CFLAGS) -fPIC -Wno-write-strings $<

$(APP): $(OBJS) Makefile
	$(CC) -g -o $(APP) $(OBJS) $(LIBS) -lstdc++

install: $(APP) cp -rv $(APP) $(APP_INSTALL_DIR)

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

```

It had compiled without any error. However while i run the app `./FR-APP ./models/fr_app_config.yml` there is an error as:

```auto
/FR-APP: error while loading shared libraries: libnvcv_faciallandmarks.so: cannot open shared object file: No such file or directory

```

Any help on this highly appreciated @Morganh

---

<div class="post-metadata">

**Author:** ![Morganh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morganh/32/9748_2.png) [@Morganh](https://forums.developer.nvidia.com/u/Morganh)\
**Post date:** [December 19, 2024, 1:54am UTC](https://forums.developer.nvidia.com/t/faciallandmark-tao-app/317337/2 "2024-12-19T01:54:09Z")

</div>

Seems that it is topic for deepstream, could you please create a topic in deepstream forum?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [January 2, 2025, 1:54am UTC](https://forums.developer.nvidia.com/t/faciallandmark-tao-app/317337/3 "2025-01-02T01:54:27Z")

</div>

Closed on January 2, 2025, 1:54am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
