failed to create a 'nvinfer' element by using gst_element_factory_make ?

when I ran the deepstream-test1-app in the DeepStream_Release/sources/apps/deepstream-test,the pgie is nill.

GstElement *pipeline = NULL, *source = NULL, *h264parser =
NULL,
*decoder = NULL, *sink = NULL, *pgie = NULL, *nvvidconv =
NULL, *nvosd = NULL, *filter1 = NULL, *filter2 = NULL;

/* Use nvinfer to run inferencing on decoder’s output,

  • behaviour of inferencing is set through config file */
    pgie = gst_element_factory_make (“nvinfer”, “primary-nvinference-engine”);
    g_print(“pgie=%p\n”,pgie);

Hi,

deepstream-test1-app can be executed successfully on our side.
Could you try to remove the cache file and try it again?

sudo rm -rf ~/.cache/*

Thanks.

yes, i do this. And I solved this problem. Thank you.